From 6b9cf1f16417e2556a64a67295c43da920da419b Mon Sep 17 00:00:00 2001 From: Sarah Jamie Lewis Date: Mon, 4 Jul 2022 11:31:49 -0700 Subject: [PATCH] Fix Modal for New/Import and Unlock on Android --- lib/views/profilemgrview.dart | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/views/profilemgrview.dart b/lib/views/profilemgrview.dart index 9324432d..38f1fc87 100644 --- a/lib/views/profilemgrview.dart +++ b/lib/views/profilemgrview.dart @@ -206,7 +206,7 @@ class _ProfileMgrViewState extends State { padding: MediaQuery.of(context).viewInsets, child: RepaintBoundary( child: Container( - height: 200, // bespoke value courtesy of the [TextField] docs + height: Platform.isAndroid ? 250 : 200, // bespoke value courtesy of the [TextField] docs child: Center( child: Padding( padding: EdgeInsets.all(10.0), @@ -221,7 +221,7 @@ class _ProfileMgrViewState extends State { Expanded( child: ElevatedButton( style: ElevatedButton.styleFrom( - minimumSize: Size(double.infinity, 20), + minimumSize: Size(399, 20), maximumSize: Size(400, 20), shape: RoundedRectangleBorder(borderRadius: BorderRadius.horizontal(left: Radius.circular(180), right: Radius.circular(180))), ), @@ -242,7 +242,7 @@ class _ProfileMgrViewState extends State { message: AppLocalizations.of(context)!.importProfileTooltip, child: ElevatedButton( style: ElevatedButton.styleFrom( - minimumSize: Size(double.infinity, 20), + minimumSize: Size(399, 20), maximumSize: Size(400, 20), shape: RoundedRectangleBorder( side: BorderSide(color: Provider.of(context).theme.defaultButtonActiveColor, width: 2.0), @@ -287,7 +287,7 @@ class _ProfileMgrViewState extends State { padding: MediaQuery.of(context).viewInsets, child: RepaintBoundary( child: Container( - height: 200, // bespoke value courtesy of the [TextField] docs + height: Platform.isAndroid ? 250 : 200, // bespoke value courtesy of the [TextField] docs child: Center( child: Padding( padding: EdgeInsets.all(10.0),