mirror of
https://github.com/flutter/samples.git
synced 2025-11-08 13:58:47 +00:00
Update for Material changes & run rebuild scripts (#1412)
This commit is contained in:
@@ -179,7 +179,7 @@ class HomePage extends StatelessWidget {
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final headerStyle = Theme.of(context).textTheme.headline6;
|
||||
final headerStyle = Theme.of(context).textTheme.titleLarge;
|
||||
return Scaffold(
|
||||
appBar: AppBar(
|
||||
title: const Text('Animation Samples'),
|
||||
|
||||
@@ -50,7 +50,8 @@ class _Page2 extends StatelessWidget {
|
||||
title: const Text('Page 2'),
|
||||
),
|
||||
body: Center(
|
||||
child: Text('Page 2!', style: Theme.of(context).textTheme.headline4),
|
||||
child:
|
||||
Text('Page 2!', style: Theme.of(context).textTheme.headlineMedium),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -65,7 +65,7 @@ class _AnimationControllerDemoState extends State<AnimationControllerDemo>
|
||||
constraints: const BoxConstraints(maxWidth: 200),
|
||||
child: Text(
|
||||
controller.value.toStringAsFixed(2),
|
||||
style: Theme.of(context).textTheme.headline3,
|
||||
style: Theme.of(context).textTheme.displaySmall,
|
||||
textScaleFactor: 1 + controller.value,
|
||||
),
|
||||
),
|
||||
|
||||
@@ -94,7 +94,7 @@ class _CurvedAnimationDemoState extends State<CurvedAnimationDemo>
|
||||
const SizedBox(height: 20.0),
|
||||
Text(
|
||||
'Select Curve for forward motion',
|
||||
style: Theme.of(context).textTheme.headline6,
|
||||
style: Theme.of(context).textTheme.titleLarge,
|
||||
),
|
||||
DropdownButton<CurveChoice>(
|
||||
items: curves.map((curve) {
|
||||
@@ -114,7 +114,7 @@ class _CurvedAnimationDemoState extends State<CurvedAnimationDemo>
|
||||
const SizedBox(height: 15.0),
|
||||
Text(
|
||||
'Select Curve for reverse motion',
|
||||
style: Theme.of(context).textTheme.headline6,
|
||||
style: Theme.of(context).textTheme.titleLarge,
|
||||
),
|
||||
DropdownButton<CurveChoice>(
|
||||
items: curves.map((curve) {
|
||||
|
||||
Reference in New Issue
Block a user