I am trying to upload some multimedia files(Images, Audio and Videos) to my server and I only want to upload these files if there is a stable internet connection. Is there a concrete way to achieve this?
To check the internet connection in Flutter, you need to add the connectivity plus plugin and then you can check the internet connection by manually calling its checkConnectivity method or listen to the network connectivity changes by calling its onConnectivityChanged.
To test your Internet stability, you'll need a computer on your network capable of issuing a "ping" command and receiving a response. Place the computer outside of your firewall or turn off any software firewalls that may be installed. It's also best to test your Internet through a cable connection and not Wi-Fi.
Bandwidth is how many bits per second a link can transmit, and this is fixed for a medium/protocol.
One year after, there is a new (Mar. 31, 2020) package that solves this need. Check at https://pub.dev/packages/internet_speed_test#-readme-tab-
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With