From 054f5b2bb78a6db67424826751465771ef4a72bc Mon Sep 17 00:00:00 2001 From: Lance Johnstone Date: Wed, 31 Jan 2024 23:23:54 +1300 Subject: [PATCH] Use TextScaler --- example/lib/sliver_app_bar_page.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/example/lib/sliver_app_bar_page.dart b/example/lib/sliver_app_bar_page.dart index 88cba04e..c5d8ad99 100644 --- a/example/lib/sliver_app_bar_page.dart +++ b/example/lib/sliver_app_bar_page.dart @@ -25,7 +25,8 @@ class _PlatformSliverAppBarPageState extends State { color: index.isOdd ? Colors.white : Colors.black12, height: 100.0, child: Center( - child: PlatformText('$index', textScaleFactor: 5), + child: PlatformText('$index', + textScaler: TextScaler.linear(5)), ), ); },