- Removed the
internet_connection_checker
package, as recent versions were removed from pub.dev due to licensing issues. - Replaced
internet_connection_checker
withinternet_connection_checker_plus
package to ensure continued functionality and compliance.
checkConnectionTimeout
option to set the timeout duration when checking real internet connection.
- Change
checkConnection
return type toFuture<bool>
to return if connection is available or not.
- Recheck the connection if
autoCheckConnection
is TRUE or if connection lost.
- internet_connection_checker version, set to any
internetCheck()
context extension to allow to check internet form context extension.
internetStateStream
accessed fromcontext
to listen for internet connection changes only (without listening to loading states), i.e:context.internetStateStream.listen((status){})
.
- ios 12+ known issue with
ConnectivityPlus
that get none even if the local network is available, the bloc is now check the real internet connection onios
even if the local network is none.
- Optimized the emission of the loading state to occur only when disconnected and a local network (e.g., Wi-Fi) is available, reducing unnecessary state emissions.
- Improved overall efficiency by decreasing the emission of unnecessary states, avoiding the loading state in cases where it isn't required.
showLogs
option to enable or disable log prints, providing better control over console output.disconnectionCheckPeriodic
option to set theDuration
for periodic checks during a disconnection state, allowing more granular control over connectivity checks.
- Example project to reflect the latest changes and improvements.
README.md
file with updated instructions and information.
- Implemented a
Stream
that checks internet connectivity every 10 seconds, emitting a new state if the connection status changes. - Introduced the
autoCheck
option to control whether internet connectivity should be checked automatically. Set tofalse
to disable automatic checks. - Added an option to customize the check interval, controlling the time between connectivity checks.
- Created an
Object
for translations, allowing easier addition or customization of translations, such as Arabic or specific texts to display when no internet connection is available.
- Updated the
builder
widget to remove the direct ability to addnoInternetScreen
. Customization of the no internet screen is now done via the builder function, providing greater flexibility in UI design.