Skip to content

Commit 5548cc5

Browse files
committed
style: Use empty SizedBox when toggle is off for layout consistency
1 parent e62e995 commit 5548cc5

File tree

1 file changed

+17
-15
lines changed

1 file changed

+17
-15
lines changed

lib/widgets/all_channels.dart

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -109,21 +109,23 @@ class AllChannelsListEntry extends StatelessWidget {
109109
onLongPress: () {
110110
showChannelActionSheet(context, channelId: channel.streamId);
111111
},
112-
child: Row(spacing: 6, children: [
113-
Icon(
114-
size: 20,
115-
color: colorSwatchFor(context, subscription).iconOnPlainBackground,
116-
iconDataForStream(channel)),
117-
Expanded(
118-
child: Text(
119-
style: TextStyle(
120-
color: designVariables.textMessage,
121-
fontSize: 17,
122-
height: 20 / 17,
123-
).merge(weightVariableTextStyle(context, wght: 600)),
124-
channel.name)),
125-
if (hasContentAccess) _SubscribeToggle(channel: channel),
126-
])));
112+
child: SizedBox(
113+
height: 36,
114+
child: Row(spacing: 6, children: [
115+
Icon(
116+
size: 20,
117+
color: colorSwatchFor(context, subscription).iconOnPlainBackground,
118+
iconDataForStream(channel)),
119+
Expanded(
120+
child: Text(
121+
style: TextStyle(
122+
color: designVariables.textMessage,
123+
fontSize: 17,
124+
height: 20 / 17,
125+
).merge(weightVariableTextStyle(context, wght: 600)),
126+
channel.name)),
127+
hasContentAccess ?_SubscribeToggle(channel: channel): const SizedBox.shrink(),
128+
]))));
127129
}
128130
}
129131

0 commit comments

Comments
 (0)