feat: Added color theme implementations

This commit is contained in:
Deven Joshi
2020-12-29 23:10:41 +05:30
parent 08d2b32eff
commit 7fd8a1ed57
43 changed files with 504 additions and 224 deletions
+3 -5
View File
@@ -76,7 +76,7 @@ class UserItem extends StatelessWidget {
? CircleAvatar(
child: StreamSvgIcon.check(
size: 20,
color: Colors.white,
color: StreamChatTheme.of(context).colorTheme.white,
),
radius: 10,
)
@@ -94,10 +94,8 @@ class UserItem extends StatelessWidget {
user.online == true
? 'Online'
: 'Last online ${Jiffy(user.lastActive).fromNow()}',
style: StreamChatTheme.of(context)
.textTheme
.footnote
.copyWith(color: Colors.black.withOpacity(.5)),
style: StreamChatTheme.of(context).textTheme.footnote.copyWith(
color: StreamChatTheme.of(context).colorTheme.black.withOpacity(.5)),
);
}
}