I am building a register tab where there's Password and confirm password fields.
According to the researches I made, I could use resizeToAvoidBottomInset: true
if I'm using Scaffold and reverse: true
in case I'm using SingleChildScrollView
which is the case for me.
When I run it on the emulator everything works fine but on the phone I have a secure keyboard that pops up and stops it from working. Unfortunately I can't do a screenshot because of the secure keyboard.
Here's a snippet of the code
Widget build(BuildContext context) {
return SingleChildScrollView(
reverse: true,
child: Column(mainAxisSize: MainAxisSize.max, children: [
Form(
key: _formKey,
child: Column(children: [
CustomTextField(
data: Icons.lock,
hintText: 'password',
controller: passwordController,
isObscured: true,
),
CustomTextField(
data: Icons.lock,
hintText: 'Confirm password',
controller: confirmPasswordController,
isObscured: true,
),
])),
const SizedBox(height: 20),
]),
);
}
Here's the screenshot from the emulator