AbdulRahmanAlHamali / flutter_typeahead

A TypeAhead widget for Flutter, where you can show suggestions to users as they type
BSD 2-Clause "Simplified" License
831 stars 349 forks source link

Green Screen Flicker Behind Keyboard #592

Closed Seyien closed 4 months ago

Seyien commented 4 months ago

Steps to reproduce

when I close the keyboard, the green color follows it until it is completely closed.

Expected results

when I close the keyboard, only what is normally behind the keyboard should appear.

Actual results

when I close the keyboard, the green color follows it until it is completely closed.

Package Version

5.2.0

Platform

Android

Code sample

Code sample ```dart controller: typeAheadController, hideWithKeyboard: false, hideOnUnfocus: false, focusNode: typeAheadFocusNode, // constraints: BoxConstraints(maxHeight: context.height * 0.7), builder: (context, typeAheadController, typeAheadFocusNode) => TextField( controller: typeAheadController, focusNode: typeAheadFocusNode, autofocus: false, style: TextStyle(fontSize: context.width * 0.04, color: AppColors.white), textAlign: TextAlign.left, textAlignVertical: TextAlignVertical.bottom, decoration: InputDecoration( border: OutlineInputBorder( borderRadius: BorderRadius.circular(context.width * 0.01), borderSide: BorderSide.none, ), hintText: hintText, hintStyle: TextStyle( color: Theme.of(context).hintColor, ), fillColor: Theme.of(context).highlightColor, filled: true, suffixIcon: typeAheadController.text.isNotEmpty ? InkWell( onTap: () { typeAheadFocusNode.unfocus(); typeAheadController.clear(); }, child: Icon( Icons.close_outlined, size: context.width * 0.0525, ), ) : null, suffixIconColor: AppColors.white, suffixIconConstraints: BoxConstraints(minWidth: context.width * 0.1), prefixIconColor: Theme.of(context).hintColor, prefixIconConstraints: BoxConstraints(minWidth: context.width * 0.1), prefixIcon: Icon( Icons.search, size: context.width * 0.05, ), ), ), ```

Logs

Logs ```console [Paste your logs here] ```

Screenshots or Video

Screenshots / Video demonstration ![image](https://github.com/AbdulRahmanAlHamali/flutter_typeahead/assets/110932038/d112589d-b136-4128-9e11-393cafd8f6d9)