From 1fdac3b2cb309b401d0cbe7502c7017fb106edab Mon Sep 17 00:00:00 2001 From: David Senk Date: Thu, 5 Sep 2024 20:08:01 -0400 Subject: [PATCH] better about page padding --- lib/About.dart | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/lib/About.dart b/lib/About.dart index d8eaf83..e67949d 100644 --- a/lib/About.dart +++ b/lib/About.dart @@ -5,12 +5,17 @@ class About extends StatelessWidget { @override 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( style: Theme.of(context).textTheme.bodyLarge!, - child: const SingleChildScrollView( + child: SingleChildScrollView( child: Padding( - padding: EdgeInsets.all(16.0), - child: Text( + padding: EdgeInsets.only(left: safeLeftPadding, right: safeRightPadding, bottom: safeBottomPadding, top: safeTopPadding), + child: const Text( '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 ' '"look and feel" of the app to be tested on real devices for those wishing to '