1
0
mirror of https://github.com/flutter/samples.git synced 2025-11-09 22:38:42 +00:00

Adjust animations lint rules (#814)

This commit is contained in:
Brett Morgan
2021-06-08 09:00:06 +10:00
committed by GitHub
parent 12ba3b2245
commit b1a49c0afb
28 changed files with 75 additions and 46 deletions

View File

@@ -11,6 +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);
static String routeName = '/basics/01_animated_container';
@override

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -7,6 +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);
static const String routeName = '/basics/fade_transition';
@override