From eeeb9db1edc309712705505f418680891417ba9c Mon Sep 17 00:00:00 2001 From: Utkarsh4517 Date: Wed, 5 Jul 2023 18:04:27 +0530 Subject: [PATCH 1/2] fix:bug issue#52 --- lib/screens/settings/components/current_command.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/screens/settings/components/current_command.dart b/lib/screens/settings/components/current_command.dart index 223b7d6..da6d20a 100644 --- a/lib/screens/settings/components/current_command.dart +++ b/lib/screens/settings/components/current_command.dart @@ -66,9 +66,9 @@ class CurrentCommandContainer extends StatelessWidget { ? MediaQuery.of(context).size.width - 270 : MediaQuery.of(context).size.width - 56, height: Responsive.isDesktop(context) - ? MediaQuery.of(context).size.height / 20 + ? MediaQuery.of(context).size.height / 21 : MediaQuery.of(context).size.height / - 20, // remove drawer width + 21, // remove drawer width decoration: BoxDecoration( color: kBgLightColor, ), From 9b6beb8d0a4320b5429d421bfef8a26da31baf84 Mon Sep 17 00:00:00 2001 From: Utkarsh4517 Date: Wed, 5 Jul 2023 19:24:56 +0530 Subject: [PATCH 2/2] made the sizedbox responsive --- lib/screens/settings/components/current_command.dart | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/screens/settings/components/current_command.dart b/lib/screens/settings/components/current_command.dart index da6d20a..f575bdb 100644 --- a/lib/screens/settings/components/current_command.dart +++ b/lib/screens/settings/components/current_command.dart @@ -58,7 +58,7 @@ class CurrentCommandContainer extends StatelessWidget { ) ], ), - SizedBox(height: 12), + SizedBox(height: MediaQuery.of(context).size.height * 0.005), SingleChildScrollView( scrollDirection: Axis.vertical, child: Container( @@ -66,9 +66,9 @@ class CurrentCommandContainer extends StatelessWidget { ? MediaQuery.of(context).size.width - 270 : MediaQuery.of(context).size.width - 56, height: Responsive.isDesktop(context) - ? MediaQuery.of(context).size.height / 21 + ? MediaQuery.of(context).size.height / 20 : MediaQuery.of(context).size.height / - 21, // remove drawer width + 20, // remove drawer width decoration: BoxDecoration( color: kBgLightColor, ),