1
0
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:
Brett Morgan
2022-09-01 11:01:17 +10:00
committed by GitHub
parent 83f7059d83
commit 9d8aa333ee
167 changed files with 928 additions and 1061 deletions

View File

@@ -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'),

View File

@@ -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),
),
);
}

View File

@@ -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,
),
),

View File

@@ -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) {