From ae8d8a327cdede529d264d1df02892fdc6161688 Mon Sep 17 00:00:00 2001 From: Chandra Abdul Fattah Date: Wed, 15 May 2024 08:20:00 +0700 Subject: [PATCH] Replace Follow migration guide --- CHANGELOG.md | 2 +- lib/src/tooltip_widget.dart | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7dc0d20b..1648cdf2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,5 @@ ## [2.1.2] -- Fixed removed deprecated text style after Flutter 3.22 for headline6 to headlineSmall and subtitle2 to labelMedium +- Fixed removed deprecated text style after Flutter 3.22 follow [migration guide](https://docs.flutter.dev/release/breaking-changes/3-19-deprecations#texttheme) ## [2.1.1] - Fixed [#425](https://github.com/SimformSolutionsPvtLtd/flutter_showcaseview/issues/425) - Unhandled breaking change in v2.1.0 diff --git a/lib/src/tooltip_widget.dart b/lib/src/tooltip_widget.dart index ec80fe8a..78c758e0 100644 --- a/lib/src/tooltip_widget.dart +++ b/lib/src/tooltip_widget.dart @@ -151,12 +151,12 @@ class _ToolTipWidgetState extends State final titleStyle = widget.titleTextStyle ?? Theme.of(context) .textTheme - .headlineSmall! + .titleLarge! .merge(TextStyle(color: widget.textColor)); final descriptionStyle = widget.descTextStyle ?? Theme.of(context) .textTheme - .labelMedium! + .titleSmall! .merge(TextStyle(color: widget.textColor)); final titleLength = widget.title == null ? 0 @@ -454,7 +454,7 @@ class _ToolTipWidgetState extends State style: widget.titleTextStyle ?? Theme.of(context) .textTheme - .headlineSmall! + .titleLarge! .merge( TextStyle( color: widget.textColor, @@ -473,7 +473,7 @@ class _ToolTipWidgetState extends State style: widget.descTextStyle ?? Theme.of(context) .textTheme - .labelMedium! + .titleSmall! .merge( TextStyle( color: widget.textColor,