fix: chat_info_screen.dart

This commit is contained in:
Deven Joshi
2021-01-04 17:22:14 +05:30
parent eaa7d03bb4
commit 4ef7516b52
+10 -8
View File
@@ -28,12 +28,14 @@ class _ChatInfoScreenState extends State<ChatInfoScreen> {
body: ListView( body: ListView(
children: [ children: [
_buildUserHeader(), _buildUserHeader(),
SizedBox( Container(
height: 8.0, height: 8.0,
color: StreamChatTheme.of(context).colorTheme.greyGainsboro,
), ),
_buildOptionListTiles(), _buildOptionListTiles(),
SizedBox( Container(
height: 8.0, height: 8.0,
color: StreamChatTheme.of(context).colorTheme.greyGainsboro,
), ),
if ([ if ([
'admin', 'admin',
@@ -139,7 +141,7 @@ class _ChatInfoScreenState extends State<ChatInfoScreen> {
title: 'Mute user', title: 'Mute user',
titleTextStyle: StreamChatTheme.of(context).textTheme.body, titleTextStyle: StreamChatTheme.of(context).textTheme.body,
leading: Padding( leading: Padding(
padding: const EdgeInsets.symmetric(horizontal: 16.0), padding: const EdgeInsets.symmetric(horizontal: 22.0),
child: StreamSvgIcon.mute( child: StreamSvgIcon.mute(
size: 24.0, size: 24.0,
color: StreamChatTheme.of(context) color: StreamChatTheme.of(context)
@@ -186,9 +188,9 @@ class _ChatInfoScreenState extends State<ChatInfoScreen> {
tileColor: StreamChatTheme.of(context).colorTheme.whiteSnow, tileColor: StreamChatTheme.of(context).colorTheme.whiteSnow,
titleTextStyle: StreamChatTheme.of(context).textTheme.body, titleTextStyle: StreamChatTheme.of(context).textTheme.body,
leading: Padding( leading: Padding(
padding: const EdgeInsets.symmetric(horizontal: 12.0), padding: const EdgeInsets.symmetric(horizontal: 16.0),
child: StreamSvgIcon.pictures( child: StreamSvgIcon.pictures(
size: 32.0, size: 36.0,
color: color:
StreamChatTheme.of(context).colorTheme.black.withOpacity(0.5), StreamChatTheme.of(context).colorTheme.black.withOpacity(0.5),
), ),
@@ -244,7 +246,7 @@ class _ChatInfoScreenState extends State<ChatInfoScreen> {
tileColor: StreamChatTheme.of(context).colorTheme.whiteSnow, tileColor: StreamChatTheme.of(context).colorTheme.whiteSnow,
titleTextStyle: StreamChatTheme.of(context).textTheme.body, titleTextStyle: StreamChatTheme.of(context).textTheme.body,
leading: Padding( leading: Padding(
padding: const EdgeInsets.symmetric(horizontal: 12.0), padding: const EdgeInsets.symmetric(horizontal: 18.0),
child: StreamSvgIcon.files( child: StreamSvgIcon.files(
size: 32.0, size: 32.0,
color: color:
@@ -283,7 +285,7 @@ class _ChatInfoScreenState extends State<ChatInfoScreen> {
tileColor: StreamChatTheme.of(context).colorTheme.whiteSnow, tileColor: StreamChatTheme.of(context).colorTheme.whiteSnow,
titleTextStyle: StreamChatTheme.of(context).textTheme.body, titleTextStyle: StreamChatTheme.of(context).textTheme.body,
leading: Padding( leading: Padding(
padding: const EdgeInsets.symmetric(horizontal: 16.0), padding: const EdgeInsets.symmetric(horizontal: 22.0),
child: StreamSvgIcon.Icon_group( child: StreamSvgIcon.Icon_group(
size: 24.0, size: 24.0,
color: color:
@@ -313,7 +315,7 @@ class _ChatInfoScreenState extends State<ChatInfoScreen> {
color: StreamChatTheme.of(context).colorTheme.accentRed, color: StreamChatTheme.of(context).colorTheme.accentRed,
), ),
leading: Padding( leading: Padding(
padding: const EdgeInsets.symmetric(horizontal: 16.0), padding: const EdgeInsets.symmetric(horizontal: 22.0),
child: StreamSvgIcon.delete( child: StreamSvgIcon.delete(
color: StreamChatTheme.of(context).colorTheme.accentRed, color: StreamChatTheme.of(context).colorTheme.accentRed,
size: 24.0, size: 24.0,