MessageBox constructor

const MessageBox({
  1. Key? key,
  2. required Widget label,
  3. Widget? icon,
  4. TextStyle? textStyle,
  5. Color? backgroundColor,
  6. BoxBorder? border,
  7. BorderRadiusGeometry? borderRadius,
  8. EdgeInsetsGeometry padding = const EdgeInsets.all(16),
  9. Color? color,
  10. EdgeInsetsGeometry? margin,
  11. 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 [],
});