FxButton class

Inheritance

Constructors

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

Properties

backgroundColor → Color?
final
block → bool?
final
borderColor → Color
final
borderRadius → BorderRadiusGeometry?
final
borderRadiusAll → double?
final
buttonType → FxButtonType?
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 → WidgetStateProperty<Color>?
final
msElevation → WidgetStateProperty<double>?
final
msPadding → WidgetStateProperty<EdgeInsetsGeometry>?
final
msShadowColor → WidgetStateProperty<Color>?
final
msShape → WidgetStateProperty<EdgeInsetsGeometry>?
final
msSide → WidgetStateProperty<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
tapTargetSize → MaterialTapTargetSize?
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, int wrapWidth = 65}) → 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