mirror of
https://github.com/flutter/samples.git
synced 2025-11-08 13:58:47 +00:00
Flutter 1.17 updates (#432)
* Material text theme updates & flutter pub upgrade (#411) * Beta channel updates (#412) * fix deprecated usages in provider_shopper - beta channel * fix deprecated usages in animations - beta channel * fix deprecated usages in provider_counter - beta * Updates additional samples for beta release (#416) * use headline6 instead of title * fix another title -> headline6 Co-authored-by: Brett Morgan <brett.morgan@gmail.com> Co-authored-by: Andrew Brogdon <RedBrogdon@users.noreply.github.com>
This commit is contained in:
@@ -142,7 +142,7 @@ class AnimationSamples extends StatelessWidget {
|
||||
|
||||
class HomePage extends StatelessWidget {
|
||||
Widget build(BuildContext context) {
|
||||
final headerStyle = Theme.of(context).textTheme.title;
|
||||
final headerStyle = Theme.of(context).textTheme.headline6;
|
||||
return Scaffold(
|
||||
appBar: AppBar(
|
||||
title: Text('Animation Samples'),
|
||||
|
||||
@@ -42,7 +42,7 @@ class _Page2 extends StatelessWidget {
|
||||
return Scaffold(
|
||||
appBar: AppBar(),
|
||||
body: Center(
|
||||
child: Text('Page 2!', style: Theme.of(context).textTheme.display1),
|
||||
child: Text('Page 2!', style: Theme.of(context).textTheme.headline4),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -62,7 +62,7 @@ class _AnimationControllerDemoState extends State<AnimationControllerDemo>
|
||||
constraints: BoxConstraints(maxWidth: 200),
|
||||
child: Text(
|
||||
'${controller.value.toStringAsFixed(2)}',
|
||||
style: Theme.of(context).textTheme.display2,
|
||||
style: Theme.of(context).textTheme.headline3,
|
||||
textScaleFactor: 1 + controller.value,
|
||||
),
|
||||
),
|
||||
|
||||
@@ -92,7 +92,7 @@ class _CurvedAnimationDemoState extends State<CurvedAnimationDemo>
|
||||
SizedBox(height: 20.0),
|
||||
Text(
|
||||
'Select Curve for forward motion',
|
||||
style: Theme.of(context).textTheme.title,
|
||||
style: Theme.of(context).textTheme.headline6,
|
||||
),
|
||||
DropdownButton<CurveChoice>(
|
||||
items: curves.map((curve) {
|
||||
@@ -110,7 +110,7 @@ class _CurvedAnimationDemoState extends State<CurvedAnimationDemo>
|
||||
SizedBox(height: 15.0),
|
||||
Text(
|
||||
'Select Curve for reverse motion',
|
||||
style: Theme.of(context).textTheme.title,
|
||||
style: Theme.of(context).textTheme.headline6,
|
||||
),
|
||||
DropdownButton<CurveChoice>(
|
||||
items: curves.map((curve) {
|
||||
|
||||
Reference in New Issue
Block a user