FuButton class

Inheritance
Available Extensions

Constructors

FuButton({required VoidCallback onPressed, required Widget child, MaterialStateProperty<EdgeInsetsGeometry>? msPadding, EdgeInsetsGeometry? padding, MaterialStateProperty<EdgeInsetsGeometry>? msShape, OutlinedBorder? shape, BorderRadiusGeometry? borderRadius, double? borderRadiusAll = 0, MaterialStateProperty<Color>? msBackgroundColor, Color? backgroundColor = Colors.blue, FuButtonType? buttonType = FuButtonType.elevated, ButtonStyle? style, MaterialStateProperty<Color>? msShadowColor, MaterialStateProperty<BorderSide>? msSide, BorderSide? side, Color borderColor = Colors.transparent, bool? disabled = false, bool? block = false, bool soft = false, MaterialStateProperty<double>? msElevation, double? elevation = 4, Color? shadowColor, Color? splashColor})
const
FuButton.block({required VoidCallback onPressed, required Widget child, MaterialStateProperty<EdgeInsetsGeometry>? msPadding, EdgeInsetsGeometry? padding = const EdgeInsets.fromLTRB(24, 16, 24, 16), MaterialStateProperty<EdgeInsetsGeometry>? msShape, bool? block = true, OutlinedBorder? shape, bool soft = false, BorderRadiusGeometry? borderRadius, double? borderRadiusAll = 0, MaterialStateProperty<Color>? msBackgroundColor, Color? backgroundColor = Colors.blue, FuButtonType? buttonType = FuButtonType.elevated, ButtonStyle? style, MaterialStateProperty<BorderSide>? msSide, bool? disabled = false, BorderSide? side, Color borderColor = Colors.transparent, MaterialStateProperty<Color>? msShadowColor, MaterialStateProperty<double>? msElevation, double? elevation = 4, Color? shadowColor, Color? splashColor})
const
FuButton.large({required VoidCallback onPressed, required Widget child, MaterialStateProperty<EdgeInsetsGeometry>? msPadding, EdgeInsetsGeometry? padding = const EdgeInsets.fromLTRB(36, 20, 36, 20), MaterialStateProperty<EdgeInsetsGeometry>? msShape, OutlinedBorder? shape, bool soft = false, BorderRadiusGeometry? borderRadius, double? borderRadiusAll = 0, MaterialStateProperty<Color>? msBackgroundColor, Color? backgroundColor = Colors.blue, FuButtonType? buttonType = FuButtonType.elevated, ButtonStyle? style, bool? disabled = false, MaterialStateProperty<BorderSide>? msSide, BorderSide? side, bool? block = false, Color borderColor = Colors.transparent, MaterialStateProperty<Color>? msShadowColor, MaterialStateProperty<double>? msElevation, double? elevation = 4, Color? shadowColor, Color? splashColor})
const
FuButton.medium({required VoidCallback onPressed, required Widget child, MaterialStateProperty<EdgeInsetsGeometry>? msPadding, EdgeInsetsGeometry? padding = const EdgeInsets.fromLTRB(24, 16, 24, 16), MaterialStateProperty<EdgeInsetsGeometry>? msShape, bool? block = false, OutlinedBorder? shape, bool soft = false, BorderRadiusGeometry? borderRadius, double? borderRadiusAll = 0, MaterialStateProperty<Color>? msBackgroundColor, Color? backgroundColor = Colors.blue, FuButtonType? buttonType = FuButtonType.elevated, ButtonStyle? style, MaterialStateProperty<BorderSide>? msSide, bool? disabled = false, BorderSide? side, Color borderColor = Colors.transparent, MaterialStateProperty<Color>? msShadowColor, MaterialStateProperty<double>? msElevation, double? elevation = 4, Color? shadowColor, Color? splashColor})
const
FuButton.outlined({required VoidCallback onPressed, required Widget child, MaterialStateProperty<EdgeInsetsGeometry>? msPadding, EdgeInsetsGeometry? padding = const EdgeInsets.fromLTRB(24, 16, 24, 16), MaterialStateProperty<EdgeInsetsGeometry>? msShape, bool soft = false, OutlinedBorder? shape, BorderRadiusGeometry? borderRadius, double? borderRadiusAll = 0, MaterialStateProperty<Color>? msBackgroundColor, Color? backgroundColor = Colors.blue, FuButtonType? buttonType = FuButtonType.outlined, ButtonStyle? style, MaterialStateProperty<BorderSide>? msSide, bool? block = false, BorderSide? side, bool? disabled = false, Color borderColor = Colors.transparent, MaterialStateProperty<Color>? msShadowColor, MaterialStateProperty<double>? msElevation, double? elevation = 4, Color? shadowColor, Color? splashColor})
const
FuButton.rounded({required VoidCallback onPressed, required Widget child, MaterialStateProperty<EdgeInsetsGeometry>? msPadding, EdgeInsetsGeometry? padding, MaterialStateProperty<EdgeInsetsGeometry>? msShape, OutlinedBorder? shape, BorderRadiusGeometry? borderRadius, double? borderRadiusAll = 4, MaterialStateProperty<Color>? msBackgroundColor, Color? backgroundColor = Colors.blue, FuButtonType? buttonType = FuButtonType.elevated, ButtonStyle? style, bool? block = false, MaterialStateProperty<BorderSide>? msSide, bool? disabled = false, BorderSide? side, bool soft = false, Color borderColor = Colors.transparent, MaterialStateProperty<Color>? msShadowColor, MaterialStateProperty<double>? msElevation, double? elevation = 4, Color? shadowColor, Color? splashColor})
const
FuButton.small({required VoidCallback onPressed, required Widget child, MaterialStateProperty<EdgeInsetsGeometry>? msPadding, EdgeInsetsGeometry? padding = const EdgeInsets.fromLTRB(8, 4, 8, 4), MaterialStateProperty<EdgeInsetsGeometry>? msShape, OutlinedBorder? shape, BorderRadiusGeometry? borderRadius, double? borderRadiusAll = 0, MaterialStateProperty<Color>? msBackgroundColor, Color? backgroundColor = Colors.blue, FuButtonType? buttonType = FuButtonType.elevated, ButtonStyle? style, bool? block = false, MaterialStateProperty<BorderSide>? msSide, bool soft = false, bool? disabled = false, BorderSide? side, Color borderColor = Colors.transparent, MaterialStateProperty<Color>? msShadowColor, MaterialStateProperty<double>? msElevation, double? elevation = 4, Color? shadowColor, Color? splashColor})
const
FuButton.text({required VoidCallback onPressed, required Widget child, MaterialStateProperty<EdgeInsetsGeometry>? msPadding, EdgeInsetsGeometry? padding = const EdgeInsets.fromLTRB(24, 16, 24, 16), MaterialStateProperty<EdgeInsetsGeometry>? msShape, bool? block = false, OutlinedBorder? shape, bool soft = false, BorderRadiusGeometry? borderRadius, double? borderRadiusAll = 0, MaterialStateProperty<Color>? msBackgroundColor, Color? backgroundColor = Colors.blue, FuButtonType? buttonType = FuButtonType.text, ButtonStyle? style, MaterialStateProperty<BorderSide>? msSide, bool? disabled = false, BorderSide? side, Color borderColor = Colors.transparent, MaterialStateProperty<Color>? msShadowColor, MaterialStateProperty<double>? msElevation, double? elevation = 4, Color? shadowColor, Color? splashColor})
const

Properties

backgroundColor Color?
final
block bool?
final
borderColor Color
final
borderRadius BorderRadiusGeometry?
final
borderRadiusAll double?
final
buttonType FuButtonType?
final
child Widget
final
disabled bool?
final
elevation double?
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
msBackgroundColor MaterialStateProperty<Color>?
final
msElevation MaterialStateProperty<double>?
final
msPadding MaterialStateProperty<EdgeInsetsGeometry>?
final
msShadowColor MaterialStateProperty<Color>?
final
msShape MaterialStateProperty<EdgeInsetsGeometry>?
final
msSide MaterialStateProperty<BorderSide>?
final
onPressed VoidCallback
final
padding EdgeInsetsGeometry?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shadowColor Color?
final
shape OutlinedBorder?
final
side BorderSide?
final
soft bool
final
splashColor Color?
final
style ButtonStyle?
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