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
+11 -8
View File
@@ -67,12 +67,10 @@ Future<bool> 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<bool> 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);