AwesomeButtonTheme constructor
AwesomeButtonTheme({
- Color foregroundColor = Colors.white,
- Color backgroundColor = Colors.black12,
- double iconSize = baseIconSize,
- EdgeInsets padding = const EdgeInsets.all(12),
- ShapeBorder shape = const CircleBorder(),
- bool rotateWithCamera = true,
- 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));