Skip to content

Commit

Permalink
Use TextScaler
Browse files Browse the repository at this point in the history
  • Loading branch information
Lance Johnstone authored and Lance Johnstone committed Jan 31, 2024
1 parent 2de3430 commit 054f5b2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion example/lib/sliver_app_bar_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ class _PlatformSliverAppBarPageState extends State<PlatformSliverAppBarPage> {
color: index.isOdd ? Colors.white : Colors.black12,
height: 100.0,
child: Center(
child: PlatformText('$index', textScaleFactor: 5),
child: PlatformText('$index',
textScaler: TextScaler.linear(5)),
),
);
},
Expand Down

0 comments on commit 054f5b2

Please sign in to comment.