Fix text scaling on about dialog

This commit is contained in:
Shawn 2022-09-01 21:04:25 -06:00
parent 68c937a73d
commit 240b7f05c0

View File

@ -38,12 +38,14 @@ class AboutDialogContent extends StatelessWidget {
}
}
double fontSize = $styles.text.bodySmall.fontSize!;
fontSize *= MediaQuery.textScaleFactorOf(context);
return SingleChildScrollView(
child: Column(children: [
Gap($styles.insets.sm),
RichText(
text: TextSpan(
style: $styles.text.bodySmall.copyWith(color: Colors.black),
style: $styles.text.bodySmall.copyWith(color: Colors.black, fontSize: fontSize),
children: [
...buildSpan($strings.homeMenuAboutWonderous),
...buildSpan($strings.homeMenuAboutBuilt, linkSupplants: {