Documentation

Trace: Component badge

(flutterui)

Component badge

Its super simple to show component badges like:

Just use styles:

Show 9 as label

Style.addStyleNames(comp, "f_badge_9");

Set border size and color:

Style.addStyleNames(comp, "f_badge_border_2_#aa0000");

Set alignment:

Style.addStyleNames(comp, "f_badge_align_bottomRight");

Possible values are: topLeft, topRight, bottomLeft, bottomRight, center

Set an offset for x and y position:

Style.addStyleNames(comp, "f_badge_offset_10_5");

or just x:

Style.addStyleNames(comp, "f_badge_offset_20");
This website uses cookies for visitor traffic analysis. By using the website, you agree with storing the cookies on your computer.More information