MessageBox class
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に背景色を設定することができます。
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- MessageBox
- Available Extensions
Constructors
- MessageBox({Key? key, required Widget label, Widget? icon, TextStyle? textStyle, Color? backgroundColor, BoxBorder? border, BorderRadiusGeometry? borderRadius, EdgeInsetsGeometry padding = const EdgeInsets.all(16), Color? color})
-
A box for displaying messages.
const
Properties
- backgroundColor → Color?
-
Background color.
final
- border → BoxBorder?
-
Box borders.
final
- borderRadius → BorderRadiusGeometry?
-
Box rounded corners.
final
- color → Color?
-
Main color.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- icon → Widget?
-
A widget that can be placed in the icon section.
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- label → Widget
-
A widget that can be placed in the message section.
final
- padding → EdgeInsetsGeometry
-
Content Padding.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- textStyle → TextStyle?
-
Message text style.
final
Methods
-
build(
BuildContext context) → Widget -
Describes the part of the user interface represented by this widget.
override
-
createElement(
) → StatelessElement -
Creates a StatelessElement to manage this widget's location in the tree.
inherited
-
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of
DiagnosticsNode
objects describing this node's children.inherited -
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringDeep(
{String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a string representation of this node and its descendants.
inherited
-
toStringShallow(
{String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a one-line detailed description of the object.
inherited
-
toStringShort(
) → String -
A short, textual description of this widget.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited