From 6274f1437e9d48bdca37ed49ed2929201f5002ff Mon Sep 17 00:00:00 2001 From: Deven Joshi Date: Mon, 11 Jan 2021 21:29:31 +0530 Subject: [PATCH] feat: corrected text styles --- lib/src/message_actions_modal.dart | 22 ++++++++++++++-------- lib/src/utils.dart | 19 +++++++++++-------- 2 files changed, 25 insertions(+), 16 deletions(-) diff --git a/lib/src/message_actions_modal.dart b/lib/src/message_actions_modal.dart index e4db71f5..4db2dd73 100644 --- a/lib/src/message_actions_modal.dart +++ b/lib/src/message_actions_modal.dart @@ -313,10 +313,13 @@ class _MessageActionsModalState extends State { FlatButton( child: Text( 'OK', - style: TextStyle( - color: - StreamChatTheme.of(context).colorTheme.accentBlue, - fontWeight: FontWeight.w400), + style: StreamChatTheme.of(context) + .textTheme + .bodyBold + .copyWith( + color: StreamChatTheme.of(context) + .colorTheme + .accentBlue), ), onPressed: () { Navigator.of(context).pop(); @@ -375,10 +378,13 @@ class _MessageActionsModalState extends State { FlatButton( child: Text( 'OK', - style: TextStyle( - color: - StreamChatTheme.of(context).colorTheme.accentBlue, - fontWeight: FontWeight.w400), + style: StreamChatTheme.of(context) + .textTheme + .bodyBold + .copyWith( + color: StreamChatTheme.of(context) + .colorTheme + .accentBlue), ), onPressed: () { Navigator.of(context).pop(); diff --git a/lib/src/utils.dart b/lib/src/utils.dart index 21ca8114..4e55111f 100644 --- a/lib/src/utils.dart +++ b/lib/src/utils.dart @@ -67,12 +67,10 @@ Future showConfirmationDialog( FlatButton( child: Text( cancelText, - style: TextStyle( - color: StreamChatTheme.of(context) - .colorTheme - .black - .withOpacity(0.5), - fontWeight: FontWeight.w400), + style: StreamChatTheme.of(context) + .textTheme + .bodyBold + .copyWith(color: Colors.black.withOpacity(0.5)), ), onPressed: () { Navigator.of(context).pop(false); @@ -81,8 +79,13 @@ Future showConfirmationDialog( FlatButton( child: Text( okText, - style: TextStyle( - color: Colors.red, fontWeight: FontWeight.w400), + style: StreamChatTheme.of(context) + .textTheme + .bodyBold + .copyWith( + color: StreamChatTheme.of(context) + .colorTheme + .accentRed), ), onPressed: () { Navigator.pop(context, true);