mirror of
https://github.com/flutter/samples.git
synced 2025-11-10 14:58:34 +00:00
Deps update, utilize super.key (#1265)
* Deps update, utilize `super.key` * `flutter format`
This commit is contained in:
@@ -12,7 +12,7 @@ import 'services.dart';
|
||||
// uncomment the for-loop and appBar lines below, and note how the new null
|
||||
// safety static analysis immediately flags those lines as errors.
|
||||
class BadMyApp extends StatelessWidget {
|
||||
const BadMyApp({Key? key}) : super(key: key);
|
||||
const BadMyApp({super.key});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
|
||||
@@ -7,7 +7,7 @@ import 'package:flutter/material.dart';
|
||||
import 'services.dart';
|
||||
|
||||
class GoodMyApp extends StatelessWidget {
|
||||
const GoodMyApp({Key? key}) : super(key: key);
|
||||
const GoodMyApp({super.key});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
|
||||
Reference in New Issue
Block a user