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

Merge branch '15-allow-override-game-buttons-color' into 'master'

Resolve "Allow override game buttons color"

Closes #15

See merge request !12
parents 3f15b40c 2fa08965
No related branches found
No related tags found
1 merge request!12Resolve "Allow override game buttons color"
Pipeline #7345 passed
## 0.7.0
- Allow override activity buttons color
## 0.6.1
- Fix top bar buttons color
......
......@@ -7,15 +7,17 @@ class ActivityButtonDeleteSaved extends StatelessWidget {
super.key,
required this.onPressed,
this.onLongPress,
this.color = Colors.grey,
});
final VoidCallback? onPressed;
final VoidCallback? onLongPress;
final Color color;
@override
Widget build(BuildContext context) {
return StyledButton.icon(
color: Colors.grey,
color: color,
onPressed: onPressed,
onLongPress: onLongPress,
icon: const Icon(UniconsLine.trash_alt),
......
......@@ -7,15 +7,17 @@ class ActivityButtonQuit extends StatelessWidget {
super.key,
required this.onPressed,
this.onLongPress,
this.color = Colors.red,
});
final VoidCallback? onPressed;
final VoidCallback? onLongPress;
final Color color;
@override
Widget build(BuildContext context) {
return StyledButton.icon(
color: Colors.red,
color: color,
onPressed: onPressed,
onLongPress: onLongPress,
icon: const Icon(UniconsLine.play),
......
......@@ -7,15 +7,17 @@ class ActivityButtonResumeSaved extends StatelessWidget {
super.key,
required this.onPressed,
this.onLongPress,
this.color = Colors.blue,
});
final VoidCallback? onPressed;
final VoidCallback? onLongPress;
final Color color;
@override
Widget build(BuildContext context) {
return StyledButton.icon(
color: Colors.blue,
color: color,
onPressed: onPressed,
onLongPress: onLongPress,
icon: const Icon(UniconsLine.skip_forward_alt),
......
......@@ -7,15 +7,17 @@ class ActivityButtonStartNew extends StatelessWidget {
super.key,
required this.onPressed,
this.onLongPress,
this.color = Colors.blue,
});
final VoidCallback? onPressed;
final VoidCallback? onLongPress;
final Color color;
@override
Widget build(BuildContext context) {
return StyledButton.icon(
color: Colors.blue,
color: color,
onPressed: onPressed,
onLongPress: onLongPress,
icon: const Icon(UniconsLine.play),
......
......@@ -3,7 +3,7 @@ description: "Flutter custom toolbox for org.benoitharrault.* projects."
publish_to: "none"
version: 0.6.1
version: 0.7.0
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