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() {
showModalBottomSheet<void>(
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<ProfileMgrView> {
Spacer()
]),
],
)),
)));
))),
)));
});
}