diff --git a/packages/at_contacts_flutter/lib/widgets/add_contacts_dialog.dart b/packages/at_contacts_flutter/lib/widgets/add_contacts_dialog.dart index 7dbd4b71..e68d96f8 100644 --- a/packages/at_contacts_flutter/lib/widgets/add_contacts_dialog.dart +++ b/packages/at_contacts_flutter/lib/widgets/add_contacts_dialog.dart @@ -47,7 +47,7 @@ class _AddContactDialogState extends State { @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, diff --git a/packages/at_contacts_flutter/lib/widgets/common_button.dart b/packages/at_contacts_flutter/lib/widgets/common_button.dart index abbc3338..2dd2d54e 100644 --- a/packages/at_contacts_flutter/lib/widgets/common_button.dart +++ b/packages/at_contacts_flutter/lib/widgets/common_button.dart @@ -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(