Commit e261d659 authored by Wilko Manger's avatar Wilko Manger

Use modern Material Design text terms

parent 3c0349a2
......@@ -91,7 +91,7 @@ class _ImagePageState extends State<ImagePage> {
_date,
style: Theme.of(context)
.textTheme
.body1
.bodyText2
.copyWith(color: Colors.white),
),
],
......
......@@ -302,7 +302,7 @@ class MessageBubble extends StatelessWidget {
elevation: 1,
shape: border,
child: DefaultTextStyle(
style: Theme.of(context).textTheme.body1.apply(
style: Theme.of(context).textTheme.bodyText2.apply(
fontSizeFactor: 1.1,
color: message.isMine ? Colors.white : null,
),
......
......@@ -33,7 +33,7 @@ class DateHeader extends StatelessWidget {
Center(
child: Text(
formatAsDate(context, date).toUpperCase(),
style: Theme.of(context).textTheme.display1.copyWith(
style: Theme.of(context).textTheme.headline4.copyWith(
fontSize: 16,
),
),
......
......@@ -66,7 +66,7 @@ class ChatListState extends State<ChatList> {
),
Text(
time,
style: Theme.of(context).textTheme.subtitle.copyWith(
style: Theme.of(context).textTheme.subtitle2.copyWith(
fontWeight: FontWeight.normal,
color: Theme.of(context).textTheme.caption.color,
),
......
......@@ -81,7 +81,7 @@ class Subtitle extends StatelessWidget {
@override
Widget build(BuildContext context) {
return DefaultTextStyle(
style: Theme.of(context).textTheme.body1.copyWith(
style: Theme.of(context).textTheme.bodyText2.copyWith(
color: Theme.of(context).textTheme.caption.color,
),
child: Provider<Subtitle>.value(
......
......@@ -30,7 +30,7 @@ class Header extends StatelessWidget {
text,
style: TextStyle(
color: redOnBackground(context),
fontSize: Theme.of(context).textTheme.body1.fontSize,
fontSize: Theme.of(context).textTheme.bodyText2.fontSize,
fontWeight: FontWeight.bold,
),
);
......
......@@ -114,7 +114,7 @@ class UsernameLoginPageState extends State<UsernameLoginPage> {
children: <Widget>[
Text(
l(context).login.toUpperCase(),
style: Theme.of(context).textTheme.headline.copyWith(
style: Theme.of(context).textTheme.headline5.copyWith(
fontWeight: FontWeight.bold,
color: redOnBackground(context),
),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment