File tree Expand file tree Collapse file tree 8 files changed +20
-16
lines changed Expand file tree Collapse file tree 8 files changed +20
-16
lines changed Original file line number Diff line number Diff line change 1+
Original file line number Diff line number Diff line change @@ -4,17 +4,16 @@ description: An example graphql_flutter application utilizing graphql_starwars_t
44publish_to : none
55
66environment :
7- sdk : " >=2.10 .0 <3.0.0"
7+ sdk : " >=2.13 .0 <= 3.0.0"
88
99dependencies :
1010 flutter :
1111 sdk : flutter
1212 graphql_flutter :
1313 path : ../../packages/graphql_flutter
1414 graphql : ^5.1.2-beta.1
15- universal_platform :
16- ^0.1.3
15+ universal_platform : ^1.0.0+1
1716 # https://github.com/flutter/flutter/issues/36126#issuecomment-596215587
1817
1918flutter :
20- uses-material-design : true
19+ uses-material-design : true
Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ void readRepositories() async {
7878 result.data! ['viewer' ]['repositories' ]['nodes' ] as List <dynamic >;
7979
8080 repositories.forEach (
81- (dynamic f) => { stdout.writeln ('Id: ${f ['id' ]} Name: ${f ['name' ]}' )} ,
81+ (dynamic f) => stdout.writeln ('Id: ${f ['id' ]} Name: ${f ['name' ]}' ),
8282 );
8383
8484 exit (0 );
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ class QueryScheduler {
5757 }
5858
5959 // fetch each query on the interval
60- intervalQueries[interval]! .forEach (queryManager! .refetchQuery);
60+ intervalQueries[interval]! .forEach (queryManager! .refetchQuery< dynamic > );
6161 }
6262
6363 void startPollingQuery (
Original file line number Diff line number Diff line change @@ -32,4 +32,4 @@ dev_dependencies:
3232 lints : ^1.0.1
3333
3434environment :
35- sdk : ' >=2.12 .0 <=3.0.0'
35+ sdk : ' >=2.15 .0 <=3.0.0'
Original file line number Diff line number Diff line change 99dependencies :
1010 flutter :
1111 sdk : flutter
12- cupertino_icons : ^0.1.3
1312 graphql_flutter :
1413 path : ..
1514 trash_themes : ^0.0.1
Original file line number Diff line number Diff line change @@ -42,10 +42,12 @@ Future<void> mockApplicationDocumentsDirectory() async {
4242 return null ;
4343 };
4444 // Mock out the MethodChannel for the path_provider plugin.
45- const MethodChannel ('plugins.flutter.io/path_provider' )
46- .setMockMethodCallHandler (handler);
47- const MethodChannel ('plugins.flutter.io/path_provider_macos' )
48- .setMockMethodCallHandler (handler);
45+ final channel = MethodChannel ('plugins.flutter.io/path_provider' );
46+ TestDefaultBinaryMessengerBinding .instance.defaultBinaryMessenger
47+ .setMockMethodCallHandler (channel, handler);
48+ final channel_osx = MethodChannel ('plugins.flutter.io/path_provider_macos' );
49+ TestDefaultBinaryMessengerBinding .instance.defaultBinaryMessenger
50+ .setMockMethodCallHandler (channel_osx, handler);
4951}
5052
5153class Page extends StatefulWidget {
Original file line number Diff line number Diff line change @@ -40,11 +40,14 @@ Future<void> mockApplicationDocumentsDirectory() async {
4040 }
4141 return null ;
4242 };
43+
4344 // Mock out the MethodChannel for the path_provider plugin.
44- const MethodChannel ('plugins.flutter.io/path_provider' )
45- .setMockMethodCallHandler (handler);
46- const MethodChannel ('plugins.flutter.io/path_provider_macos' )
47- .setMockMethodCallHandler (handler);
45+ final channel = MethodChannel ('plugins.flutter.io/path_provider' );
46+ TestDefaultBinaryMessengerBinding .instance.defaultBinaryMessenger
47+ .setMockMethodCallHandler (channel, handler);
48+ final channel_osx = MethodChannel ('plugins.flutter.io/path_provider_macos' );
49+ TestDefaultBinaryMessengerBinding .instance.defaultBinaryMessenger
50+ .setMockMethodCallHandler (channel_osx, handler);
4851}
4952
5053class Page extends StatelessWidget {
You can’t perform that action at this time.
0 commit comments