Skip to content
Snippets Groups Projects
Commit 2fa08965 authored by Benoît Harrault's avatar Benoît Harrault
Browse files

Allow override activity buttons color

parent 3f15b40c
No related branches found
No related tags found
1 merge request!12Resolve "Allow override game buttons color"
Pipeline #7343 passed
## 0.7.0
- Allow override activity buttons color
## 0.6.1 ## 0.6.1
- Fix top bar buttons color - Fix top bar buttons color
......
...@@ -7,15 +7,17 @@ class ActivityButtonDeleteSaved extends StatelessWidget { ...@@ -7,15 +7,17 @@ class ActivityButtonDeleteSaved extends StatelessWidget {
super.key, super.key,
required this.onPressed, required this.onPressed,
this.onLongPress, this.onLongPress,
this.color = Colors.grey,
}); });
final VoidCallback? onPressed; final VoidCallback? onPressed;
final VoidCallback? onLongPress; final VoidCallback? onLongPress;
final Color color;
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return StyledButton.icon( return StyledButton.icon(
color: Colors.grey, color: color,
onPressed: onPressed, onPressed: onPressed,
onLongPress: onLongPress, onLongPress: onLongPress,
icon: const Icon(UniconsLine.trash_alt), icon: const Icon(UniconsLine.trash_alt),
......
...@@ -7,15 +7,17 @@ class ActivityButtonQuit extends StatelessWidget { ...@@ -7,15 +7,17 @@ class ActivityButtonQuit extends StatelessWidget {
super.key, super.key,
required this.onPressed, required this.onPressed,
this.onLongPress, this.onLongPress,
this.color = Colors.red,
}); });
final VoidCallback? onPressed; final VoidCallback? onPressed;
final VoidCallback? onLongPress; final VoidCallback? onLongPress;
final Color color;
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return StyledButton.icon( return StyledButton.icon(
color: Colors.red, color: color,
onPressed: onPressed, onPressed: onPressed,
onLongPress: onLongPress, onLongPress: onLongPress,
icon: const Icon(UniconsLine.play), icon: const Icon(UniconsLine.play),
......
...@@ -7,15 +7,17 @@ class ActivityButtonResumeSaved extends StatelessWidget { ...@@ -7,15 +7,17 @@ class ActivityButtonResumeSaved extends StatelessWidget {
super.key, super.key,
required this.onPressed, required this.onPressed,
this.onLongPress, this.onLongPress,
this.color = Colors.blue,
}); });
final VoidCallback? onPressed; final VoidCallback? onPressed;
final VoidCallback? onLongPress; final VoidCallback? onLongPress;
final Color color;
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return StyledButton.icon( return StyledButton.icon(
color: Colors.blue, color: color,
onPressed: onPressed, onPressed: onPressed,
onLongPress: onLongPress, onLongPress: onLongPress,
icon: const Icon(UniconsLine.skip_forward_alt), icon: const Icon(UniconsLine.skip_forward_alt),
......
...@@ -7,15 +7,17 @@ class ActivityButtonStartNew extends StatelessWidget { ...@@ -7,15 +7,17 @@ class ActivityButtonStartNew extends StatelessWidget {
super.key, super.key,
required this.onPressed, required this.onPressed,
this.onLongPress, this.onLongPress,
this.color = Colors.blue,
}); });
final VoidCallback? onPressed; final VoidCallback? onPressed;
final VoidCallback? onLongPress; final VoidCallback? onLongPress;
final Color color;
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return StyledButton.icon( return StyledButton.icon(
color: Colors.blue, color: color,
onPressed: onPressed, onPressed: onPressed,
onLongPress: onLongPress, onLongPress: onLongPress,
icon: const Icon(UniconsLine.play), icon: const Icon(UniconsLine.play),
......
...@@ -3,7 +3,7 @@ description: "Flutter custom toolbox for org.benoitharrault.* projects." ...@@ -3,7 +3,7 @@ description: "Flutter custom toolbox for org.benoitharrault.* projects."
publish_to: "none" publish_to: "none"
version: 0.6.1 version: 0.7.0
homepage: https://git.harrault.fr/android/flutter-toolbox homepage: https://git.harrault.fr/android/flutter-toolbox
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment