Migrate web_e2e_tests to null safety (#80628)
This commit is contained in:
committed by
GitHub
parent
fe57037ad7
commit
5d37df13f9
@@ -7,7 +7,7 @@ import 'package:flutter/material.dart';
|
||||
void main() => runApp(const MyApp());
|
||||
|
||||
class MyApp extends StatelessWidget {
|
||||
const MyApp({Key key}) : super(key: key);
|
||||
const MyApp({Key? key}) : super(key: key);
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
@@ -20,9 +20,9 @@ class MyApp extends StatelessWidget {
|
||||
}
|
||||
|
||||
class MyHomePage extends StatefulWidget {
|
||||
const MyHomePage({Key key, this.title}) : super(key: key);
|
||||
const MyHomePage({Key? key, this.title}) : super(key: key);
|
||||
|
||||
final String title;
|
||||
final String? title;
|
||||
|
||||
@override
|
||||
_MyHomePageState createState() => _MyHomePageState();
|
||||
@@ -44,7 +44,7 @@ class _MyHomePageState extends State<MyHomePage> {
|
||||
Widget build(BuildContext context) {
|
||||
return Scaffold(
|
||||
appBar: AppBar(
|
||||
title: Text(widget.title),
|
||||
title: Text(widget.title ?? ''),
|
||||
),
|
||||
body: Center(
|
||||
child: Column(
|
||||
|
||||
Reference in New Issue
Block a user