MessageBox constructor
const
MessageBox({
- Key? key,
- required Widget label,
- Widget? icon,
- TextStyle? textStyle,
- Color? backgroundColor,
- BoxBorder? border,
- BorderRadiusGeometry? borderRadius,
- EdgeInsetsGeometry padding = const EdgeInsets.all(16),
- Color? color,
- EdgeInsetsGeometry? margin,
- List<
Widget> actions = const [],
A box for displaying messages.
You can set a message in label. You can set an icon at icon. If not set, Icons.info_outline
will be set.
You can set the main color in color and the background color in backgroundColor.
メッセージを表示するためのボックス。
labelにメッセージを設定します。iconにアイコンを設定できます。設定されていない場合はIcons.info_outline
が設定されます。
colorにメインの色、backgroundColorに背景色を設定することができます。
Implementation
const MessageBox({
super.key,
required this.label,
this.icon,
this.textStyle,
this.backgroundColor,
this.border,
this.borderRadius,
this.padding = const EdgeInsets.all(16),
this.color,
this.margin,
this.actions = const [],
});