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

Merge branch '14-fix-top-bar-buttons-color' into 'master'

Resolve "Fix top bar buttons color"

Closes #14

See merge request !11
parents dfe0f6b7 652bc4f1
No related branches found
No related tags found
1 merge request!11Resolve "Fix top bar buttons color"
Pipeline #7342 passed
## 0.6.1
- Fix top bar buttons color
## 0.6.0
- Add application navigation widgets
......
......@@ -75,6 +75,18 @@ class AppBarButton {
this.onPressed,
this.onLongPress,
});
Widget render(BuildContext context) {
return ElevatedButton(
onPressed: () => onPressed!(context),
onLongPress: () => onLongPress!(context),
style: ElevatedButton.styleFrom(
shape: const CircleBorder(),
iconColor: Theme.of(context).colorScheme.onSurface,
),
child: icon,
);
}
}
/// Navigation configuration for application
......
......@@ -71,12 +71,7 @@ class GlobalAppBar extends StatelessWidget implements PreferredSizeWidget {
// add buttons
final List<AppBarButton> buttons = builder(context);
for (AppBarButton button in buttons) {
menuActions.add(ElevatedButton(
onPressed: () => button.onPressed!(context),
onLongPress: () => button.onLongPress!(context),
style: ElevatedButton.styleFrom(shape: const CircleBorder()),
child: button.icon,
));
menuActions.add(button.render(context));
}
// standard right pushed "quit activity" button
......
......@@ -3,7 +3,7 @@ description: "Flutter custom toolbox for org.benoitharrault.* projects."
publish_to: "none"
version: 0.6.0
version: 0.6.1
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