1
0
mirror of https://github.com/flutter/samples.git synced 2025-11-10 14:58:34 +00:00

Samples maintenance (#435)

This commit is contained in:
Brett Morgan
2020-05-13 09:18:26 +10:00
committed by GitHub
parent 941ebebfad
commit baa1f976b2
94 changed files with 492 additions and 349 deletions

View File

@@ -1,4 +1,4 @@
include: package:pedantic/analysis_options.1.8.0.yaml
include: package:pedantic/analysis_options.1.9.0.yaml
analyzer:
strong-mode:

View File

@@ -122,7 +122,7 @@ packages:
name: provider
url: "https://pub.dartlang.org"
source: hosted
version: "4.0.4"
version: "4.1.0"
quiver:
dependency: transitive
description:
@@ -199,5 +199,5 @@ packages:
source: hosted
version: "3.6.1"
sdks:
dart: ">=2.6.0 <3.0.0"
flutter: ">=1.12.1"
dart: ">=2.7.0 <3.0.0"
flutter: ">=1.17.0"

View File

@@ -16,7 +16,7 @@ dependencies:
dev_dependencies:
flutter_test:
sdk: flutter
pedantic: ^1.8.0
pedantic: ^1.9.0
flutter:
uses-material-design: true

View File

@@ -47,7 +47,7 @@ void main() {
await tester.pumpWidget(createCartScreen());
// Adding five items in the cart and testing.
for (int i = 0; i < 5; i++) {
for (var i = 0; i < 5; i++) {
var item = catalogModel.getByPosition(i);
cartModel.add(item);
await tester.pumpAndSettle();

View File

@@ -35,7 +35,7 @@ void main() {
// Testing for the items on the screen after modifying
// the model for a fixed number of items.
for (String item in catalogListItems) {
for (var item in catalogListItems) {
expect(find.text(item), findsWidgets);
}
});