feat: corrected text styles

This commit is contained in:
Deven Joshi
2021-01-11 21:29:31 +05:30
parent c987066329
commit 6274f1437e
2 changed files with 25 additions and 16 deletions
+14 -8
View File
@@ -313,10 +313,13 @@ class _MessageActionsModalState extends State<MessageActionsModal> {
FlatButton( FlatButton(
child: Text( child: Text(
'OK', 'OK',
style: TextStyle( style: StreamChatTheme.of(context)
color: .textTheme
StreamChatTheme.of(context).colorTheme.accentBlue, .bodyBold
fontWeight: FontWeight.w400), .copyWith(
color: StreamChatTheme.of(context)
.colorTheme
.accentBlue),
), ),
onPressed: () { onPressed: () {
Navigator.of(context).pop(); Navigator.of(context).pop();
@@ -375,10 +378,13 @@ class _MessageActionsModalState extends State<MessageActionsModal> {
FlatButton( FlatButton(
child: Text( child: Text(
'OK', 'OK',
style: TextStyle( style: StreamChatTheme.of(context)
color: .textTheme
StreamChatTheme.of(context).colorTheme.accentBlue, .bodyBold
fontWeight: FontWeight.w400), .copyWith(
color: StreamChatTheme.of(context)
.colorTheme
.accentBlue),
), ),
onPressed: () { onPressed: () {
Navigator.of(context).pop(); Navigator.of(context).pop();
+11 -8
View File
@@ -67,12 +67,10 @@ Future<bool> showConfirmationDialog(
FlatButton( FlatButton(
child: Text( child: Text(
cancelText, cancelText,
style: TextStyle( style: StreamChatTheme.of(context)
color: StreamChatTheme.of(context) .textTheme
.colorTheme .bodyBold
.black .copyWith(color: Colors.black.withOpacity(0.5)),
.withOpacity(0.5),
fontWeight: FontWeight.w400),
), ),
onPressed: () { onPressed: () {
Navigator.of(context).pop(false); Navigator.of(context).pop(false);
@@ -81,8 +79,13 @@ Future<bool> showConfirmationDialog(
FlatButton( FlatButton(
child: Text( child: Text(
okText, okText,
style: TextStyle( style: StreamChatTheme.of(context)
color: Colors.red, fontWeight: FontWeight.w400), .textTheme
.bodyBold
.copyWith(
color: StreamChatTheme.of(context)
.colorTheme
.accentRed),
), ),
onPressed: () { onPressed: () {
Navigator.pop(context, true); Navigator.pop(context, true);