avoid bottom overflow when using keyboard

mobile
EmaMaker 2021-09-30 07:02:31 +00:00
parent 99f517d0ba
commit 3b6a67ad1f
1 changed files with 2 additions and 1 deletions

View File

@ -49,6 +49,7 @@ class _MyHomePageState extends State<MyHomePage> {
return GestureDetector( return GestureDetector(
onTap: () => hidekbd, onTap: () => hidekbd,
child: Scaffold( child: Scaffold(
resizeToAvoidBottomInset: false, //new line
appBar: AppBar( appBar: AppBar(
title: const Text("Base Converter"), title: const Text("Base Converter"),
actions: [ actions: [
@ -86,7 +87,7 @@ class _MyHomePageState extends State<MyHomePage> {
child: Container( child: Container(
margin: const EdgeInsets.all(24), margin: const EdgeInsets.all(24),
child: Center(child: resultToRichText())), child: Center(child: resultToRichText())),
) ),
]), ]),
), ),
), ),