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

The Network Speed Monitor Flutter package provides a simple and efficient way to monitor network speed in real-time within your Flutter applications. With this package, you can easily retrieve and dis [...]

Network Speed Monitor #

A Flutter package for monitoring network speed.

Installation #

Add network_speed_monitor to your pubspec.yaml file:

dependencies:
  network_speed_monitor: ^1.0.0

Permissions #

Ensure that you have the necessary permissions in your AndroidManifest.xml file:

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.example.yourapp">
    <!-- Other permissions and declarations -->

    <!-- Required for checking network connectivity -->
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
    <!-- Required for accessing the internet -->
    <uses-permission android:name="android.permission.INTERNET"/>

    <application
        <!-- Other application configurations -->
    >
        <!-- Activities, services, receivers, etc. -->

    </application>
</manifest>

Usage #

Import the package in your Dart file:

import 'package:network_speed_monitor/network_speed_monitor.dart';

Create an instance of NetworkSpeedMonitor and use the realtimeInternetSpeed stream to get real-time internet speed updates:

void main() {
  NetworkSpeedMonitor monitor = NetworkSpeedMonitor();

  monitor.realtimeInternetSpeed().listen((speed) {
    print('Current Speed: $speed');
  });
}

Features #

  • Real-time monitoring of network 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 `NetworkSpeedMonitor` class, and contribute to the project.

19
likes
0
points
174
downloads

Publisher

verified publishersyedmoizali.site

Weekly Downloads

The Network Speed Monitor Flutter package provides a simple and efficient way to monitor network speed in real-time within your Flutter applications. With this package, you can easily retrieve and display the current network speed, enabling your users to stay informed about their internet connection performance.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on internet_speed_meter

Packages that implement internet_speed_meter