hacktons / convex_bottom_bar

A Flutter package which implements a ConvexAppBar to show a convex tab in the bottom bar. Theming supported.
https://bar.hacktons.cn
Apache License 2.0
801 stars 151 forks source link

Highlighted index issue when keyboard opens and then closes. #115

Closed najafsikander closed 4 years ago

najafsikander commented 4 years ago

Describe the bug

Whenever I open keyboard and then close it the highlight color of the bar goes to other value instead of current index assigned to the bar.

Environment details

MacOs Catalina 10.15.7 Android Studio 4.1 Pixel 2 Api 30 Emulator

flutter doctor
Flutter 1.22.0 • channel stable • https://github.com/flutter/flutter.git
Framework • revision d408d302e2 (2 weeks ago) • 2020-09-29 11:49:17 -0700
Engine • revision 5babba6c4d
Tools • Dart 2.10.0

Paste the package version. 2.5.1+1

dependencies:
  convex_bottom_bar: 2.5.1+1

To Reproduce

Steps to reproduce the behavior:

  1. Open Keyboard with textfieldform in the screen
  2. Keyboard will appear
  3. Close it
  4. The highlighted index will be wrong for the bar

Expected behavior

Highlighted index should be exact to the current screen

Screenshots

If applicable, add screenshots to help explain your problem. Screenshot_1602748064

najafsikander commented 4 years ago

Ok I found solution which you posted in another open issue. Closing it.