From a091a99a5cde2228aeb85ab5ef631232de0cb413 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Harrault?= <benoit@harrault.fr> Date: Thu, 26 Dec 2024 10:57:12 +0100 Subject: [PATCH] Improve topbar buttons --- CHANGELOG.md | 4 ++++ lib/nav/application_navigation_definition.dart | 4 ++-- pubspec.yaml | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3514093..df15e16 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 0.8.3 + +- Improve topbar buttons + ## 0.8.2 - Remove deprecations diff --git a/lib/nav/application_navigation_definition.dart b/lib/nav/application_navigation_definition.dart index 9f021ae..da67c82 100644 --- a/lib/nav/application_navigation_definition.dart +++ b/lib/nav/application_navigation_definition.dart @@ -77,10 +77,10 @@ class AppBarButton { }); Widget render(BuildContext context) { - return ElevatedButton( + return TextButton( onPressed: () => onPressed!(context), onLongPress: () => onLongPress!(context), - style: ElevatedButton.styleFrom( + style: TextButton.styleFrom( shape: const CircleBorder(), iconColor: Theme.of(context).colorScheme.onSurface, ), diff --git a/pubspec.yaml b/pubspec.yaml index e9f6af4..9c4e1c3 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -3,7 +3,7 @@ description: "Flutter custom toolbox for org.benoitharrault.* projects." publish_to: "none" -version: 0.8.2 +version: 0.8.3 homepage: https://git.harrault.fr/android/flutter-toolbox -- GitLab