Skip to content

Commit 4a1baf0

Browse files
committed
Migrated to new text theme
1 parent ece1d81 commit 4a1baf0

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

example/lib/main.dart

+3-3
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class MyApp extends StatelessWidget {
2020
primarySwatch: Colors.blue,
2121
scaffoldBackgroundColor: Colors.white24,
2222
primaryTextTheme: TextTheme(
23-
title: TextStyle(color: Colors.blue),
23+
headline6: TextStyle(color: Colors.blue),
2424
),
2525
),
2626
home: HomePage(),
@@ -46,14 +46,14 @@ class HomePage extends StatelessWidget {
4646
onPressed: () => context.pushNamed(Routes.form),
4747
child: Text(
4848
'Form Example',
49-
style: context.primaryTextTheme.title,
49+
style: context.primaryTextTheme.headline6,
5050
),
5151
),
5252
MaterialButton(
5353
onPressed: () => context.pushNamed(Routes.focusScope),
5454
child: Text(
5555
'Focus Scope Example',
56-
style: context.primaryTextTheme.title,
56+
style: context.primaryTextTheme.headline6,
5757
),
5858
),
5959
],

example/lib/pages/focus_scope.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class FocusScopePage extends StatelessWidget {
1919
decoration: InputDecoration(
2020
border: OutlineInputBorder(),
2121
hintText: 'Click away from me...',
22-
hintStyle: context.primaryTextTheme.subhead!
22+
hintStyle: context.primaryTextTheme.subtitle1!
2323
.copyWith(color: context.primaryColor),
2424
),
2525
),

0 commit comments

Comments
 (0)