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:
@@ -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,
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user