HMTextButton constructor

HMTextButton({
  1. Key? key,
  2. required Function onPressed,
  3. required Widget child,
  4. double? width,
  5. double? height,
  6. Color textColor = const Color.fromARGB(255, 10, 89, 247),
  7. double borderRadius = 25,
  8. bool center = true,
})

Textbutton following HarmonyOS Design language

Replaces FlatButton and TextButton in Material Desingn. HMTextButton is commonly used in Dialogs if you follow the HarmonyOS Design.

Implementation

// ignore: deprecated_member_use
/// Replaces [FlatButton] and [TextButton] in Material Desingn.
/// [HMTextButton] is commonly used in [Dialogs]([showHMDialog]) if you follow the HarmonyOS Design.
HMTextButton({
  Key? key,
  required this.onPressed,
  required this.child,
  this.width,
  this.height,
  this.textColor = const Color.fromARGB(255, 10, 89, 247),
  this.borderRadius = 25,
  this.center = true,
}) : super(key: key);