fix: fixed alignment and font weight

This commit is contained in:
Deven Joshi
2020-12-31 17:37:20 +05:30
parent ca6bd62084
commit bb9052c331
2 changed files with 12 additions and 7 deletions
+3 -1
View File
@@ -92,9 +92,11 @@ class _ChannelBottomSheetState extends State<ChannelBottomSheet> {
if (!(channel.isDistinct && channel.memberCount == 2)) if (!(channel.isDistinct && channel.memberCount == 2))
Container( Container(
height: 94.0, height: 94.0,
alignment: Alignment.center,
child: ListView.builder( child: ListView.builder(
scrollDirection: Axis.horizontal, scrollDirection: Axis.horizontal,
itemCount: members.length, itemCount: members.length,
shrinkWrap: true,
itemBuilder: (context, index) { itemBuilder: (context, index) {
return Padding( return Padding(
padding: const EdgeInsets.symmetric(horizontal: 8.0), padding: const EdgeInsets.symmetric(horizontal: 8.0),
@@ -127,7 +129,7 @@ class _ChannelBottomSheetState extends State<ChannelBottomSheet> {
), ),
), ),
SizedBox( SizedBox(
height: 17.0, height: 24.0,
), ),
OptionListTile( OptionListTile(
leading: StreamSvgIcon.user( leading: StreamSvgIcon.user(
+9 -6
View File
@@ -41,12 +41,15 @@ class OptionListTile extends StatelessWidget {
width: 16.0, width: 16.0,
), ),
Expanded( Expanded(
flex: 4, flex: 4,
child: Text( child: Text(
title, title,
style: TextStyle( style: TextStyle(
fontWeight: FontWeight.w600, color: titleColor), fontWeight: FontWeight.bold,
)), color: titleColor,
),
),
),
Expanded( Expanded(
flex: 2, flex: 2,
child: Padding( child: Padding(