internet_speed_meter 1.0.3 copy "internet_speed_meter: ^1.0.3" to clipboard
internet_speed_meter: ^1.0.3 copied to clipboard

PlatformAndroid

Monitor network speed in real-time in your Flutter apps with the Internet Speed Monitor package. Display current network speed and keep users informed about their connection performance

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.

18
likes
150
points
254
downloads

Publisher

verified publishersyedmoizali.site

Weekly Downloads

Monitor network speed in real-time in your Flutter apps with the Internet Speed Monitor package. Display current network speed and keep users informed about their connection performance

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on internet_speed_meter