From 7e2dccacecac06b7661400ed36241d0b1ab17641 Mon Sep 17 00:00:00 2001 From: Shourya Shikhar Date: Thu, 30 May 2024 09:15:20 +0530 Subject: [PATCH] replaced deprecated member functions --- lib/src/home/introduction.dart | 2 +- lib/src/home/my_name.dart | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/src/home/introduction.dart b/lib/src/home/introduction.dart index 59e75b9..216efe0 100644 --- a/lib/src/home/introduction.dart +++ b/lib/src/home/introduction.dart @@ -16,7 +16,7 @@ class Introduction extends StatelessWidget { padding: const EdgeInsets.symmetric(horizontal: 12.0), child: Text( word, - textScaleFactor: textScaleFactor, + textScaler: TextScaler.linear(textScaleFactor), style: TextStyle( fontFamily: 'SourceCodePro', letterSpacing: 2, diff --git a/lib/src/home/my_name.dart b/lib/src/home/my_name.dart index 7eff1e5..23169ae 100644 --- a/lib/src/home/my_name.dart +++ b/lib/src/home/my_name.dart @@ -27,7 +27,7 @@ class MyName extends StatelessWidget { fit: BoxFit.cover, child: Text( data.split(' ')[i], - textScaleFactor: 4.5, + textScaler: const TextScaler.linear(4.5), style: TextStyle( fontFamily: 'FjallaOne', // letterSpacing: 10.5, @@ -39,7 +39,7 @@ class MyName extends StatelessWidget { ); })) : Text(data, - textScaleFactor: 7, + textScaler: const TextScaler.linear(7), style: TextStyle( fontFamily: 'FjallaOne', letterSpacing: 20.5,