Documentation

Trace: Component badge

(flutterui)

Component badge

This is an old revision of the document!


Its super simple to show component badges like:

Just use styles:

Show 9 as label

Style.addStyleNames(comp, "f_badge_text_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");

Set color:

Style.addStyleNames(comp, "f_badge_color_#888888");

Set text color:

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