mirror of
https://github.com/block/buzz.git
synced 2026-10-27 12:40:30 +00:00
Polish mobile typing indicator (#3528)
## Summary - Present channel and thread typing status in a composer-matched container. - Animate the strip so the message list moves smoothly as typing begins and ends. - Increase typing-label contrast and avatar/padding for readability. ## Pixel 10 snapshot  ## Validation - `flutter test test/features/channels/channel_detail_page_test.dart` - `flutter analyze` Signed-off-by: kenny lopez <klopez4212@gmail.com>
This commit is contained in:
@@ -1808,6 +1808,25 @@ void main() {
|
||||
await tester.pumpAndSettle();
|
||||
|
||||
expect(find.text('Alice is typing…'), findsOneWidget);
|
||||
|
||||
final indicator = tester.widget<Container>(
|
||||
find.byKey(const ValueKey('channel-typing-indicator')),
|
||||
);
|
||||
final decoration = indicator.decoration! as BoxDecoration;
|
||||
expect(
|
||||
indicator.padding,
|
||||
const EdgeInsets.symmetric(horizontal: Grid.xxs, vertical: Grid.xxs),
|
||||
);
|
||||
expect(
|
||||
decoration.color,
|
||||
AppTheme.light().colorScheme.surfaceContainerHighest,
|
||||
);
|
||||
expect(decoration.border, isA<Border>());
|
||||
expect(
|
||||
tester.widget<Text>(find.text('Alice is typing…')).style?.color,
|
||||
AppTheme.light().colorScheme.primary,
|
||||
);
|
||||
expect(tester.widget<SmallAvatar>(find.byType(SmallAvatar)).size, 24);
|
||||
});
|
||||
|
||||
testWidgets('shows two typers', (tester) async {
|
||||
|
||||
Reference in New Issue
Block a user