Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Update tooltip.dart to use new text themes. #448

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 4 additions & 12 deletions lib/src/tooltip_widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -151,16 +151,12 @@ class _ToolTipWidgetState extends State<ToolTipWidget>
final titleStyle = widget.titleTextStyle ??
Theme.of(context)
.textTheme
// TODO: replace once support for 3.1.0 and above is provided.
// ignore: deprecated_member_use
.headline6!
.titleLarge!
.merge(TextStyle(color: widget.textColor));
final descriptionStyle = widget.descTextStyle ??
Theme.of(context)
.textTheme
// TODO: replace once support for 3.1.0 and above is provided.
// ignore: deprecated_member_use
.subtitle2!
.titleSmall!
.merge(TextStyle(color: widget.textColor));
final titleLength = widget.title == null
? 0
Expand Down Expand Up @@ -458,9 +454,7 @@ class _ToolTipWidgetState extends State<ToolTipWidget>
style: widget.titleTextStyle ??
Theme.of(context)
.textTheme
// TODO: replace once support for 3.1.0 and above is provided.
// ignore: deprecated_member_use
.headline6!
.titleLarge!
.merge(
TextStyle(
color: widget.textColor,
Expand All @@ -479,9 +473,7 @@ class _ToolTipWidgetState extends State<ToolTipWidget>
style: widget.descTextStyle ??
Theme.of(context)
.textTheme
// TODO: replace once support for 3.1.0 and above is provided.
// ignore: deprecated_member_use
.subtitle2!
.titleSmall!
.merge(
TextStyle(
color: widget.textColor,
Expand Down
Loading