From a663540900dafed0a5d9aa1465785b94cad81d70 Mon Sep 17 00:00:00 2001 From: Luke Date: Tue, 21 May 2024 16:36:57 +0100 Subject: [PATCH] chore: add version to example app --- README.md | 2 +- example/lib/home.dart | 4 +++- example/lib/pages/utils/theme_color_switch.dart | 3 ++- example/lib/pages/utils/theme_constrast_switch.dart | 3 ++- example/lib/pages/utils/theme_mode_switch.dart | 3 ++- release-please-config.json | 3 ++- 6 files changed, 12 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 87afe66..47a1b67 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ Make sure your app meets the following requirements before using ZDS Flutter Add the following as a dependency in your pubspec.yaml file. - + ```yaml zds-flutter: ^1.2.4 diff --git a/example/lib/home.dart b/example/lib/home.dart index 8f8205e..29663ea 100644 --- a/example/lib/home.dart +++ b/example/lib/home.dart @@ -21,7 +21,9 @@ class _HomePageState extends State { appBar: AppBar( leadingWidth: 20, leading: SizedBox(width: 20), - title: const Text('ZDS Demo'), + // x-release-please-start-version + title: const Text('zds_flutter v1.2.4'), + // x-release-please-end centerTitle: false, actions: [ ZetaThemeModeSwitch(), diff --git a/example/lib/pages/utils/theme_color_switch.dart b/example/lib/pages/utils/theme_color_switch.dart index 2490ac3..5c24e7e 100644 --- a/example/lib/pages/utils/theme_color_switch.dart +++ b/example/lib/pages/utils/theme_color_switch.dart @@ -42,7 +42,8 @@ class ZetaThemeColorSwitch extends StatelessWidget { elevation: 0, isDense: true, alignment: Alignment.center, - icon: SizedBox(width: 8), + icon: SizedBox(width: 0), + padding: EdgeInsets.all(ZetaSpacing.xs), dropdownColor: zeta.colors.borderDisabled, items: _themes.entries.map((e) { var zetaColors = primary(_themes[e.key]!).apply(contrast: zeta.contrast); diff --git a/example/lib/pages/utils/theme_constrast_switch.dart b/example/lib/pages/utils/theme_constrast_switch.dart index 3078bb5..20d4218 100644 --- a/example/lib/pages/utils/theme_constrast_switch.dart +++ b/example/lib/pages/utils/theme_constrast_switch.dart @@ -27,7 +27,8 @@ class ZetaThemeContrastSwitch extends StatelessWidget { elevation: 0, isDense: true, alignment: Alignment.center, - icon: SizedBox(width: 8), + icon: SizedBox(width: 0), + padding: EdgeInsets.all(ZetaSpacing.xs), dropdownColor: zeta.colors.borderDisabled, items: _themes.map((e) { final colors = zetaColors(e); diff --git a/example/lib/pages/utils/theme_mode_switch.dart b/example/lib/pages/utils/theme_mode_switch.dart index 3531827..5e56743 100644 --- a/example/lib/pages/utils/theme_mode_switch.dart +++ b/example/lib/pages/utils/theme_mode_switch.dart @@ -29,8 +29,9 @@ class ZetaThemeModeSwitch extends StatelessWidget { elevation: 0, isDense: true, alignment: Alignment.center, - icon: SizedBox(width: 8), + icon: SizedBox(width: 0), dropdownColor: zeta.colors.borderDisabled, + padding: EdgeInsets.all(ZetaSpacing.xs), items: _themes.map((e) { final colors = zetaColors(e).apply(contrast: zeta.contrast); return DropdownMenuItem( diff --git a/release-please-config.json b/release-please-config.json index 6cedb8c..20c27f6 100644 --- a/release-please-config.json +++ b/release-please-config.json @@ -6,7 +6,8 @@ }, "include-component-in-tag": false, "extra-files": [ - "/README.md" + "/README.md", + "example/lib/home.dart" ], "changelog-sections": [ {