Skip to content

Commit

Permalink
replaced deprecated member functions
Browse files Browse the repository at this point in the history
  • Loading branch information
danger-ahead committed May 30, 2024
1 parent 814ee56 commit 7e2dcca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/src/home/introduction.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions lib/src/home/my_name.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -39,7 +39,7 @@ class MyName extends StatelessWidget {
);
}))
: Text(data,
textScaleFactor: 7,
textScaler: const TextScaler.linear(7),
style: TextStyle(
fontFamily: 'FjallaOne',
letterSpacing: 20.5,
Expand Down

0 comments on commit 7e2dcca

Please sign in to comment.