Enable Material 3 on Animations sample (#1605)

pull/1612/head
Miguel Beltran 2 years ago committed by GitHub
parent 7166e8acd6
commit de6e27001e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -178,7 +178,8 @@ class AnimationSamples extends StatelessWidget {
return MaterialApp.router(
title: 'Animation Samples',
theme: ThemeData(
primarySwatch: Colors.deepPurple,
colorSchemeSeed: Colors.deepPurple,
useMaterial3: true,
),
routerConfig: router,
);

@ -50,8 +50,7 @@ class _CustomTweenDemoState extends State<CustomTweenDemo>
appBar: AppBar(
title: const Text('Custom Tween'),
actions: [
MaterialButton(
textColor: Colors.white,
TextButton(
onPressed: () {
if (controller.status == AnimationStatus.completed) {
controller.reverse().whenComplete(() {

@ -47,15 +47,11 @@ class _AnimatedSwitcherDemoState extends State<AnimatedSwitcherDemo> {
appBar: AppBar(
title: const Text('AnimatedSwitcher'),
actions: [
MaterialButton(
TextButton(
onPressed: () => setState(
() => container = generateContainer(++keyCount),
),
child: Text(
'Change Widget',
style: TextStyle(
color: Theme.of(context).buttonTheme.colorScheme!.onPrimary),
),
child: const Text('Change Widget'),
),
],
),

Loading…
Cancel
Save