[testing_app] Migrate to null safety (#800)

pull/802/head
Abdullah Deshmukh 4 years ago committed by GitHub
parent 2809a7c89c
commit c0d3d0cf04
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -28,7 +28,7 @@ void main() {
await binding.watchPerformance( await binding.watchPerformance(
() async { () async {
// Quickly scroll all the way down. // Quickly scroll all the way down.
await scroller.animateTo( await scroller!.animateTo(
7000, 7000,
duration: const Duration(seconds: 1), duration: const Duration(seconds: 1),
curve: Curves.linear, curve: Curves.linear,

@ -9,7 +9,7 @@ import 'package:provider/provider.dart';
import 'package:testing_app/models/favorites.dart'; import 'package:testing_app/models/favorites.dart';
import 'package:testing_app/screens/favorites.dart'; import 'package:testing_app/screens/favorites.dart';
Favorites favoritesList; late Favorites favoritesList;
Widget createFavoritesScreen() => ChangeNotifierProvider<Favorites>( Widget createFavoritesScreen() => ChangeNotifierProvider<Favorites>(
create: (context) { create: (context) {

@ -105,7 +105,7 @@ packages:
name: cupertino_icons name: cupertino_icons
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "1.0.0" version: "1.0.3"
fake_async: fake_async:
dependency: transitive dependency: transitive
description: description:
@ -163,11 +163,9 @@ packages:
version: "4.0.0" version: "4.0.0"
integration_test: integration_test:
dependency: "direct dev" dependency: "direct dev"
description: description: flutter
name: integration_test source: sdk
url: "https://pub.dartlang.org" version: "0.0.0"
source: hosted
version: "1.0.2+3"
io: io:
dependency: transitive dependency: transitive
description: description:
@ -216,7 +214,7 @@ packages:
name: nested name: nested
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "0.0.4" version: "1.0.0"
node_preamble: node_preamble:
dependency: transitive dependency: transitive
description: description:
@ -272,7 +270,7 @@ packages:
name: provider name: provider
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "4.3.3" version: "5.0.0"
pub_semver: pub_semver:
dependency: transitive dependency: transitive
description: description:
@ -286,7 +284,7 @@ packages:
name: shelf name: shelf
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "1.1.1" version: "1.1.4"
shelf_packages_handler: shelf_packages_handler:
dependency: transitive dependency: transitive
description: description:
@ -424,7 +422,7 @@ packages:
name: web_socket_channel name: web_socket_channel
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.0.0" version: "2.1.0"
webdriver: webdriver:
dependency: transitive dependency: transitive
description: description:

@ -4,21 +4,22 @@ description: A sample that shows testing in Flutter.
version: 1.0.0+1 version: 1.0.0+1
environment: environment:
sdk: ">=2.10.0 <3.0.0" sdk: '>=2.12.0 <3.0.0'
dependencies: dependencies:
flutter: flutter:
sdk: flutter sdk: flutter
cupertino_icons: ^1.0.0 cupertino_icons: ^1.0.3
provider: ^4.1.3 provider: ^5.0.0
dev_dependencies: dev_dependencies:
integration_test: ^1.0.1 integration_test:
sdk: flutter
flutter_test: flutter_test:
sdk: flutter sdk: flutter
test: ^1.14.4 test: ^1.16.8
pedantic: ^1.9.0 pedantic: ^1.11.0
flutter: flutter:
uses-material-design: true uses-material-design: true

@ -8,7 +8,7 @@ import 'package:provider/provider.dart';
import 'package:testing_app/models/favorites.dart'; import 'package:testing_app/models/favorites.dart';
import 'package:testing_app/screens/favorites.dart'; import 'package:testing_app/screens/favorites.dart';
Favorites favoritesList; late Favorites favoritesList;
Widget createFavoritesScreen() => ChangeNotifierProvider<Favorites>( Widget createFavoritesScreen() => ChangeNotifierProvider<Favorites>(
create: (context) { create: (context) {

Loading…
Cancel
Save