Skip to content

Commit

Permalink
chore: updated textScaleFactor to textScaler
Browse files Browse the repository at this point in the history
  • Loading branch information
Sardar1208 committed Jan 31, 2024
1 parent a8f73e6 commit 8346548
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class _AddContactDialogState extends State<AddContactDialog> {
@override
Widget build(BuildContext context) {
var contactService = ContactService();
var deviceTextFactor = MediaQuery.of(context).textScaleFactor;
var deviceTextFactor = MediaQuery.of(context).textScaler.scale(20) / 20;
return SizedBox(
height: 140.toHeight * deviceTextFactor,
width: 100.toWidth,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class CommonButton extends StatelessWidget {

@override
Widget build(BuildContext context) {
double deviceTextFactor = MediaQuery.of(context).textScaleFactor;
var deviceTextFactor = MediaQuery.of(context).textScaler.scale(20) / 20;
return InkWell(
onTap: onTap,
child: Container(
Expand Down

0 comments on commit 8346548

Please sign in to comment.