better about page padding
This commit is contained in:
@@ -5,12 +5,17 @@ class About extends StatelessWidget {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
|
final safeLeftPadding = MediaQuery.of(context).padding.left + 16;
|
||||||
|
final safeRightPadding = MediaQuery.of(context).padding.right + 16;
|
||||||
|
final safeBottomPadding = MediaQuery.of(context).padding.bottom;
|
||||||
|
final safeTopPadding = MediaQuery.of(context).padding.top;
|
||||||
|
|
||||||
return DefaultTextStyle(
|
return DefaultTextStyle(
|
||||||
style: Theme.of(context).textTheme.bodyLarge!,
|
style: Theme.of(context).textTheme.bodyLarge!,
|
||||||
child: const SingleChildScrollView(
|
child: SingleChildScrollView(
|
||||||
child: Padding(
|
child: Padding(
|
||||||
padding: EdgeInsets.all(16.0),
|
padding: EdgeInsets.only(left: safeLeftPadding, right: safeRightPadding, bottom: safeBottomPadding, top: safeTopPadding),
|
||||||
child: Text(
|
child: const Text(
|
||||||
'Ything Radio is an app that is intended to provide a demonstration of the '
|
'Ything Radio is an app that is intended to provide a demonstration of the '
|
||||||
'open source ything_radio app. This app is used to provide the ability for the '
|
'open source ything_radio app. This app is used to provide the ability for the '
|
||||||
'"look and feel" of the app to be tested on real devices for those wishing to '
|
'"look and feel" of the app to be tested on real devices for those wishing to '
|
||||||
|
|||||||
Reference in New Issue
Block a user