fix(ui): fix headers alignment

This commit is contained in:
Salvatore Giordano
2022-05-10 10:36:12 +02:00
parent c158924b0e
commit 3297d73e06
2 changed files with 9 additions and 13 deletions
@@ -100,12 +100,10 @@ class StreamChannelInfo extends StatelessWidget {
return alternativeWidget ?? const Offstage(); return alternativeWidget ?? const Offstage();
} }
return Align( return StreamTypingIndicator(
child: StreamTypingIndicator(
parentId: parentId, parentId: parentId,
style: textStyle, style: textStyle,
alternativeWidget: alternativeWidget, alternativeWidget: alternativeWidget,
),
); );
} }
@@ -186,13 +186,11 @@ class StreamThreadHeader extends StatelessWidget
), ),
const SizedBox(height: 2), const SizedBox(height: 2),
if (showTypingIndicator) if (showTypingIndicator)
Align( StreamTypingIndicator(
child: StreamTypingIndicator(
channel: StreamChannel.of(context).channel, channel: StreamChannel.of(context).channel,
style: channelHeaderTheme.subtitleStyle, style: channelHeaderTheme.subtitleStyle,
parentId: parent.id, parentId: parent.id,
alternativeWidget: defaultSubtitle, alternativeWidget: defaultSubtitle,
),
) )
else else
defaultSubtitle, defaultSubtitle,