yako-dev / flutter_badges

A flutter package for creating badges.

Home Page:https://pub.dev/packages/badges

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Question: Badge in CupertinoNavigationBar

robert-virkus opened this issue · comments

Hi,

I am using a badge to indicate a problem on an iOS app. I specify a leading parameter in the CupertinoNavigationBar like this:

return CupertinoNavigationBar(
   leading: CupertinoButton(
     child: Badge(child: Text('< Accounts')), 
     onPressed: () {},
   ),
);

My problem now is that the leading is truncated. Do you happen to know how I can ensure that the whole widget is shown?
Bildschirmfoto 2021-06-02 um 17 20 29

Thanks a lot for the help and the great badges project!

@robert-virkus, sorry for the delay.
Your code does not work even without the flutter_badges package.
You need to fix it yourself

This isn't related to the package.

Screenshot 2021-07-27 at 16 20 27