• python
  • javascript
  • reactjs
  • sql
  • c#
  • java
Facebook Twitter Instagram
Devs Fixed
  • python
  • javascript
  • reactjs
  • sql
  • c#
  • java
Devs Fixed
Home ยป Resolved: Internet Connectivity flutter

Resolved: Internet Connectivity flutter

0
By Isaac Tonny on 17/06/2022 Issue
Share
Facebook Twitter LinkedIn

Question:

This is the code i use to check for internet connectivity in flutter
When the application launches, it shows connected even when i am already connected to the internet. I want it to show connected only when i reconnect to the internet. Thank you very much. I appreciate

Answer:

So, when looking through the library’s code, I see that they initially always send a status update. A simple workaround would be to have a counter variable that increments every time you receive a status change event. If the counter variable has its default value, you know you received the initial event.

If you have better answer, please add a comment about this, thank you!

connection flutter internet-connection
Share. Facebook Twitter LinkedIn

Related Posts

Resolved: How can I implement a function depending on picked up items?

01/04/2023

Resolved: Azuer Service Bus SDK not receiving the specified messages

01/04/2023

Resolved: how to change date format from 201904 to Apr-19 in excel

01/04/2023

Leave A Reply

© 2023 DEVSFIX.COM

Type above and press Enter to search. Press Esc to cancel.