MyButton class
Constructors
-
MyButton({Key? key, 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, MyButtonType? buttonType = MyButtonType.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, MaterialTapTargetSize? tapTargetSize = MaterialTapTargetSize.padded, Color? splashColor})
-
const
-
MyButton.block({Key? key, 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, MaterialStateProperty<Color>? msBackgroundColor, Color? backgroundColor, MyButtonType? buttonType = MyButtonType.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, MaterialTapTargetSize? tapTargetSize = MaterialTapTargetSize.padded, Color? splashColor})
-
const
-
MyButton.large({Key? key, 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, MaterialStateProperty<Color>? msBackgroundColor, Color? backgroundColor, MyButtonType? buttonType = MyButtonType.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, MaterialTapTargetSize? tapTargetSize = MaterialTapTargetSize.padded, Color? splashColor})
-
const
-
MyButton.medium({Key? key, 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, MaterialStateProperty<Color>? msBackgroundColor, Color? backgroundColor, MyButtonType? buttonType = MyButtonType.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, MaterialTapTargetSize? tapTargetSize = MaterialTapTargetSize.padded, Color? splashColor})
-
const
-
MyButton.outlined({Key? key, 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, MaterialStateProperty<Color>? msBackgroundColor, Color? backgroundColor, MyButtonType? buttonType = MyButtonType.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, MaterialTapTargetSize? tapTargetSize = MaterialTapTargetSize.padded, Color? splashColor})
-
const
-
MyButton.rounded({Key? key, required VoidCallback? onPressed, required Widget child, MaterialStateProperty<EdgeInsetsGeometry>? msPadding, EdgeInsetsGeometry? padding, MaterialStateProperty<EdgeInsetsGeometry>? msShape, OutlinedBorder? shape, BorderRadiusGeometry? borderRadius, double? borderRadiusAll, MaterialStateProperty<Color>? msBackgroundColor, Color? backgroundColor, MyButtonType? buttonType = MyButtonType.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, MaterialTapTargetSize? tapTargetSize = MaterialTapTargetSize.padded, Color? splashColor})
-
const
-
MyButton.small({Key? key, 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, MaterialStateProperty<Color>? msBackgroundColor, Color? backgroundColor, MyButtonType? buttonType = MyButtonType.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, MaterialTapTargetSize? tapTargetSize = MaterialTapTargetSize.padded, Color? splashColor})
-
const
-
MyButton.text({Key? key, required VoidCallback? onPressed, required Widget child, MaterialStateProperty<EdgeInsetsGeometry>? msPadding, EdgeInsetsGeometry? padding = const EdgeInsets.all(0), MaterialStateProperty<EdgeInsetsGeometry>? msShape, bool? block = false, OutlinedBorder? shape, bool soft = false, BorderRadiusGeometry? borderRadius, double? borderRadiusAll, MaterialStateProperty<Color>? msBackgroundColor, Color? backgroundColor, MyButtonType? buttonType = MyButtonType.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, MaterialTapTargetSize? tapTargetSize = MaterialTapTargetSize.padded, Color? splashColor})
-
const