Skip to content

Doesn't work on release mode on Android 11 #14

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
xirainfotech opened this issue Mar 4, 2021 · 6 comments
Closed

Doesn't work on release mode on Android 11 #14

xirainfotech opened this issue Mar 4, 2021 · 6 comments

Comments

@xirainfotech
Copy link

CODE:
return Scaffold(
body: _pages[_nav.getIndex()],
drawer: CustomDrawer(),
floatingActionButton: FloatingActionButton(
onPressed: () {
Get.toNamed(Routes.CARTPAGE);
},
),
floatingActionButtonLocation:
FloatingActionButtonLocation.centerDocked,
bottomNavigationBar: AnimatedBottomNavigationBar(
icons: _iconList,
splashColor: accentColor,
activeColor: accentColor,
inactiveColor: Colors.black.withOpacity(0.5),
notchMargin: 10.0,
activeIndex: _nav.getIndex(),
gapLocation: GapLocation.center,
leftCornerRadius: 32,
rightCornerRadius: 32,
notchSmoothness: NotchSmoothness.verySmoothEdge,
onTap: (val) {
_nav.changeIndex(val);
},
),
);

ERROR:
Wrong gap location in AnimatedBottomNavigationBar towards FloatingActionButtonLocation => consider use GapLocation.end instead of GapLocation.center or change FloatingActionButtonLocation
The relevant error-causing widget was
AnimatedBottomNavigationBar

@vizhan-lanars
Copy link
Collaborator

Can't reproduce with the code snippet. (Tested Pixel 3a XL, Android 11, release)
Could you provide a minimum project with the issue?

@xirainfotech
Copy link
Author

Ive used that code in this app: https://play.google.com/store/apps/details?id=com.xira.mymk
Check if its working for you or not...
Its not working only on Android 11

@vizhan-lanars
Copy link
Collaborator

It is working fine for me.

@vizhan-lanars
Copy link
Collaborator

photo_2021-03-17 11 24 56

@xirainfotech
Copy link
Author

Thanks for your reply, I'll test my code and check on few more devices

@xirainfotech
Copy link
Author

Closing this issue for now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants