Internet Speed Meter
A Flutter package for monitoring internet speed.
Installation
Add internet_speed_meter
to your pubspec.yaml
file:
dependencies:
internet_speed_meter: ^1.0.2
Permissions
Ensure that you have the necessary permissions in your AndroidManifest.xml file:
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.INTERNET"/>
Usage
Import the package in your Dart file:
import 'package:internet_speed_meter/internet_speed_meter.dart';
Create an instance of InternetSpeedMeter and use the getCurrentInternetSpeed stream to get real-time internet speed updates:
void main() {
InternetSpeedMeter _internetSpeedMeterPlugin = InternetSpeedMeter();
_internetSpeedMeterPlugin.getCurrentInternetSpeed().listen((speed) {
print('Current Speed: $speed');
});
}
Features
- Real-time monitoring of internet speed.
- Supports both kbps and Mbps units.
Contributing
Contributions are welcome! Please feel free to submit a pull request or open an issue for bug fixes, feature requests, or any improvements you'd like to see in the package.
License
This project is licensed under the MIT License - see the LICENSE file for details.
This README.md file provides clear instructions on how to install the package, use the `InternetSpeedMeter` class, and contribute to the project.