HMIconButton constructor

HMIconButton({
  1. Key? key,
  2. required Function onPressed,
  3. required Icon icon,
  4. double? width,
  5. double? height,
  6. Color textColor = const Color.fromARGB(255, 10, 89, 247),
  7. double borderRadius = 15,
  8. bool center = false,
})

IconButton following HarmonyOS Design

Replace IconButton of Material Design. HMIconButton is usually used in actions on HMAbility

Implementation

HMIconButton({
  Key? key,
  required this.onPressed,
  required this.icon,
  this.width,
  this.height,
  this.textColor = const Color.fromARGB(255, 10, 89, 247),
  this.borderRadius = 15,
  this.center = false,
}) : super(key: key);