|
@@ -13,18 +13,16 @@ class ImageButton extends StatelessWidget {
|
|
|
final VoidCallback? onTap;
|
|
final VoidCallback? onTap;
|
|
|
|
|
|
|
|
ImageButton({
|
|
ImageButton({
|
|
|
- required Size buttonSize,
|
|
|
|
|
|
|
+ required this.buttonSize,
|
|
|
required this.image,
|
|
required this.image,
|
|
|
Size? imageSize,
|
|
Size? imageSize,
|
|
|
- Color bgColor = Colors.white,
|
|
|
|
|
|
|
+ this.bgColor = Colors.white,
|
|
|
this.borderRadius = 5,
|
|
this.borderRadius = 5,
|
|
|
Color? borderColor,
|
|
Color? borderColor,
|
|
|
this.borderWidth = 1,
|
|
this.borderWidth = 1,
|
|
|
this.onTap,
|
|
this.onTap,
|
|
|
})
|
|
})
|
|
|
- : buttonSize = buttonSize,
|
|
|
|
|
- imageSize = imageSize ?? buttonSize,
|
|
|
|
|
- bgColor = bgColor,
|
|
|
|
|
|
|
+ : imageSize = imageSize ?? buttonSize,
|
|
|
borderColor = borderColor ?? bgColor
|
|
borderColor = borderColor ?? bgColor
|
|
|
;
|
|
;
|
|
|
|
|
|
|
@@ -71,21 +69,19 @@ class ImageColumnTextButton extends StatelessWidget {
|
|
|
final VoidCallback? onTap;
|
|
final VoidCallback? onTap;
|
|
|
|
|
|
|
|
ImageColumnTextButton({
|
|
ImageColumnTextButton({
|
|
|
- required Size buttonSize,
|
|
|
|
|
|
|
+ required this.buttonSize,
|
|
|
required this.image,
|
|
required this.image,
|
|
|
Size? imageSize,
|
|
Size? imageSize,
|
|
|
required this.text,
|
|
required this.text,
|
|
|
this.textStyle,
|
|
this.textStyle,
|
|
|
this.space = 4,
|
|
this.space = 4,
|
|
|
- Color bgColor = Colors.white,
|
|
|
|
|
|
|
+ this.bgColor = Colors.white,
|
|
|
this.borderRadius = 5,
|
|
this.borderRadius = 5,
|
|
|
Color? borderColor,
|
|
Color? borderColor,
|
|
|
this.borderWidth = 1,
|
|
this.borderWidth = 1,
|
|
|
this.onTap,
|
|
this.onTap,
|
|
|
})
|
|
})
|
|
|
- : buttonSize = buttonSize,
|
|
|
|
|
- imageSize = imageSize ?? buttonSize,
|
|
|
|
|
- bgColor = bgColor,
|
|
|
|
|
|
|
+ : imageSize = imageSize ?? buttonSize,
|
|
|
borderColor = borderColor ?? bgColor
|
|
borderColor = borderColor ?? bgColor
|
|
|
;
|
|
;
|
|
|
|
|
|
|
@@ -144,21 +140,19 @@ class ImageRowTextButton extends StatelessWidget {
|
|
|
final VoidCallback? onTap;
|
|
final VoidCallback? onTap;
|
|
|
|
|
|
|
|
ImageRowTextButton({
|
|
ImageRowTextButton({
|
|
|
- required Size buttonSize,
|
|
|
|
|
|
|
+ required this.buttonSize,
|
|
|
required this.image,
|
|
required this.image,
|
|
|
Size? imageSize,
|
|
Size? imageSize,
|
|
|
required this.text,
|
|
required this.text,
|
|
|
this.textStyle,
|
|
this.textStyle,
|
|
|
this.space = 2,
|
|
this.space = 2,
|
|
|
- Color bgColor = Colors.white,
|
|
|
|
|
|
|
+ this.bgColor = Colors.white,
|
|
|
this.borderRadius = 5,
|
|
this.borderRadius = 5,
|
|
|
Color? borderColor,
|
|
Color? borderColor,
|
|
|
this.borderWidth = 1,
|
|
this.borderWidth = 1,
|
|
|
this.onTap,
|
|
this.onTap,
|
|
|
})
|
|
})
|
|
|
- : buttonSize = buttonSize,
|
|
|
|
|
- imageSize = imageSize ?? buttonSize,
|
|
|
|
|
- bgColor = bgColor,
|
|
|
|
|
|
|
+ : imageSize = imageSize ?? buttonSize,
|
|
|
borderColor = borderColor ?? bgColor
|
|
borderColor = borderColor ?? bgColor
|
|
|
;
|
|
;
|
|
|
|
|
|