fix small backbuttons

This commit is contained in:
Salvatore Giordano
2021-03-09 19:02:53 +01:00
parent cde3527fc6
commit 9bd892e253
2 changed files with 6 additions and 38 deletions
+5 -26
View File
@@ -77,7 +77,6 @@ class _ChatInfoScreenState extends State<ChatInfoScreen> {
showOnlineStatus: false, showOnlineStatus: false,
), ),
), ),
//SizedBox(height: 4.0),
Text( Text(
widget.user.name, widget.user.name,
style: TextStyle(fontSize: 16.0, fontWeight: FontWeight.bold), style: TextStyle(fontSize: 16.0, fontWeight: FontWeight.bold),
@@ -105,16 +104,10 @@ class _ChatInfoScreenState extends State<ChatInfoScreen> {
], ],
), ),
Positioned( Positioned(
top: 21, top: 0,
left: 16, left: 0,
child: InkWell( width: 58,
child: StreamSvgIcon.left( child: StreamBackButton(),
color: StreamChatTheme.of(context).colorTheme.black,
),
onTap: () {
Navigator.of(context).pop();
},
),
), ),
], ],
), ),
@@ -445,21 +438,7 @@ class __SharedGroupsScreenState extends State<_SharedGroupsScreen> {
color: StreamChatTheme.of(context).colorTheme.black, color: StreamChatTheme.of(context).colorTheme.black,
fontSize: 16.0), fontSize: 16.0),
), ),
leading: Center( leading: StreamBackButton(),
child: InkWell(
onTap: () {
Navigator.of(context).pop();
},
child: Container(
child: StreamSvgIcon.left(
color: StreamChatTheme.of(context).colorTheme.black,
size: 24.0,
),
width: 24.0,
height: 24.0,
),
),
),
backgroundColor: StreamChatTheme.of(context).colorTheme.white, backgroundColor: StreamChatTheme.of(context).colorTheme.white,
), ),
body: StreamBuilder<List<Channel>>( body: StreamBuilder<List<Channel>>(
+1 -12
View File
@@ -84,18 +84,7 @@ class _GroupInfoScreenState extends State<GroupInfoScreen> {
elevation: 1.0, elevation: 1.0,
toolbarHeight: 56.0, toolbarHeight: 56.0,
backgroundColor: StreamChatTheme.of(context).colorTheme.white, backgroundColor: StreamChatTheme.of(context).colorTheme.white,
leading: InkWell( leading: StreamBackButton(),
onTap: () {
Navigator.pop(context);
},
child: Padding(
padding: const EdgeInsets.only(left: 12.0),
child: StreamSvgIcon.left(
color: StreamChatTheme.of(context).colorTheme.black,
),
),
),
leadingWidth: 36.0,
title: Column( title: Column(
children: [ children: [
StreamBuilder<ChannelState>( StreamBuilder<ChannelState>(