mirror of
https://github.com/flutter/samples.git
synced 2025-11-08 22:09:06 +00:00
Enable Material 3 on Animations sample (#1605)
This commit is contained in:
@@ -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'),
|
||||
),
|
||||
],
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user