1
0
mirror of https://github.com/flutter/samples.git synced 2026-04-05 03:01:19 +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

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