Fix text scaling on about dialog
This commit is contained in:
parent
68c937a73d
commit
240b7f05c0
@ -38,12 +38,14 @@ class AboutDialogContent extends StatelessWidget {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
double fontSize = $styles.text.bodySmall.fontSize!;
|
||||||
|
fontSize *= MediaQuery.textScaleFactorOf(context);
|
||||||
return SingleChildScrollView(
|
return SingleChildScrollView(
|
||||||
child: Column(children: [
|
child: Column(children: [
|
||||||
Gap($styles.insets.sm),
|
Gap($styles.insets.sm),
|
||||||
RichText(
|
RichText(
|
||||||
text: TextSpan(
|
text: TextSpan(
|
||||||
style: $styles.text.bodySmall.copyWith(color: Colors.black),
|
style: $styles.text.bodySmall.copyWith(color: Colors.black, fontSize: fontSize),
|
||||||
children: [
|
children: [
|
||||||
...buildSpan($strings.homeMenuAboutWonderous),
|
...buildSpan($strings.homeMenuAboutWonderous),
|
||||||
...buildSpan($strings.homeMenuAboutBuilt, linkSupplants: {
|
...buildSpan($strings.homeMenuAboutBuilt, linkSupplants: {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user