feat: Move to Flutter 3.0.0 and Dart 2.17.0 (#1713)

This upgrades all packages to Flutter 3.0.0 and fixes all analyze issues that came from that.
This commit is contained in:
Lukas Klingsbo
2022-06-08 08:04:40 +02:00
committed by GitHub
parent ad602ff963
commit 2a41d0d683
150 changed files with 495 additions and 802 deletions

View File

@ -25,7 +25,7 @@ class SpaceShooterGame extends FlameGame {
}
class MyGame extends StatelessWidget {
const MyGame({Key? key}) : super(key: key);
const MyGame({super.key});
@override
Widget build(BuildContext context) {

View File

@ -4,7 +4,7 @@ import 'package:tutorials_space_shooter/steps/1_getting_started/1_flame_game/tut
import 'package:tutorials_space_shooter/widgets/step_scaffold.dart';
class RunningFlameStep extends StatelessWidget {
const RunningFlameStep({Key? key}) : super(key: key);
const RunningFlameStep({super.key});
@override
Widget build(BuildContext context) {

View File

@ -36,7 +36,7 @@ class SpaceShooterGame extends FlameGame with PanDetector {
}
class MyGame extends StatelessWidget {
const MyGame({Key? key}) : super(key: key);
const MyGame({super.key});
@override
Widget build(BuildContext context) {

View File

@ -4,7 +4,7 @@ import 'package:tutorials_space_shooter/steps/1_getting_started/2_input_and_grap
import 'package:tutorials_space_shooter/widgets/step_scaffold.dart';
class InputAndGraphicsStep extends StatelessWidget {
const InputAndGraphicsStep({Key? key}) : super(key: key);
const InputAndGraphicsStep({super.key});
@override
Widget build(BuildContext context) {

View File

@ -7,7 +7,7 @@ import 'package:flutter_highlight/themes/github.dart';
class CodeBlock extends StatelessWidget {
final String value;
const CodeBlock({Key? key, required this.value}) : super(key: key);
const CodeBlock({super.key, required this.value});
@override
Widget build(BuildContext context) {

View File

@ -9,10 +9,10 @@ class StepScaffold extends StatelessWidget {
final Widget game;
const StepScaffold({
Key? key,
super.key,
required this.tutorial,
required this.game,
}) : super(key: key);
});
@override
Widget build(BuildContext context) {

View File

@ -6,7 +6,7 @@ publish_to: 'none'
version: 1.0.0+1
environment:
sdk: ">=2.12.0 <3.0.0"
sdk: ">=2.17.0 <3.0.0"
dependencies:
dashbook: ^0.1.5