HMTextButton constructor
HMTextButton({})
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);