A Flutter project that demonstrates advanced chat UI animations.
The app focuses on the message sending flow and shows how to combine overlay transitions, placeholder layout animation, and coordinated label animations to create a smooth chat experience.
- Bubble transition from input field to chat list (overlay animation).
- Placeholder expansion to reserve list space during transition.
- Coordinated "Delivered" label scale + fade animation.
- Message state flow:
sending->delivered.
lib/
main.dart
chat/
models/
chat_message.dart
view/
chat_screen.dart
widgets/
bubble.dart
delivered_label.dart
animations/
bubble_placeholder.dart
bubble_transition.dart
delivered_label_fade.dart
delivered_label_scale.dart
- User types a message and taps send.
- A flying bubble is rendered in an
OverlayEntryand animated from the input field to a bubble placeholder location in the list. - After transition, the message is shown in the "animating" section.
- A short simulated delay represents network delivery.
- Slide/fade/scale animations move the message to the delivered section and update the "Delivered" label.
flutter pub get
flutter runUse this project as a reference for:
- Coordinating multiple Flutter animation controllers.
- Combining
CustomScrollView+Sliverwidgets with animated states. - Building polished chat interactions with explicit animation phases.
