mirror of
https://github.com/flutter/samples.git
synced 2026-03-29 07:41:41 +00:00
Migrate animations to go_router (#1521)
This commit is contained in:
@@ -6,7 +6,7 @@ import 'package:flutter/material.dart';
|
||||
|
||||
class AnimatedListDemo extends StatefulWidget {
|
||||
const AnimatedListDemo({super.key});
|
||||
static String routeName = '/misc/animated_list';
|
||||
static String routeName = 'misc/animated_list';
|
||||
|
||||
@override
|
||||
State<AnimatedListDemo> createState() => _AnimatedListDemoState();
|
||||
|
||||
@@ -8,7 +8,7 @@ import 'package:flutter/material.dart';
|
||||
|
||||
class AnimatedPositionedDemo extends StatefulWidget {
|
||||
const AnimatedPositionedDemo({super.key});
|
||||
static String routeName = '/basics/09_animated_positioned';
|
||||
static String routeName = 'misc/animated_positioned';
|
||||
|
||||
@override
|
||||
State<AnimatedPositionedDemo> createState() => _AnimatedPositionedDemoState();
|
||||
|
||||
@@ -24,7 +24,7 @@ Widget generateContainer(int keyCount) => Container(
|
||||
|
||||
class AnimatedSwitcherDemo extends StatefulWidget {
|
||||
const AnimatedSwitcherDemo({super.key});
|
||||
static String routeName = '/basics/10_animated_switcher';
|
||||
static String routeName = 'misc/animated_switcher';
|
||||
|
||||
@override
|
||||
State<AnimatedSwitcherDemo> createState() => _AnimatedSwitcherDemoState();
|
||||
|
||||
@@ -7,7 +7,7 @@ import 'package:flutter/physics.dart';
|
||||
|
||||
class CardSwipeDemo extends StatefulWidget {
|
||||
const CardSwipeDemo({super.key});
|
||||
static String routeName = '/misc/card_swipe';
|
||||
static String routeName = 'misc/card_swipe';
|
||||
|
||||
@override
|
||||
State<CardSwipeDemo> createState() => _CardSwipeDemoState();
|
||||
|
||||
@@ -7,7 +7,7 @@ import 'package:flutter/material.dart';
|
||||
|
||||
class CarouselDemo extends StatelessWidget {
|
||||
CarouselDemo({super.key});
|
||||
static String routeName = '/misc/carousel';
|
||||
static String routeName = 'misc/carousel';
|
||||
|
||||
static const List<String> fileNames = [
|
||||
'assets/eat_cape_town_sm.jpg',
|
||||
|
||||
@@ -7,7 +7,7 @@ import 'package:flutter/material.dart';
|
||||
|
||||
class CurvedAnimationDemo extends StatefulWidget {
|
||||
const CurvedAnimationDemo({super.key});
|
||||
static const String routeName = '/misc/curved_animation';
|
||||
static const String routeName = 'misc/curved_animation';
|
||||
|
||||
@override
|
||||
State<CurvedAnimationDemo> createState() => _CurvedAnimationDemoState();
|
||||
|
||||
@@ -6,7 +6,7 @@ import 'package:flutter/material.dart';
|
||||
|
||||
class ExpandCardDemo extends StatelessWidget {
|
||||
const ExpandCardDemo({super.key});
|
||||
static const String routeName = '/misc/expand_card';
|
||||
static const String routeName = 'misc/expand_card';
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
|
||||
@@ -6,7 +6,7 @@ import 'package:flutter/material.dart';
|
||||
|
||||
class FocusImageDemo extends StatelessWidget {
|
||||
const FocusImageDemo({super.key});
|
||||
static String routeName = '/misc/focus_image';
|
||||
static String routeName = 'misc/focus_image';
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
|
||||
@@ -6,7 +6,7 @@ import 'package:flutter/material.dart';
|
||||
|
||||
class HeroAnimationDemo extends StatelessWidget {
|
||||
const HeroAnimationDemo({super.key});
|
||||
static const String routeName = '/misc/hero_animation';
|
||||
static const String routeName = 'misc/hero_animation';
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
|
||||
@@ -7,7 +7,7 @@ import 'package:flutter/physics.dart';
|
||||
|
||||
class PhysicsCardDragDemo extends StatelessWidget {
|
||||
const PhysicsCardDragDemo({super.key});
|
||||
static const String routeName = '/misc/physics_card';
|
||||
static const String routeName = 'misc/physics_card';
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
|
||||
@@ -6,7 +6,7 @@ import 'package:flutter/material.dart';
|
||||
|
||||
class RepeatingAnimationDemo extends StatefulWidget {
|
||||
const RepeatingAnimationDemo({super.key});
|
||||
static String routeName = '/misc/repeating_animation';
|
||||
static String routeName = 'misc/repeating_animation';
|
||||
|
||||
@override
|
||||
State<RepeatingAnimationDemo> createState() => _RepeatingAnimationDemoState();
|
||||
|
||||
Reference in New Issue
Block a user