internet_speed_test_v1 1.5.6 copy "internet_speed_test_v1: ^1.5.6" to clipboard
internet_speed_test_v1: ^1.5.6 copied to clipboard

outdated

Internet speed test plugin to integrate it in your app whenever you want.

internet_speed_test #

Internet speed test plugin to integrate it in your app whenever you want.

Get started #

Add dependency #

dependencies:
  internet_speed_test: ^1.5.0

Example #


  import 'package:internet_speed_test/internet_speed_test.dart';

  final internetSpeedTest = InternetSpeedTest();

  internetSpeedTest.startDownloadTesting(
     onDone: (double transferRate, SpeedUnit unit) {
        // TODO: Change UI
     },
     onProgress: (double percent, double transferRate, SpeedUnit unit) {
        // TODO: Change UI
     },
     onError: (String errorMessage, String speedTestError) {
        // TODO: Show toast error
     },
   );



  internetSpeedTest.startUploadTesting(
     onDone: (double transferRate, SpeedUnit unit) {
       print('the transfer rate $transferRate');
       setState(() {
         // TODO: Change UI
       });
     },
     onProgress: (double percent, double transferRate, SpeedUnit unit) {
       print(
           'the transfer rate $transferRate, the percent $percent');
       setState(() {
         // TODO: Change UI
       });
     },
     onError: (String errorMessage, String speedTestError) {
       // TODO: Show toast error
     },
  );

Additional features #

You can also configure your test server URL


  import 'package:internet_speed_test/internet_speed_test.dart';

  final internetSpeedTest = InternetSpeedTest();

  internetSpeedTest.startDownloadTesting(
     onDone: (double transferRate, SpeedUnit unit) {
        // TODO: Change UI
     },
     onProgress: (double percent, double transferRate, SpeedUnit unit) {
        // TODO: Change UI
     },
     onError: (String errorMessage, String speedTestError) {
        // TODO: Show toast error
     },
     testServer: //Your test server URL goes here,
   );



  internetSpeedTest.startUploadTesting(
     onDone: (double transferRate, SpeedUnit unit) {
       print('the transfer rate $transferRate');
       setState(() {
         // TODO: Change UI
       });
     },
     onProgress: (double percent, double transferRate, SpeedUnit unit) {
       print(
           'the transfer rate $transferRate, the percent $percent');
       setState(() {
         // TODO: Change UI
       });
     },
     onError: (String errorMessage, String speedTestError) {
       // TODO: Show toast error
     },
     testServer: //Your test server URL goes here,
  );

If you don't provide a customized server URL we'll be using this URL for downloading http://ipv4.ikoula.testdebit.info/1M.iso

And this for uploading http://ipv4.ikoula.testdebit.info/

Contributors #

The major contributor that made this package better for the iOS platform is Akshat Sharma so a huge shoutout to him!

Platforms #

The package is working on both platforms iOS & Android!

Shoutout #

Shoutout to JSpeedTest

0
likes
0
points
25
downloads

Publisher

unverified uploader

Weekly Downloads

Internet speed test plugin to integrate it in your app whenever you want.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, tuple

More

Packages that depend on internet_speed_test_v1