From c8d2912dff340edf8f0c9ce6530efa61f633dc22 Mon Sep 17 00:00:00 2001 From: Herwig Birke Date: Mon, 17 Nov 2025 13:43:34 +0100 Subject: [PATCH] build number --- .../igel/presentation/igel_list_screen.dart | 13 ++++++++++++- lib/main.dart | 8 +++++++- pubspec.lock | 8 ++++++++ pubspec.yaml | 1 + 4 files changed, 28 insertions(+), 2 deletions(-) diff --git a/lib/features/igel/presentation/igel_list_screen.dart b/lib/features/igel/presentation/igel_list_screen.dart index d0e29ce..3b80c92 100644 --- a/lib/features/igel/presentation/igel_list_screen.dart +++ b/lib/features/igel/presentation/igel_list_screen.dart @@ -276,7 +276,18 @@ class _IgelListState extends ConsumerState { final df = DateFormat('dd.MM.yyyy'); return Scaffold( appBar: AppBar( - title: const Text('Meine Igel'), + title: const Column( + crossAxisAlignment: CrossAxisAlignment.start, + mainAxisSize: MainAxisSize.min, + children: [ + Text('Meine Igel'), + SizedBox(height: 2), + Text( + 'Build $kBuildNumber', + style: TextStyle(fontSize: 12, color: Colors.black54), + ), + ], + ), actions: [ IconButton( tooltip: 'CSV importieren…', diff --git a/lib/main.dart b/lib/main.dart index 12f27c2..d0ceac2 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -12,6 +12,11 @@ const kApiBase = String.fromEnvironment( defaultValue: 'https://api.windesign.at/hedgehogs.php?r=', ); +const kBuildNumber = String.fromEnvironment( + 'BUILD_NUMBER', + defaultValue: '2025.01.07.1', +); + final tokenStorageProvider = Provider((ref) => TokenStorage(kApiBase)); final apiClientProvider = Provider((ref) => ApiClient( @@ -41,7 +46,8 @@ class AppScrollBehavior extends MaterialScrollBehavior { // Disable automatic Scrollbar wrapping; use explicit Scrollbars where needed. @override - Widget buildScrollbar(BuildContext context, Widget child, ScrollableDetails details) { + Widget buildScrollbar( + BuildContext context, Widget child, ScrollableDetails details) { return child; } } diff --git a/pubspec.lock b/pubspec.lock index 5122ced..16b6571 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -214,6 +214,14 @@ packages: url: "https://pub.dev" source: hosted version: "5.1.1" + cupertino_icons: + dependency: "direct main" + description: + name: cupertino_icons + sha256: ba631d1c7f7bef6b729a622b7b752645a2d076dba9976925b8f25725a30e1ee6 + url: "https://pub.dev" + source: hosted + version: "1.0.8" dart_style: dependency: transitive description: diff --git a/pubspec.yaml b/pubspec.yaml index 82191d6..0a5cf02 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -22,6 +22,7 @@ dependencies: csv: ^5.0.2 file_picker: ^8.0.0 video_player: ^2.9.1 + cupertino_icons: ^1.0.2 dev_dependencies: build_runner: ^2.4.11