HMButton constructor

HMButton({
  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 = false,
  9. bool isDanger = false,
})

Normal button following HarmonyOS Design Language

Usually used in Dialogs(showHMDialog), and HMAbility

Implementation

HMButton({
  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 = false,
  this.isDanger = false,
}) : super(key: key);