BilalShahid13 / PersistentBottomNavBar

A highly customizable persistent bottom navigation bar for Flutter
BSD 3-Clause "New" or "Revised" License
507 stars 368 forks source link

Keyboard hiding TextFields #348

Open juankbenavidess opened 5 months ago

juankbenavidess commented 5 months ago

When opening the textFormfield the screen is not redrawn and the textFormField is not displayed when the keyboard is displayed. This error should be solved by the library, not with other widgets.

https://github.com/BilalShahid13/PersistentBottomNavBar/assets/49385324/fa5a08fd-ffb5-488a-8c66-72eaa54726ed

class CreateGestionScreenState extends ConsumerState<CreateGestionScreen> { @override Widget build(BuildContext) { return SafeArea( child: LoadingOverlay( isLoading: isLoading, child: SingleChildScrollView( child: Column( children: [ Padding( padding: const EdgeInsets.all(8.0), child: Table( TableRow(children: [ Text('Observaciones'), TextFormField( initialValue: observaciones, // key: Key( // proformProvider.proforma.entrada.toString()), // decoration: _inputDecoration, onTapOutside: (event) { FocusManager.instance.primaryFocus?.unfocus(); setState(() {}); }, // textAlign: TextAlign.end, onChanged: (value) { observaciones = value; }, ), ]),.... This is my structure

ravikumarbigwings commented 3 months ago

did you found solution

AktanK13 commented 1 month ago

hideNavigationBar: MediaQuery.of(context).viewInsets.bottom > 0 ? true : false,