Skip to content

Commit

Permalink
feat: bump Flutter sdk to v3.22.0 (#116)
Browse files Browse the repository at this point in the history
* chore: update meta constraint to `>=1.10.0 <=1.12.0`

From `>=1.10.0 <1.12.0`

* chore: update intl constraint to `>=0.18.0 <=0.19.0`

From `>=0.18.0 <0.19.0`

* chore: update jiffy constraint to `>=6.2.1 <=6.2.2`

From `>=6.2.1 <6.2.2`

* chore: replace deprecated `MaterilStatePropertyAll`

`MaterialStatePropertyAll` is deprecated and shouldn't be used. Use WidgetStatePropertyAll instead. Moved to the Widgets layer to make code available outside of Material. This feature was deprecated after v3.19.0-0.3.pre.

* chore: replace deprecated color scheme `background`

`background` is deprecated and shouldn't be used. Use surface instead. This feature was deprecated after v3.18.0-0.1.pre.

* fix: formatting issue

* chore: bump github workflows `flutter_version` to v3.22.0

* fix: correct the name of the code owner

* fix: shared analyzer github worfklow

* chore: bump `flutter` version to `v3.22.0`

* fix: shared analyzer ignore

* chore: bump github workflows `dart_sdk` to `v3.4.0`

* chore: downgrade github workflows `dart_sdk` to `v3.3.4`

* chore: convert `chats_repository` to flutter package

* chore: conver `search_repository` to flutter package

* chore: convert `stories_repository` to flutter package

* chore: use flutter github worfklow job for `stories_repository`
  • Loading branch information
itsezlife authored May 21, 2024
1 parent 641631d commit 7224944
Show file tree
Hide file tree
Showing 52 changed files with 94 additions and 80 deletions.
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Every request must be reviewed and accepted by:

- @gambley1
* @Gambley1
2 changes: 1 addition & 1 deletion .github/workflows/app_ui.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ jobs:
build:
uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/flutter_package.yml@v1
with:
flutter_version: 3.19.3
flutter_version: 3.22.0
working_directory: packages/app_ui
coverage_excludes: "lib/src/generated/*.dart"
2 changes: 1 addition & 1 deletion .github/workflows/authentication_client.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ jobs:
build:
uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/flutter_package.yml@v1
with:
flutter_version: 3.19.3
flutter_version: 3.22.0
working_directory: packages/authentication_client/authentication_client
4 changes: 2 additions & 2 deletions .github/workflows/chats_repository.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ on:

jobs:
build:
uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/dart_package.yml@v1
uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/flutter_package.yml@v1
with:
dart_sdk: 3.3.1
flutter_version: 3.22.0
working_directory: packages/chats_repository
2 changes: 1 addition & 1 deletion .github/workflows/database_client.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ jobs:
build:
uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/flutter_package.yml@v1
with:
flutter_version: 3.19.3
flutter_version: 3.22.0
working_directory: packages/database_client
2 changes: 1 addition & 1 deletion .github/workflows/firebase_notifications_client.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ jobs:
build:
uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/flutter_package.yml@v1
with:
flutter_version: 3.19.3
flutter_version: 3.22.0
working_directory: packages/notifications_client/firebase_notifications_client
2 changes: 1 addition & 1 deletion .github/workflows/firebase_remote_config_repository.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ jobs:
build:
uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/flutter_package.yml@v1
with:
flutter_version: 3.19.3
flutter_version: 3.22.0
working_directory: packages/firebase_remote_config_repository
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
- uses: subosito/[email protected]
with:
channel: ${{matrix.channel}}
flutter-version: 3.19.3
flutter-version: 3.22.0
cache: false

- name: Install Dependencies
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/insta_blocks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ jobs:
build:
uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/flutter_package.yml@v1
with:
flutter_version: 3.19.3
flutter_version: 3.22.0
coverage_excludes: "**/*.g.dart"
working_directory: packages/insta_blocks
2 changes: 1 addition & 1 deletion .github/workflows/instagram_blocks_ui.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ jobs:
build:
uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/flutter_package.yml@v1
with:
flutter_version: 3.19.3
flutter_version: 3.22.0
working_directory: packages/instagram_blocks_ui
2 changes: 1 addition & 1 deletion .github/workflows/notifications_client.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ jobs:
build:
uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/dart_package.yml@v1
with:
dart_sdk: 3.3.1
dart_sdk: 3.3.4
working_directory: packages/notifications_client/notifications_client
2 changes: 1 addition & 1 deletion .github/workflows/notifications_repository.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ jobs:
build:
uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/dart_package.yml@v1
with:
dart_sdk: 3.3.1
dart_sdk: 3.3.4
working_directory: packages/notifications_repository
2 changes: 1 addition & 1 deletion .github/workflows/persistent_storage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ jobs:
build:
uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/flutter_package.yml@v1
with:
flutter_version: 3.19.3
flutter_version: 3.22.0
working_directory: packages/storage/persistent_storage
2 changes: 1 addition & 1 deletion .github/workflows/posts_repository.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ jobs:
build:
uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/flutter_package.yml@v1
with:
flutter_version: 3.19.3
flutter_version: 3.22.0
working_directory: packages/posts_repository
2 changes: 1 addition & 1 deletion .github/workflows/powersync_repository.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ jobs:
build:
uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/flutter_package.yml@v1
with:
flutter_version: 3.19.3
flutter_version: 3.22.0
working_directory: packages/powersync_repository
4 changes: 2 additions & 2 deletions .github/workflows/search_repository.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ on:

jobs:
build:
uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/dart_package.yml@v1
uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/flutter_package.yml@v1
with:
dart_sdk: 3.3.1
flutter_version: 3.22.0
working_directory: packages/search_repository
2 changes: 1 addition & 1 deletion .github/workflows/secure_storage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ jobs:
build:
uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/flutter_package.yml@v1
with:
flutter_version: 3.19.3
flutter_version: 3.22.0
working_directory: packages/storage/secure_storage
2 changes: 1 addition & 1 deletion .github/workflows/shared.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ jobs:
build:
uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/flutter_package.yml@v1
with:
flutter_version: 3.19.3
flutter_version: 3.22.0
coverage_excludes: "**/*.g.dart **/*.freezed.dart"
working_directory: packages/shared
2 changes: 1 addition & 1 deletion .github/workflows/storage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ jobs:
build:
uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/dart_package.yml@v1
with:
dart_sdk: 3.3.1
dart_sdk: 3.3.4
working_directory: packages/storage/storage
4 changes: 2 additions & 2 deletions .github/workflows/stories_repository.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ on:

jobs:
build:
uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/dart_package.yml@v1
uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/flutter_package.yml@v1
with:
dart_sdk: 3.3.1
flutter_version: 3.22.0
working_directory: packages/stories_repository
2 changes: 1 addition & 1 deletion .github/workflows/supabase_authentication_client.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ jobs:
build:
uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/flutter_package.yml@v1
with:
flutter_version: 3.19.3
flutter_version: 3.22.0
working_directory: packages/authentication_client/supabase_authentication_client
2 changes: 1 addition & 1 deletion .github/workflows/token_storage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ jobs:
build:
uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/dart_package.yml@v1
with:
dart_sdk: 3.3.1
dart_sdk: 3.3.4
working_directory: packages/authentication_client/token_storage
2 changes: 1 addition & 1 deletion .github/workflows/user_repository.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ jobs:
build:
uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/flutter_package.yml@v1
with:
flutter_version: 3.19.3
flutter_version: 3.22.0
working_directory: packages/user_repository
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ class ChangePasswordButton extends StatelessWidget {
@override
Widget build(BuildContext context) {
final style = ButtonStyle(
backgroundColor: const MaterialStatePropertyAll(AppColors.blue),
shape: MaterialStatePropertyAll(
backgroundColor: const WidgetStatePropertyAll(AppColors.blue),
shape: WidgetStatePropertyAll(
RoundedRectangleBorder(borderRadius: BorderRadius.circular(4)),
),
);
Expand Down
2 changes: 1 addition & 1 deletion lib/auth/login/widgets/sign_in_button.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class SignInButton extends StatelessWidget {
@override
Widget build(BuildContext context) {
final style = ButtonStyle(
shape: MaterialStatePropertyAll(
shape: WidgetStatePropertyAll(
RoundedRectangleBorder(borderRadius: BorderRadius.circular(4)),
),
);
Expand Down
2 changes: 1 addition & 1 deletion lib/auth/sign_up/widgets/sign_up_button.dart
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class SignUpButton extends StatelessWidget {
@override
Widget build(BuildContext context) {
final style = ButtonStyle(
shape: MaterialStatePropertyAll(
shape: WidgetStatePropertyAll(
RoundedRectangleBorder(borderRadius: BorderRadius.circular(4)),
),
);
Expand Down
2 changes: 1 addition & 1 deletion lib/chats/widgets/fun.dart
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class FunView extends StatelessWidget {
),
child: AppButton.outlined(
style: ButtonStyle(
shape: MaterialStatePropertyAll(
shape: WidgetStatePropertyAll(
RoundedRectangleBorder(
borderRadius: BorderRadius.circular(12),
),
Expand Down
4 changes: 2 additions & 2 deletions packages/app_ui/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ publish_to: none

environment:
sdk: ">=3.3.1 <4.0.0"
flutter: ^3.19.3
flutter: ^3.22.0

dependencies:
cached_network_image: ^3.3.1
Expand All @@ -15,7 +15,7 @@ dependencies:
flutter_cache_manager: ^3.3.1
flutter_svg: ^2.0.9
go_router: ^13.2.4
intl: ">=0.18.0 <0.19.0"
intl: ">=0.18.0 <=0.19.0"
pausable_timer: ^3.1.0+3
shared:
path: ../shared
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ publish_to: none

environment:
sdk: ">=3.3.1 <4.0.0"
flutter: ^3.19.3
flutter: ^3.22.0

dependencies:
equatable: ^2.0.5
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ publish_to: none

environment:
sdk: ">=3.3.1 <4.0.0"
flutter: ^3.19.3
flutter: ^3.22.0

dependencies:
authentication_client:
Expand Down
1 change: 1 addition & 0 deletions packages/chats_repository/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ publish_to: none

environment:
sdk: ">=3.3.1 <4.0.0"
flutter: ^3.22.0

dependencies:
database_client:
Expand Down
4 changes: 2 additions & 2 deletions packages/database_client/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ publish_to: none

environment:
sdk: ">=3.3.1 <4.0.0"
flutter: ^3.19.3
flutter: ^3.22.0

dependencies:
dio: ^5.4.0
env:
path: ../env
flutter:
sdk: flutter
jiffy: ">=6.2.1 <6.2.2"
jiffy: ">=6.2.1 <=6.2.2"
powersync_repository:
path: ../powersync_repository
shared:
Expand Down
2 changes: 1 addition & 1 deletion packages/env/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ publish_to: none

environment:
sdk: ">=3.3.1 <4.0.0"
flutter: ^3.19.3
flutter: ^3.22.0

dependencies:
envied: ^0.5.3
Expand Down
2 changes: 1 addition & 1 deletion packages/firebase_remote_config_repository/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ publish_to: none

environment:
sdk: ">=3.3.1 <4.0.0"
flutter: ^3.19.3
flutter: ^3.22.0

dependencies:
firebase_remote_config: ">=4.3.5 <=4.5.0"
Expand Down
2 changes: 1 addition & 1 deletion packages/form_fields/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ publish_to: none

environment:
sdk: ">=3.3.1 <4.0.0"
flutter: ^3.19.3
flutter: ^3.22.0

dependencies:
equatable: ^2.0.5
Expand Down
9 changes: 5 additions & 4 deletions packages/insta_blocks/lib/src/block_action.dart
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,11 @@ extension BlockActionX on BlockAction {
navigateToPostAuthor,
required BlockActionCallback<NavigateToSponsoredPostAuthorProfileAction>
navigateToSponsoredPostAuthor,
}) => maybeWhen(
navigateToPostAuthor: navigateToPostAuthor,
navigateToSponsoredPostAuthor: navigateToSponsoredPostAuthor,
);
}) =>
maybeWhen(
navigateToPostAuthor: navigateToPostAuthor,
navigateToSponsoredPostAuthor: navigateToSponsoredPostAuthor,
);
}

/// {@template block_action}
Expand Down
3 changes: 2 additions & 1 deletion packages/insta_blocks/lib/src/models/post_author.dart
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@ class PostAuthor {
id: shared['shared_post_author_id'] as String? ?? '',
avatarUrl: shared['shared_post_author_avatar_url'] as String? ?? '',
username: shared['shared_post_author_username'] as String? ??
shared['shared_post_author_full_name'] as String? ?? '',
shared['shared_post_author_full_name'] as String? ??
'',
);

/// The empty instance of the [PostAuthor].
Expand Down
4 changes: 2 additions & 2 deletions packages/insta_blocks/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ publish_to: none

environment:
sdk: ">=3.3.1 <4.0.0"
flutter: ^3.19.3
flutter: ^3.22.0

dependencies:
equatable: ^2.0.5
flutter:
sdk: flutter
json_annotation: ^4.8.1
meta: ">=1.10.0 <1.12.0"
meta: ">=1.10.0 <=1.12.0"
shared:
path: ../shared
user_repository:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ class LikersInFollowings extends StatelessWidget {
padding: const EdgeInsets.all(AppSpacing.xxs),
child: CircleAvatar(
backgroundImage: imageProvider,
backgroundColor: context.theme.colorScheme.background,
backgroundColor: context.theme.colorScheme.surface,
),
),
),
Expand Down
2 changes: 1 addition & 1 deletion packages/instagram_blocks_ui/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ publish_to: none

environment:
sdk: ">=3.3.1 <4.0.0"
flutter: ^3.19.3
flutter: ^3.22.0

dependencies:
app_ui:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ publish_to: none

environment:
sdk: ">=3.3.1 <4.0.0"
flutter: ^3.19.3
flutter: ^3.22.0

dependencies:
firebase_messaging: ^14.7.10
Expand Down
2 changes: 1 addition & 1 deletion packages/posts_repository/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ publish_to: none

environment:
sdk: ">=3.3.1 <4.0.0"
flutter: ^3.19.3
flutter: ^3.22.0

dependencies:
database_client:
Expand Down
2 changes: 1 addition & 1 deletion packages/powersync_repository/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ publish_to: none

environment:
sdk: ">=3.3.1 <4.0.0"
flutter: ^3.19.3
flutter: ^3.22.0

dependencies:
env:
Expand Down
Loading

0 comments on commit 7224944

Please sign in to comment.