1
0
mirror of https://github.com/flutter/samples.git synced 2026-04-04 02:32:25 +00:00

Deps update, utilize super.key (#1265)

* Deps update, utilize `super.key`

* `flutter format`
This commit is contained in:
Brett Morgan
2022-05-13 12:31:56 -07:00
committed by GitHub
parent 52ef797b9a
commit 58bc5d7a58
244 changed files with 449 additions and 500 deletions

View File

@@ -11,7 +11,7 @@ double generateMargin() => Random().nextDouble() * 64;
Color generateColor() => Color(0xFFFFFFFF & Random().nextInt(0xFFFFFFFF));
class AnimatedContainerDemo extends StatefulWidget {
const AnimatedContainerDemo({Key? key}) : super(key: key);
const AnimatedContainerDemo({super.key});
static String routeName = '/basics/01_animated_container';
@override

View File

@@ -5,7 +5,7 @@
import 'package:flutter/material.dart';
class PageRouteBuilderDemo extends StatelessWidget {
const PageRouteBuilderDemo({Key? key}) : super(key: key);
const PageRouteBuilderDemo({super.key});
static const String routeName = '/basics/page_route_builder';
@override

View File

@@ -5,7 +5,7 @@
import 'package:flutter/material.dart';
class AnimationControllerDemo extends StatefulWidget {
const AnimationControllerDemo({Key? key}) : super(key: key);
const AnimationControllerDemo({super.key});
static const String routeName = '/basics/animation_controller';
@override

View File

@@ -5,7 +5,7 @@
import 'package:flutter/material.dart';
class TweenDemo extends StatefulWidget {
const TweenDemo({Key? key}) : super(key: key);
const TweenDemo({super.key});
static const String routeName = '/basics/tweens';
@override

View File

@@ -5,7 +5,7 @@
import 'package:flutter/material.dart';
class AnimatedBuilderDemo extends StatefulWidget {
const AnimatedBuilderDemo({Key? key}) : super(key: key);
const AnimatedBuilderDemo({super.key});
static const String routeName = '/basics/animated_builder';
@override

View File

@@ -16,7 +16,7 @@ class TypewriterTween extends Tween<String> {
}
class CustomTweenDemo extends StatefulWidget {
const CustomTweenDemo({Key? key}) : super(key: key);
const CustomTweenDemo({super.key});
static const String routeName = '/basics/custom_tweens';
@override

View File

@@ -5,7 +5,7 @@
import 'package:flutter/material.dart';
class TweenSequenceDemo extends StatefulWidget {
const TweenSequenceDemo({Key? key}) : super(key: key);
const TweenSequenceDemo({super.key});
static const String routeName = '/basics/chaining_tweens';
@override

View File

@@ -7,7 +7,7 @@ import 'package:flutter/material.dart';
// Refer to the AnimatedWidget docs here - https://api.flutter.dev/flutter/widgets/AnimatedWidget-class.html
// for examples of other common animated widgets.
class FadeTransitionDemo extends StatefulWidget {
const FadeTransitionDemo({Key? key}) : super(key: key);
const FadeTransitionDemo({super.key});
static const String routeName = '/basics/fade_transition';
@override