From 7d6fc268b59ab00ec11ca28dd51cf934bbadf9ad Mon Sep 17 00:00:00 2001 From: Sarah Jamie Lewis Date: Wed, 26 May 2021 15:44:00 -0700 Subject: [PATCH] Fix unlock modal keyboard inset on android --- lib/views/profilemgrview.dart | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/lib/views/profilemgrview.dart b/lib/views/profilemgrview.dart index 1c03b26..65ffdce 100644 --- a/lib/views/profilemgrview.dart +++ b/lib/views/profilemgrview.dart @@ -129,11 +129,14 @@ class _ProfileMgrViewState extends State { void _modalUnlockProfiles() { showModalBottomSheet( context: context, + isScrollControlled: true, builder: (BuildContext context) { - return RepaintBoundary( - child: Container( - height: 200, // bespoke value courtesy of the [TextField] docs - child: Center( + return Padding( + padding: MediaQuery.of(context).viewInsets, + child: RepaintBoundary( + child: Container( + height: 200, // bespoke value courtesy of the [TextField] docs + child: Center( child: Padding( padding: EdgeInsets.all(10.0), child: Column( @@ -165,8 +168,8 @@ class _ProfileMgrViewState extends State { Spacer() ]), ], - )), - ))); + ))), + ))); }); }