1
0
mirror of https://github.com/flutter/samples.git synced 2025-11-08 13:58:47 +00:00

Migrate form_app to null safety (#925)

This commit is contained in:
John Ryan
2021-10-08 17:45:46 -07:00
committed by GitHub
parent e2e2713986
commit d3c6253f85
10 changed files with 50 additions and 83 deletions

View File

@@ -6,9 +6,6 @@ import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:form_app/src/http/mock_client.dart';
import 'package:form_app/src/sign_in_http.dart';
import 'package:http/http.dart' as http;
final http.Client httpClient = MockClient();
void main() {
testWidgets('sign in', (tester) async {
@@ -28,7 +25,7 @@ void main() {
Future<void> _signIn(WidgetTester tester, String email, String password) async {
await tester.pumpWidget(MaterialApp(
home: SignInHttpDemo(
httpClient: httpClient,
httpClient: mockClient,
),
));