Skip to content

Commit

Permalink
fix(thread): Fix duplicate send post succeed hint
Browse files Browse the repository at this point in the history
  • Loading branch information
realth000 committed Feb 21, 2024
1 parent 79ce55a commit 8366ce9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/features/thread/view/thread_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,7 @@ class _ThreadPageState extends State<ThreadPage>
},
),
BlocListener<ReplyBloc, ReplyState>(
listenWhen: (prev, curr) => prev.status != curr.status,
listener: (context, state) {
if (state.status == ReplyStatus.success) {
ScaffoldMessenger.of(context).showSnackBar(
Expand Down

0 comments on commit 8366ce9

Please sign in to comment.