o4x / infinity_ui

A flutter plugin for remove status & navigation bar padding.
https://pub.dev/packages/infinity_ui
MIT License
6 stars 4 forks source link

SafeInfinityUi's navigationBarBackground stopped working in 0.2.5 #4

Open emvaized opened 4 years ago

emvaized commented 4 years ago

After update to 0.2.5 navigationBarBackground doesn't work anymore.

Widget tree like this:

return SafeInfinityUi(
        navigationBarBackground: Container(
                color: Colors.white,
              ),
            ...

Container is not displayed at all...

Android version is 9.

emvaized commented 4 years ago

Also InfinityUi.navigationBarHeight seems to be not always calculated correctly for some reason...

Reverting to 0.2.2 solves both of these issues. So seems like patches for Android 10's navbar, made in 0.2.5, broke something.

o4x commented 4 years ago

Hi @emvaized , I tested this in many device with different android versions But I did not encounter such a problem. Thank's for report this issue. please share your device name and if you can part of your code with me.

emvaized commented 4 years ago

@o4x Thanks for your reply! Unfortunately, I can't test on a real device for now, so can confirm this happen only on emulator running Android 9.

emvaized commented 4 years ago

closed issue accidentally

o4x commented 4 years ago

Ohhh, I really don't know where the this problem comes from. What is your emulator ?

emvaized commented 4 years ago

@o4x Okay... Maybe I'm the only one facing this issue.

Here's emulator main specs: Screenshot_20200810_062102

o4x commented 4 years ago

@emvaized Have you encountered this problem with the example that comes with this repository ? I tested with the this version of the emulator and did not encounter any problem. However, this issue will remain open.

emvaized commented 4 years ago

@o4x Yeah, I use basically the same layout, but with Container instead of Image... Okay, thanks for your response anyway! Very cool and rare when such a great libraries are maintained that well. Keep it up :+1:

I guess I'll stuck with 0.2.2 by now, since everything works more stable for me (except Android 10 navbar of course).