Fix deprecations
This commit is contained in:
parent
e99521c3f0
commit
02ebf0ff43
9 changed files with 21 additions and 13 deletions
|
|
@ -80,7 +80,7 @@ class _RecordingDialogState extends State<RecordingDialog> {
|
|||
child: Text(
|
||||
I18n.of(context).cancel.toUpperCase(),
|
||||
style: TextStyle(
|
||||
color: Theme.of(context).textTheme.body1.color.withAlpha(150),
|
||||
color: Theme.of(context).textTheme.bodyText2.color.withAlpha(150),
|
||||
),
|
||||
),
|
||||
onPressed: () => Navigator.of(context).pop(),
|
||||
|
|
|
|||
|
|
@ -58,7 +58,7 @@ class Message extends StatelessWidget {
|
|||
|
||||
if (event.messageType == MessageTypes.Image) {
|
||||
color = Theme.of(context).scaffoldBackgroundColor.withOpacity(0.66);
|
||||
textColor = Theme.of(context).textTheme.body1.color;
|
||||
textColor = Theme.of(context).textTheme.bodyText2.color;
|
||||
} else if (ownMessage) {
|
||||
color = event.status == -1
|
||||
? Colors.redAccent
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ class StateMessage extends StatelessWidget {
|
|||
event.getLocalizedBody(I18n.of(context)),
|
||||
textAlign: TextAlign.center,
|
||||
style: TextStyle(
|
||||
color: Theme.of(context).textTheme.body1.color,
|
||||
color: Theme.of(context).textTheme.bodyText2.color,
|
||||
decoration: event.redacted ? TextDecoration.lineThrough : null,
|
||||
),
|
||||
),
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@ class ReplyContent extends StatelessWidget {
|
|||
style: TextStyle(
|
||||
color: lightText
|
||||
? Colors.white
|
||||
: Theme.of(context).textTheme.body1.color),
|
||||
: Theme.of(context).textTheme.bodyText2.color),
|
||||
),
|
||||
],
|
||||
),
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ final ThemeData lightTheme = ThemeData(
|
|||
brightness: Brightness.light,
|
||||
color: Colors.white,
|
||||
textTheme: TextTheme(
|
||||
title: TextStyle(
|
||||
headline6: TextStyle(
|
||||
color: Colors.black,
|
||||
fontSize: 20,
|
||||
),
|
||||
|
|
@ -68,7 +68,7 @@ final ThemeData darkTheme = ThemeData.dark().copyWith(
|
|||
brightness: Brightness.dark,
|
||||
color: Color(0xff1D1D1D),
|
||||
textTheme: TextTheme(
|
||||
title: TextStyle(
|
||||
headline6: TextStyle(
|
||||
color: Colors.white,
|
||||
fontSize: 20,
|
||||
),
|
||||
|
|
@ -103,7 +103,7 @@ final ThemeData amoledTheme = ThemeData.dark().copyWith(
|
|||
brightness: Brightness.dark,
|
||||
color: Color(0xff1D1D1D),
|
||||
textTheme: TextTheme(
|
||||
title: TextStyle(
|
||||
headline6: TextStyle(
|
||||
color: Colors.white,
|
||||
fontSize: 20,
|
||||
),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue