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:
@@ -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,
|
||||
),
|
||||
));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user