File tree Expand file tree Collapse file tree 3 files changed +5
-10
lines changed Expand file tree Collapse file tree 3 files changed +5
-10
lines changed Original file line number Diff line number Diff line change @@ -28,10 +28,6 @@ analyzer:
28
28
missing_return : warning
29
29
# allow having TODOs in the code
30
30
todo : ignore
31
- # Ignore analyzer hints for updating pubspecs when using Future or
32
- # Stream and not importing dart:async
33
- # Please see https://github.com/flutter/flutter/pull/24528 for details.
34
- sdk_version_async_exported_from_core : ignore
35
31
exclude :
36
32
- ' bin/cache/**'
37
33
# the following two are relative to the stocks example and the flutter package respectively
Original file line number Diff line number Diff line change @@ -4,11 +4,10 @@ import 'package:instabug_flutter/instabug_flutter.dart';
4
4
5
5
Future <void > main () async {
6
6
runApp (const MyApp ());
7
- Instabug .start (
8
- 'ed6f659591566da19b67857e1b9d40ab' , [InvocationEvent .floatingButton]);
7
+ Instabug .init (
8
+ token : 'ed6f659591566da19b67857e1b9d40ab' , invocationEvents : [InvocationEvent .floatingButton]);
9
9
final client = InstabugHttpClient ();
10
- final response = await client.get (Uri .parse ('https://google.com' ));
11
- print (response.body);
10
+ await client.get (Uri .parse ('https://google.com' ));
12
11
}
13
12
14
13
class MyApp extends StatelessWidget {
@@ -58,7 +57,7 @@ class _MyHomePageState extends State<MyHomePage> {
58
57
),
59
58
Text (
60
59
'$_counter ' ,
61
- style: Theme .of (context).textTheme.headline4 ,
60
+ style: Theme .of (context).textTheme.headlineMedium ,
62
61
),
63
62
],
64
63
),
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ import 'package:mockito/mockito.dart';
14
14
15
15
import 'instabug_http_client_test.mocks.dart' ;
16
16
17
- @GenerateMocks ([
17
+ @GenerateMocks (< Type > [
18
18
InstabugHttpLogger ,
19
19
InstabugHttpClient ,
20
20
])
You can’t perform that action at this time.
0 commit comments