AbdulRahmanAlHamali/flutter_typeahead

Green Screen Flicker Behind Keyboard

Seyien opened this issue · 0 comments

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
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
[Paste your logs here]

Screenshots or Video

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