Skip to content

Commit c1fb333

Browse files
fix dart analyze issue
1 parent 24d42ee commit c1fb333

File tree

3 files changed

+5
-10
lines changed

3 files changed

+5
-10
lines changed

analysis_options.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,6 @@ analyzer:
2828
missing_return: warning
2929
# allow having TODOs in the code
3030
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
3531
exclude:
3632
- 'bin/cache/**'
3733
# the following two are relative to the stocks example and the flutter package respectively

example/lib/main.dart

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,10 @@ import 'package:instabug_flutter/instabug_flutter.dart';
44

55
Future<void> main() async {
66
runApp(const MyApp());
7-
Instabug.start(
8-
'ed6f659591566da19b67857e1b9d40ab', [InvocationEvent.floatingButton]);
7+
Instabug.init(
8+
token: 'ed6f659591566da19b67857e1b9d40ab', invocationEvents: [InvocationEvent.floatingButton]);
99
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'));
1211
}
1312

1413
class MyApp extends StatelessWidget {
@@ -58,7 +57,7 @@ class _MyHomePageState extends State<MyHomePage> {
5857
),
5958
Text(
6059
'$_counter',
61-
style: Theme.of(context).textTheme.headline4,
60+
style: Theme.of(context).textTheme.headlineMedium,
6261
),
6362
],
6463
),

test/instabug_http_client_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import 'package:mockito/mockito.dart';
1414

1515
import 'instabug_http_client_test.mocks.dart';
1616

17-
@GenerateMocks([
17+
@GenerateMocks(<Type>[
1818
InstabugHttpLogger,
1919
InstabugHttpClient,
2020
])

0 commit comments

Comments
 (0)