flyerhq / flutter_chat_ui

Actively maintained, community-driven chat UI implementation with an optional Firebase BaaS.
https://flyer.chat
Apache License 2.0
1.53k stars 666 forks source link

typing indicator in chat with no messages #571

Open abichinger opened 4 months ago

abichinger commented 4 months ago

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

demchenkoalex commented 4 months ago

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

abichinger commented 4 months ago

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