Skip to content

Commit

Permalink
chore: add version to example app
Browse files Browse the repository at this point in the history
  • Loading branch information
thelukewalton committed May 21, 2024
1 parent 6705990 commit a663540
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

<!--x-release-please-start-version-->
<!-- x-release-please-start-version -->

```yaml
zds-flutter: ^1.2.4
Expand Down
4 changes: 3 additions & 1 deletion example/lib/home.dart
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ class _HomePageState extends State<HomePage> {
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(),
Expand Down
3 changes: 2 additions & 1 deletion example/lib/pages/utils/theme_color_switch.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
3 changes: 2 additions & 1 deletion example/lib/pages/utils/theme_constrast_switch.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
3 changes: 2 additions & 1 deletion example/lib/pages/utils/theme_mode_switch.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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<ThemeMode>(
Expand Down
3 changes: 2 additions & 1 deletion release-please-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
},
"include-component-in-tag": false,
"extra-files": [
"/README.md"
"/README.md",
"example/lib/home.dart"
],
"changelog-sections": [
{
Expand Down

0 comments on commit a663540

Please sign in to comment.