BilalShahid13 / PersistentBottomNavBar

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

when you open the keyboard it keeps the size of the bottom navigation bar #338

Open Isra0210 opened 1 year ago

Isra0210 commented 1 year ago

image

persistent_bottom_nav_bar: ^5.0.2

flutter doctor:

Doctor summary (to see all details, run flutter doctor -v): [√] Flutter (Channel stable, 3.13.1, on Microsoft Windows [versÆo 10.0.22621.2134], locale en-US) [√] Windows Version (Installed version of Windows is version 10 or higher) [√] Android toolchain - develop for Android devices (Android SDK version 34.0.0) [√] Chrome - develop for the web [√] Visual Studio - develop Windows apps (Visual Studio Build Tools 2019 16.11.27) [√] Android Studio (version 2022.3) [√] VS Code (version 1.81.1) [√] Connected device (4 available) [√] Network resources

• No issues found!

abdou-tech-maker commented 1 year ago

i have the same issue and i cannot find anyway to get rid of it

Isra0210 commented 1 year ago

i have the same issue and i cannot find anyway to get rid of it

You can check when the keyboard is open with MediaQuery.of(context).viewInsets.bottom > 0 to show the component or not

RamyGomaa commented 10 months ago

I have the same problem, I thought it would be fixed in a newer version but this problem persists.

RamyGomaa commented 10 months ago

i have the same issue and i cannot find anyway to get rid of it

You can check when the keyboard is open with MediaQuery.of(context).viewInsets.bottom > 0 to show the component or not

Can you give me a code example of where you should use this line, i have tried doing this, but the only thing that worked was me opening screens that have text fields using this

PersistentNavBarNavigator.pushNewScreen(
            context,
            screen: const ChatIntro(),
            withNavBar: false, // OPTIONAL VALUE. True by default.
            pageTransitionAnimation: PageTransitionAnimation.fade,
          );
terrium88 commented 9 months ago

Hello. Is there any news how to handle this issue? I have the same trouble.

hortigado commented 8 months ago

Same issue

RamyGomaa commented 8 months ago

Hello. Is there any news how to handle this issue? I have the same trouble.

PersistentTabView I used

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