Buma UI - DocumentationBuma UI - Documentation
Get Started
Foundations
Components
Resources
Patterns
Data Visualization
Back to BSpace
Get Started
Foundations
Components
Resources
Patterns
Data Visualization
  • stacksFoundations
    • 💡 Overview
    • Color
    • Principle
    • Typography
  • brickComponents
    • 💡 Overview
    • Accordion
    • Alert
    • Avatar
    • Badge
    • Bottom Sheet
    • Bread Crumb
    • Button
    • Button Link
    • Button Navigation
    • Calendar
    • Card
    • Chat
    • Checkbox
    • Chips
    • Choice Tile
    • Comment
    • Date Picker
    • Divider
    • Download
    • Drawer
    • Dropdown
    • Empty State
    • Floating Button
    • Form Input
    • Header
    • Hint
    • Icon
    • List Choice
    • Loading
    • Modal
    • Navigation Bar
    • Notification
    • Pagination
    • Progress Bar
    • Radio Button
    • Search
    • Scrolling Bar
    • Segmented Switch
    • Side Menu
    • Side Tab
    • Slider
    • Switch
    • Tab
    • Table
    • Text Area
    • Text Input
    • Time Picker
    • Title
    • Toast
    • Tooltip
    • Wizzard
  • splitscreenPattern
    • 💡 Overview
    • Filter
      upcoming
    • Form
      upcoming
    • Notification
    • PWA
      upcoming
    • table
      upcoming
    • Upload Download
      upcoming
  • insert_chartData Visualization
    • 💡 Overview
    • Tiering
    • Pattern
    • Chart and Graph
      • Chart Selection Guide
      • Map Selector
      • Donut Chart
      • Donut Progress Bar Chart
      • Spider Chart
      • Line Chart
      • Chart Area
      • Speedometer
      • Heat Map
      • Scatter Plot
      • Pie Chart
      • Bar Chart
      • Waterfall Chart
      • Sunburst Chart
      • Tree Decomposition Chart
      • Scorecards
      • Table
      • Micro Visualization
    • Typography
    • Color Palette
  • data_objectTokens
    upcoming
  • inventory_2Resources
    • 💡 Overview
    • Mobile
      new
      • 💡 Introduction
      • Installation
      • General
        • Important Rules
        • Naming Convention
        • Clean Architecture
    • Web
      upcoming
ComponentsChoice TileChoice tiles are usually small boxes or rectangles containing text, images, or icons that represent the options available to the user.
Guidelines
Web
Oops Sorry! This Page Is Under Maintenance
We are improving this page, and will be back soon! You can explore other page.
Mobile
Resources
  • You can use these components by accessing the provided resource files.
  • Preview animations are examples and may not suit Mobile Widgets. Press 'View Code' to access the Widgetbook Playground and see the Flutter widget displaying all created components and interactive.

Usage

Import this line to your file:

import 'package:buma_design_system/buma_design_system.dart';

Attributes of all variants

If there is a question mark ? in the Data Type, it means that the properties are optional, this is namedConstructor from UIChoiceTile or UIOptionTile

This widget will displays different content, and usually displays small boxes or rectangles containing text, images, or icons that represent the options available to the user.

The option tile can select multiple value and make selected value when user has gesture or tapped the card of option tile.

UIChoiceTile
PropertiesData TypeDescription
valueT?The value associated with this choice tile
groupValueTThe value of the group that this choice tile belongs to
iconIconData?The icon to display in the choice tile
titleString?The main title text of the choice tile
subTitleString?The subtitle text of the choice tile
bottomLabelStringThe bottom label text of the choice tile
childWidget?A custom widget to display within the choice tile
onTapVoidCallback?The callback function to be called when the choice tile is tapped
UIChoiceTile.center
PropertiesData TypeDescription
valueT?The value associated with this choice tile
groupValueTThe value of the group that this choice tile belongs to
titleString?The main title text of the choice tile
subTitleString?The subtitle text of the choice tile
statusString?The status text of the choice tile
childWidget?A custom widget to display within the choice tile
onTapVoidCallback?The callback function to be called when the choice tile is tapped
UIOptionTile.primary
PropertiesData TypeDescriptionDefault Value
titleUILabel?Displays custom titlenull
subtitleUILabel?Displays custom subtitlenull
titleTextString?Displays text of titlenull
subtitleTextString?Displays text of subtitlenull
isSelectedboolThe condition when user selected the option tilefalse
hasPrefixCheckboxbool?Displays a checkbox in the left of content option tilefalse
hasSuffixCheckboxbool?Displays a checkbox in the right of content option tilefalse
prefixWidget?Displays a custom widget to the left of the content options tilenull
suffixWidget?Displays a custom widget to the right of the content options tilenull
isCenteredLabelboolMake the title and subTitle alignment centerfalse
onTapVoidCallback?The callback when user has interaction to the option tilenull
UIOptionTile.secondary
PropertiesData TypeDescriptionDefault Value
titleTextString?Displays text of titlenull
isSelectedboolThe condition when user selected the option tilefalse
iconIconData?Displays icon in the center of content of UIOptionTileVariant.secondarynull
isCenteredLabelboolMake the title and subTitle alignment centerfalse
onTapVoidCallback?The callback when user has interaction to the option tilenull
UIOptionTile.item
PropertiesData TypeDescriptionDefault Value
titleUILabel?Displays custom titlenull
subtitleUILabel?Displays custom subtitlenull
titleTextString?Displays text of titlenull
subtitleTextString?Displays text of subtitlenull
prefixWidget?Displays a custom widget to the left of the content options tilenull
suffixWidget?Displays a custom widget to the right of the content options tilenull
isCenteredLabelboolMake the title and subTitle alignment centerfalse
onTapVoidCallback?The callback when user has interaction to the option tilenull
UIOptionTIle.dropdown
PropertiesData TypeDescriptionDefault Value
titleTextString?Displays text of titlenull
subtitleTextString?Displays text of subtitlenull
suffixWidget?Displays a custom widget to the right of the content options tilenull
isCenteredLabelboolMake the title and subTitle alignment centerfalse
listDropDownList<UIOptionTileDropDownItem>?The list of dropdown items option tile[]
onTapDropDownValueChanged<UIOptionTileDropDownItem>?The callback when user has interaciton to the dropdownnull

Previews & Code

You can call the components with Class.namedConstructor() with different variants.

Choice Tile Base
Choice Tile Center
Option Tile Primary
Option Tile Primary
Option Tile Dropdown
Option Tile Item
arrow_back
Previous Chips
Next Comment
arrow_forward