From 5c3ff61f8b53619299777f051fae6e7b8977f5b7 Mon Sep 17 00:00:00 2001 From: Harry Sild <46851868+Kypsis@users.noreply.github.com> Date: Tue, 3 Oct 2023 20:05:41 +0300 Subject: [PATCH 1/2] fix: [MDS-728] Bump minimum Flutter version to 3.13.5 (#260) --- .github/workflows/analyze_and_test.yml | 2 +- .github/workflows/s3_deploy.yml | 2 +- .vscode/settings.json | 11 +++++++++++ example/lib/src/storybook/stories/accordion.dart | 2 +- example/lib/src/storybook/stories/bottom_sheet.dart | 2 +- example/lib/src/storybook/stories/button.dart | 4 ++-- example/lib/src/storybook/stories/carousel.dart | 2 +- example/lib/src/storybook/stories/icons.dart | 5 ++--- example/lib/src/storybook/stories/text_area.dart | 2 +- example/lib/src/storybook/stories/text_input.dart | 4 ++-- .../lib/src/storybook/stories/text_input_group.dart | 2 +- example/pubspec.yaml | 3 +-- lib/src/widgets/avatar/avatar.dart | 2 +- lib/src/widgets/switch/switch.dart | 4 ++-- lib/src/widgets/tab_bar/tab_bar.dart | 2 +- pubspec.yaml | 2 +- 16 files changed, 30 insertions(+), 21 deletions(-) create mode 100644 .vscode/settings.json diff --git a/.github/workflows/analyze_and_test.yml b/.github/workflows/analyze_and_test.yml index 6924a032..63088b35 100644 --- a/.github/workflows/analyze_and_test.yml +++ b/.github/workflows/analyze_and_test.yml @@ -12,7 +12,7 @@ jobs: - uses: subosito/flutter-action@v2 with: - flutter-version: '3.10.6' + flutter-version: '3.13.5' channel: stable - name: Install Dependencies diff --git a/.github/workflows/s3_deploy.yml b/.github/workflows/s3_deploy.yml index 262b94c8..ac886cea 100644 --- a/.github/workflows/s3_deploy.yml +++ b/.github/workflows/s3_deploy.yml @@ -19,7 +19,7 @@ jobs: - uses: subosito/flutter-action@v2 with: - flutter-version: '3.10.6' + flutter-version: '3.13.5' channel: stable - name: Install Dependencies diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 00000000..89183ccc --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,11 @@ +{ + "dart.flutterSdkPath": ".fvm/flutter_sdk", + // Remove .fvm files from search + "search.exclude": { + "**/.fvm": true + }, + // Remove from file watching + "files.watcherExclude": { + "**/.fvm": true + } +} \ No newline at end of file diff --git a/example/lib/src/storybook/stories/accordion.dart b/example/lib/src/storybook/stories/accordion.dart index 82d84327..bc4ed719 100644 --- a/example/lib/src/storybook/stories/accordion.dart +++ b/example/lib/src/storybook/stories/accordion.dart @@ -22,7 +22,7 @@ class AccordionStory extends Story { Option(label: "sm", value: MoonAccordionSize.sm), Option(label: "md", value: MoonAccordionSize.md), Option(label: "lg", value: MoonAccordionSize.lg), - Option(label: "xl", value: MoonAccordionSize.xl) + Option(label: "xl", value: MoonAccordionSize.xl), ], ); diff --git a/example/lib/src/storybook/stories/bottom_sheet.dart b/example/lib/src/storybook/stories/bottom_sheet.dart index abb11d5e..ab351fc3 100644 --- a/example/lib/src/storybook/stories/bottom_sheet.dart +++ b/example/lib/src/storybook/stories/bottom_sheet.dart @@ -99,7 +99,7 @@ class BottomSheetStory extends Story { onTap: () => Navigator.of(context).pop(), ), ), - ) + ), ], ), Divider( diff --git a/example/lib/src/storybook/stories/button.dart b/example/lib/src/storybook/stories/button.dart index 8ae2e2ed..f9b2f303 100644 --- a/example/lib/src/storybook/stories/button.dart +++ b/example/lib/src/storybook/stories/button.dart @@ -24,7 +24,7 @@ class ButtonStory extends Story { Option(label: "sm", value: MoonButtonSize.sm), Option(label: "md", value: MoonButtonSize.md), Option(label: "lg", value: MoonButtonSize.lg), - Option(label: "xl", value: MoonButtonSize.xl) + Option(label: "xl", value: MoonButtonSize.xl), ], ); @@ -241,7 +241,7 @@ class ButtonStory extends Story { BoxShadow( blurRadius: 3, offset: Offset(0, 2), - ) + ), ], gradient: LinearGradient( begin: Alignment.topLeft, diff --git a/example/lib/src/storybook/stories/carousel.dart b/example/lib/src/storybook/stories/carousel.dart index 5427d858..4910c567 100644 --- a/example/lib/src/storybook/stories/carousel.dart +++ b/example/lib/src/storybook/stories/carousel.dart @@ -183,7 +183,7 @@ class CarouselStory extends Story { MoonDotIndicator( selectedDot: selectedDot, dotCount: 5, - ) + ), ], ); }, diff --git a/example/lib/src/storybook/stories/icons.dart b/example/lib/src/storybook/stories/icons.dart index 49af4719..1145be91 100644 --- a/example/lib/src/storybook/stories/icons.dart +++ b/example/lib/src/storybook/stories/icons.dart @@ -2,7 +2,6 @@ import 'package:example/src/storybook/common/icons/icons_list.dart'; import 'package:example/src/storybook/common/widgets/text_divider.dart'; import 'package:flutter/material.dart'; import 'package:moon_design/moon_design.dart'; -import 'package:sliver_tools/sliver_tools.dart'; import 'package:storybook_flutter/storybook_flutter.dart'; class IconsStory extends Story { @@ -39,8 +38,8 @@ class _IconsGridWithTitle extends StatelessWidget { @override Widget build(BuildContext context) { - return MultiSliver( - children: [ + return SliverMainAxisGroup( + slivers: [ SliverToBoxAdapter( child: TextDivider( text: title, diff --git a/example/lib/src/storybook/stories/text_area.dart b/example/lib/src/storybook/stories/text_area.dart index 6d6e182d..c40a2cd5 100644 --- a/example/lib/src/storybook/stories/text_area.dart +++ b/example/lib/src/storybook/stories/text_area.dart @@ -128,7 +128,7 @@ class TextAreaStory extends Story { MoonFilledButton( label: const Text("Submit"), onTap: () => Form.of(context).validate(), - ) + ), ], ); }, diff --git a/example/lib/src/storybook/stories/text_input.dart b/example/lib/src/storybook/stories/text_input.dart index b151bf5c..68b33462 100644 --- a/example/lib/src/storybook/stories/text_input.dart +++ b/example/lib/src/storybook/stories/text_input.dart @@ -23,7 +23,7 @@ class TextInputStory extends Story { Option(label: "sm", value: MoonTextInputSize.sm), Option(label: "md", value: MoonTextInputSize.md), Option(label: "lg", value: MoonTextInputSize.lg), - Option(label: "xl", value: MoonTextInputSize.xl) + Option(label: "xl", value: MoonTextInputSize.xl), ], ); @@ -288,7 +288,7 @@ class TextInputStory extends Story { MoonFilledButton( label: const Text("Submit"), onTap: () => Form.of(context).validate(), - ) + ), ], ); }, diff --git a/example/lib/src/storybook/stories/text_input_group.dart b/example/lib/src/storybook/stories/text_input_group.dart index ade8c0d1..6477e132 100644 --- a/example/lib/src/storybook/stories/text_input_group.dart +++ b/example/lib/src/storybook/stories/text_input_group.dart @@ -219,7 +219,7 @@ class TextInputGroupStory extends Story { MoonFilledButton( label: const Text("Submit"), onTap: () => Form.of(context).validate(), - ) + ), ], ); }, diff --git a/example/pubspec.yaml b/example/pubspec.yaml index 6ec051c1..14fdc867 100644 --- a/example/pubspec.yaml +++ b/example/pubspec.yaml @@ -3,7 +3,7 @@ description: Showcase Moon Design. publish_to: none version: 0.30.1 environment: - sdk: '>=3.0.5 <4.0.0' + sdk: '>=3.1.2 <4.0.0' dependencies: cupertino_icons: ^1.0.2 flutter: @@ -12,7 +12,6 @@ dependencies: moon_design: path: ../ package_info_plus: ^3.0.2 - sliver_tools: ^0.2.9 dev_dependencies: flutter_lints: ^2.0.0 flutter_test: diff --git a/lib/src/widgets/avatar/avatar.dart b/lib/src/widgets/avatar/avatar.dart index df4a42b8..42be2ab2 100644 --- a/lib/src/widgets/avatar/avatar.dart +++ b/lib/src/widgets/avatar/avatar.dart @@ -224,7 +224,7 @@ class MoonAvatar extends StatelessWidget { borderRadius: BorderRadius.circular(effectiveBadgeSize / 2), ), ), - ) + ), ], ), ), diff --git a/lib/src/widgets/switch/switch.dart b/lib/src/widgets/switch/switch.dart index 0f92d938..9e670615 100644 --- a/lib/src/widgets/switch/switch.dart +++ b/lib/src/widgets/switch/switch.dart @@ -114,7 +114,7 @@ class MoonSwitch extends StatefulWidget { class _MoonSwitchState extends State with SingleTickerProviderStateMixin { late final Map> _actions = { - ActivateIntent: CallbackAction(onInvoke: (_) => _handleTap()) + ActivateIntent: CallbackAction(onInvoke: (_) => _handleTap()), }; late Animation? _alignmentAnimation; @@ -469,7 +469,7 @@ class _MoonSwitchState extends State with SingleTickerProviderStateM ), ), ), - ) + ), ], ), Align( diff --git a/lib/src/widgets/tab_bar/tab_bar.dart b/lib/src/widgets/tab_bar/tab_bar.dart index 1a1d701c..59f242dd 100644 --- a/lib/src/widgets/tab_bar/tab_bar.dart +++ b/lib/src/widgets/tab_bar/tab_bar.dart @@ -473,7 +473,7 @@ class _IndicatorTabBuilderState extends State<_IndicatorTabBuilder> with SingleT ); }, ), - ) + ), ], ), ); diff --git a/pubspec.yaml b/pubspec.yaml index f89e35cc..244c192f 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -5,7 +5,7 @@ homepage: https://flutter.moon.io/ repository: https://github.com/coingaming/moon_flutter environment: - sdk: '>=3.0.5 <4.0.0' + sdk: '>=3.1.2 <4.0.0' flutter: ">=1.17.0" dependencies: From a44e90ef6860e42806a95889c46e268fe82645b5 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 3 Oct 2023 20:14:31 +0300 Subject: [PATCH 2/2] chore(main): release 0.30.2 (#261) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- .release-please-manifest.json | 2 +- CHANGELOG.md | 7 +++++++ example/pubspec.yaml | 2 +- pubspec.yaml | 2 +- 4 files changed, 10 insertions(+), 3 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 20e1f11f..e9634451 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.30.1" + ".": "0.30.2" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index e68c02ff..fc9d767d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [0.30.2](https://github.com/coingaming/moon_flutter/compare/v0.30.1...v0.30.2) (2023-10-03) + + +### Bug Fixes + +* [MDS-728] Bump minimum Flutter version to 3.13.5 ([#260](https://github.com/coingaming/moon_flutter/issues/260)) ([5c3ff61](https://github.com/coingaming/moon_flutter/commit/5c3ff61f8b53619299777f051fae6e7b8977f5b7)) + ## [0.30.1](https://github.com/coingaming/moon_flutter/compare/v0.30.0...v0.30.1) (2023-09-25) diff --git a/example/pubspec.yaml b/example/pubspec.yaml index 14fdc867..5eb24c68 100644 --- a/example/pubspec.yaml +++ b/example/pubspec.yaml @@ -1,7 +1,7 @@ name: example description: Showcase Moon Design. publish_to: none -version: 0.30.1 +version: 0.30.2 environment: sdk: '>=3.1.2 <4.0.0' dependencies: diff --git a/pubspec.yaml b/pubspec.yaml index 244c192f..041d9bba 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: moon_design description: Moon Design System for Flutter. A set of coherent, themable, and extensible widgets following the Moon Design System. -version: 0.30.1 +version: 0.30.2 homepage: https://flutter.moon.io/ repository: https://github.com/coingaming/moon_flutter