Skip to content

Commit

Permalink
fix!: 💥 Text Style on Flutter 3.22 (#433)
Browse files Browse the repository at this point in the history
- Replace with headline and subtitle text theme by following migration guide
- Update pubspec.yaml
- Update CHANGELOG.md
  • Loading branch information
chandrabezzo authored May 31, 2024
1 parent 49fa2e1 commit 5529c5d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 13 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## [3.0.0]
- 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
- Fixed [#428](https://github.com/SimformSolutionsPvtLtd/flutter_showcaseview/issues/428) - _ShowcaseState.recalculateRootWidgetSize null value
Expand Down
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
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: showcaseview
description: A Flutter package to Showcase/Highlight widgets step by step.
version: 2.1.1
version: 3.0.0
homepage: https://github.com/simformsolutions/flutter_showcaseview
issue_tracker: https://github.com/simformsolutions/flutter_showcaseview/issues

Expand Down

0 comments on commit 5529c5d

Please sign in to comment.