Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

typing indicator in chat with no messages #571

Open
abichinger opened this issue Mar 14, 2024 · 2 comments
Open

typing indicator in chat with no messages #571

abichinger opened this issue Mar 14, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@abichinger
Copy link

General

What bug do you experience? 🐞

The typing indicator is not visible if the Chat widget does not contain any messages.

How can it be reproduced? 🤔

final _user = const types.User(
  id: '82091008-a484-4a89-ae75-a22bf8d6f3ac',
  firstName: 'Alice',
);

@override
Widget build(BuildContext context) => Scaffold(
      body: Chat(
        messages: [],
        onSendPressed: (_) {},
        user: _user,
        typingIndicatorOptions: TypingIndicatorOptions(
          typingUsers: [_user],
        ),
      ),
    );

What behavior is expected? 💡

The typing indicator should show up.


Environment info

flutter: 3.19.3
flutter-chat-ui: 1.6.12

flutter doctor -v output 👇

[✓] Flutter (Channel stable, 3.19.3, on Manjaro Linux 6.6.19-1-MANJARO, locale en_US.utf8)
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[✓] Chrome - develop for the web
[✓] Linux toolchain - develop for Linux desktop
[!] Android Studio (not installed)
[✓] Connected device (3 available)
[✓] Network resources

Platform

Device: Desktop
OS version: 6.6.19-1-MANJARO

@abichinger abichinger added the bug Something isn't working label Mar 14, 2024
@abichinger abichinger changed the title typing indicator in chat without messages typing indicator in chat with no messages Mar 14, 2024
@demchenkoalex
Copy link
Member

Hey, probably will wait until v2, sorry about that.

@abichinger
Copy link
Author

abichinger commented Mar 17, 2024

No worries, I just reported it because I noticed it while using this awesome package. I don't need it immediately.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants