AwesomeButtonTheme constructor

AwesomeButtonTheme({
  1. Color foregroundColor = Colors.white,
  2. Color backgroundColor = Colors.black12,
  3. double iconSize = baseIconSize,
  4. EdgeInsets padding = const EdgeInsets.all(12),
  5. ShapeBorder shape = const CircleBorder(),
  6. bool rotateWithCamera = true,
  7. ButtonBuilder? buttonBuilder,
})

Implementation

AwesomeButtonTheme({
  this.foregroundColor = Colors.white,
  this.backgroundColor = Colors.black12,
  this.iconSize = baseIconSize,
  this.padding = const EdgeInsets.all(12),
  this.shape = const CircleBorder(),
  this.rotateWithCamera = true,
  ButtonBuilder? buttonBuilder,
}) : buttonBuilder = buttonBuilder ??
          ((Widget child, VoidCallback onTap) =>
              AwesomeBouncingWidget(onTap: onTap, child: child));