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
ComponentsEmpty StateEmpty states are messages that appear whenever a page or component has no content to display to the user.
Guidelines
Web
Resources You can use these components by accessing the provided resource files.

Usage

The package is already installed in the repository's shell. To use the component, you only need to add the following code:

<BEmptyState />

Attributes

If there is a question mark ? in the Data Type, it means that the properties are optional.

PropertiesData TypeDescriptionDefault Value
variantstring?Specifies the variant for the componentnone

Variant

<BEmptyState /> has 3 variant

VariantDescription
load-failedUsed to indicate a failed load state
no-dataUsed when there is no data available
no-resultUsed when there are no search results

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 UIEmptyState

UIEmptyState

A widget for warn user when data is unavailable, Prevent confusion that would arise from and empty page or component, reassure users that they are doing the right thing and help the user figure out what they can do next.

PropertiesData TypeDescriptionDefault Value
messageString?A text for empty state highlight informationnull
typeUIEmptyStateTypeA different type of empty stateUIEmptyStateType.noData
UIEmptyStatePage

A widget for warn user when data is unavailable for full of page, Prevent confusion that would arise from and empty page or component, reassure users that they are doing the right thing and help the user figure out what they can do next.

PropertiesData TypeDescriptionDefault Value
titleString?A text for empty state page highlight informationnull
messangeString?A subtitle under title to explain more informationnull
systemMessangeString?A important information to client devices with Error: prefixnull
typeUIEmptyStatePageTypeA different type of empty state pageUIEmptyStatePageType.system400
buttonUIEmptyStateButtonA primary button for handle callback to continue the next action`{different_type_default_button}

Previews & Code

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

Single No Data
  UIEmptyState(
    message: 'Message',
    type: UIEmptyStateType.nodata,
  )
Single No Result
  UIEmptyState(
    message: 'Message',
    type: UIEmptyStateType.noresult,
  )
Page System 400
  UIEmptyStatePage(
    title: 'Title',
    message: 'Message',
    systemMessage: '400 Exception',
    type: UIEmptyStatePageType.system400,
    button: UIEmptyStateButton(
      label: 'Label',
      onPressed: (){
        // Do something
      },
    ),
  )
Page System 401
  UIEmptyStatePage(
    title: 'Title',
    message: 'Message',
    systemMessage: '401 Exception',
    type: UIEmptyStatePageType.system401,
    button: UIEmptyStateButton(
      label: 'Label',
      onPressed: (){
        // Do something
      },
    ),
  )
Page System 404
  UIEmptyStatePage(
    title: 'Title',
    message: 'Message',
    systemMessage: '404 Exception',
    type: UIEmptyStatePageType.system404,
    button: UIEmptyStateButton(
      label: 'Label',
      onPressed: (){
        // Do something
      },
    ),
  )
Page System 500
  UIEmptyStatePage(
    title: 'Title',
    message: 'Message',
    systemMessage: '500 Exception',
    type: UIEmptyStatePageType.system500,
    button: UIEmptyStateButton(
      label: 'Label',
      onPressed: (){
        // Do something
      },
    ),
  )
Page No Data
  UIEmptyStatePage(
    title: 'Title',
    message: 'Message',
    type: UIEmptyStatePageType.noData,
    button: UIEmptyStateButton(
      label: 'Label',
      onPressed: (){
        // Do something
      },
    ),
  )
Page Under Maintenaince
  UIEmptyStatePage(
    title: 'Title',
    message: 'Message',
    type: UIEmptyStatePageType.underMaintenaince,
    button: UIEmptyStateButton(
      label: 'Label',
      onPressed: (){
        // Do something
      },
    ),
  )
Page Update App
  UIEmptyStatePage(
    title: 'Title',
    message: 'Message',
    type: UIEmptyStatePageType.updateApp,
    button: UIEmptyStateButton(
      label: 'Label',
      onPressed: (){
        // Do something
      },
    ),
  )
arrow_back
Previous Dropdown
Next Floating Button
arrow_forward