Banner

A Banner is a notification displayed in-context to convey an important message to users.

Component checklist

Flutter

Is new design vision part implemented using new tokens?

Up to date

Resources

 

Examples

Feedback/Banner


                                                        
                                                        
                                                            OptimusBanner(
                                                                      title: Text('Title'),
                                                                      description: Text('Description'),
                                                                      hasIcon: true,
                                                                      isDismissible: true,
                                                                      variant: OptimusFeedbackVariant.info,
                                                                      )
                                                        
                                                            

OptimusBadge Example

API

Name

Description

Type

Default

title

 

String

 

variant

 

OptimusFeedbackVariant

OptimusFeedbackVariant.info

hasIcon

 

bool

false

description

 

Widget?

 

isDismissible

 

bool

false

onDismiss

 

VoidCallback?