Fix unlock modal keyboard inset on android
continuous-integration/drone/pr Build is failing Details

This commit is contained in:
Sarah Jamie Lewis 2021-05-26 15:44:00 -07:00
parent 8551e9cd11
commit 7d6fc268b5
1 changed files with 9 additions and 6 deletions

View File

@ -129,11 +129,14 @@ class _ProfileMgrViewState extends State<ProfileMgrView> {
void _modalUnlockProfiles() { void _modalUnlockProfiles() {
showModalBottomSheet<void>( showModalBottomSheet<void>(
context: context, context: context,
isScrollControlled: true,
builder: (BuildContext context) { builder: (BuildContext context) {
return RepaintBoundary( return Padding(
child: Container( padding: MediaQuery.of(context).viewInsets,
height: 200, // bespoke value courtesy of the [TextField] docs child: RepaintBoundary(
child: Center( child: Container(
height: 200, // bespoke value courtesy of the [TextField] docs
child: Center(
child: Padding( child: Padding(
padding: EdgeInsets.all(10.0), padding: EdgeInsets.all(10.0),
child: Column( child: Column(
@ -165,8 +168,8 @@ class _ProfileMgrViewState extends State<ProfileMgrView> {
Spacer() Spacer()
]), ]),
], ],
)), ))),
))); )));
}); });
} }