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

Handle broadcast error #86

Merged
merged 1 commit into from
Dec 21, 2024
Merged

Handle broadcast error #86

merged 1 commit into from
Dec 21, 2024

Conversation

hieutbui
Copy link
Owner

@hieutbui hieutbui commented Dec 20, 2024

Summary

This pull request includes changes to the TicketDetailsController class in the lib/pages/ticket_details/ticket_details.dart file to handle broadcast errors more effectively. The most important changes include adding a new method to listen for broadcast errors and handling them appropriately.

Enhancements to error handling:

  • Added _listenBroadcastError method to subscribe to error broadcasts specific to the selected ticket.
  • Implemented _handleBroadcastError method to log and display an error dialog when a broadcast error occurs.
  • Called _listenBroadcastError in the initState method to start listening for errors upon initialization.

Copy link

This PR has been deployed to https://hieutbui.github.io/ecoparking_flutter/86

@hieutbui hieutbui merged commit 5baaac3 into main Dec 21, 2024
4 checks passed
@hieutbui hieutbui deleted the Broadcast-error branch December 21, 2024 14:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant