Skip to content

Commit

Permalink
upgraded flutter to 3.22.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Aniketkhote committed May 15, 2024
1 parent 6da6d50 commit 2c44623
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 12 deletions.
13 changes: 8 additions & 5 deletions lib/get_connect/connect.dart
Original file line number Diff line number Diff line change
Expand Up @@ -316,17 +316,20 @@ class GetConnect extends GetConnectInterface {
return GraphQLResponse<T>(
graphQLErrors: listError
.map((e) => GraphQLError(
code: (e['extensions'] != null ? e['extensions']['code'] ?? '' : '').toString(),
code: (e['extensions'] != null
? e['extensions']['code'] ?? ''
: '')
.toString(),
message: (e['message'] ?? '').toString(),
))
.toList());
}
return GraphQLResponse<T>.fromResponse(res);
} on Exception catch (_) {
} on Exception catch (err) {
return GraphQLResponse<T>(graphQLErrors: [
GraphQLError(
code: null,
message: _.toString(),
message: err.toString(),
)
]);
}
Expand Down Expand Up @@ -357,11 +360,11 @@ class GetConnect extends GetConnectInterface {
.toList());
}
return GraphQLResponse<T>.fromResponse(res);
} on Exception catch (_) {
} on Exception catch (err) {
return GraphQLResponse<T>(graphQLErrors: [
GraphQLError(
code: null,
message: _.toString(),
message: err.toString(),
)
]);
}
Expand Down
2 changes: 1 addition & 1 deletion lib/get_navigation/src/dialog/dialog_route.dart
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,6 @@ class GetDialogRoute<T> extends PopupRoute<T> {
),
child: child);
} // Some default transition
return _transitionBuilder!(context, animation, secondaryAnimation, child);
return _transitionBuilder(context, animation, secondaryAnimation, child);
}
}
5 changes: 3 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@ version: 5.0.0-release-candidate-5
homepage: https://github.com/jonataslaw/getx

environment:
sdk: ">=3.0.0 <4.0.0"
sdk: ">=3.4.0 <4.0.0"
flutter: ">=3.22.0"

dependencies:
flutter:
sdk: flutter
flutter_web_plugins:
sdk: flutter
web: any
web: ">=0.4.0 <0.6.0"

dev_dependencies:
flutter_lints: ^4.0.0
Expand Down
8 changes: 4 additions & 4 deletions test/rx/rx_workers_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ void main() {
test('once', () async {
final count = 0.obs;
var result = -1;
once(count, (dynamic _) {
result = _ as int;
once(count, (dynamic val) {
result = val as int;
});
count.value++;
await Future.delayed(Duration.zero);
Expand Down Expand Up @@ -41,9 +41,9 @@ void main() {
test('debounce', () async {
final count = 0.obs;
int? result = -1;
debounce(count, (dynamic _) {
debounce(count, (dynamic val) {
// print(_);
result = _ as int?;
result = val as int?;
}, time: const Duration(milliseconds: 100));

count.value++;
Expand Down

0 comments on commit 2c44623

Please # to comment.