Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.

Commit 7bc1151

Browse files
author
Emmanuel Garcia
authored
[nnbd] Various fixes (#3175)
1 parent 052ec5f commit 7bc1151

23 files changed

Lines changed: 78 additions & 38 deletions

File tree

packages/connectivity/connectivity/test/connectivity_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file.
44

5-
// @dart = 2.8
5+
// @dart = 2.9
66

77
import 'package:connectivity/connectivity.dart';
88
import 'package:connectivity_platform_interface/connectivity_platform_interface.dart';

packages/device_info/device_info/example/integration_test/device_info_test.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
// TODO(cyanglaz): Remove once https://github.com/flutter/plugins/pull/3158 is landed.
66
// @dart = 2.9
7+
78
import 'dart:io';
89
import 'package:flutter_test/flutter_test.dart';
910
import 'package:device_info/device_info.dart';

packages/device_info/device_info/example/test_driver/integration_test.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
// TODO(cyanglaz): Remove once https://github.com/flutter/flutter/issues/59879 is fixed.
66
// @dart = 2.9
7+
78
import 'dart:async';
89
import 'dart:convert';
910
import 'dart:io';

packages/device_info/device_info_platform_interface/test/method_channel_device_info_test.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,10 @@
44

55
// TODO(cyanglaz): Remove once https://github.com/flutter/flutter/issues/59879 is fixed.
66
// @dart = 2.9
7+
78
import 'package:flutter/services.dart';
89
import 'package:flutter_test/flutter_test.dart';
9-
1010
import 'package:device_info_platform_interface/device_info_platform_interface.dart';
11-
1211
import 'package:device_info_platform_interface/method_channel/method_channel_device_info.dart';
1312

1413
void main() {

packages/google_sign_in/google_sign_in/test/google_sign_in_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file.
44

5-
// @dart = 2.8
5+
// @dart = 2.9
66

77
import 'dart:async';
88

packages/shared_preferences/shared_preferences/test/shared_preferences_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file.
44

5-
// @dart = 2.8
5+
// @dart = 2.9
66

77
import 'package:flutter/services.dart';
88
import 'package:flutter_test/flutter_test.dart';

packages/url_launcher/url_launcher/example/integration_test/url_launcher_test.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
// for details. All rights reserved. Use of this source code is governed by a
33
// BSD-style license that can be found in the LICENSE file.
44

5+
// TODO(egarciad): Remove once integration_test is migrated to null safety.
6+
// @dart = 2.9
7+
58
import 'dart:io' show Platform;
69

710
import 'package:flutter/foundation.dart' show kIsWeb;

packages/url_launcher/url_launcher/example/lib/main.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class MyHomePage extends StatefulWidget {
3535
}
3636

3737
class _MyHomePageState extends State<MyHomePage> {
38-
late Future<void> _launched;
38+
Future<void>? _launched;
3939
String _phone = '';
4040

4141
Future<void> _launchInBrowser(String url) async {

packages/url_launcher/url_launcher/example/test/url_launcher_example_test.dart

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
// Copyright 2017 The Chromium Authors. All rights reserved.
2+
// Use of this source code is governed by a BSD-style license that can be
3+
// found in the LICENSE file.
4+
5+
// TODO(egarciad): Remove once mockito is migrated to null safety.
6+
// @dart = 2.9
7+
18
import 'package:flutter_test/flutter_test.dart';
29
import 'package:flutter/material.dart';
310
import 'package:mockito/mockito.dart';

packages/url_launcher/url_launcher/example/test_driver/integration_test.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
// for details. All rights reserved. Use of this source code is governed by a
33
// BSD-style license that can be found in the LICENSE file.
44

5+
// TODO(egarciad): Remove once flutter_driver is migrated to null safety.
6+
// @dart = 2.9
7+
58
import 'dart:async';
69
import 'dart:convert';
710
import 'dart:io';

0 commit comments

Comments
 (0)