speed_test_quick

Creator: coderz1093

Last updated:

0 purchases

speed_test_quick Image
speed_test_quick Images

Languages

Categories

Add to Cart

Description:

speed test quick

speed_test_quick #
Internet speed test plugin to integrate it in your app whenever you want.
Get started #
Add dependency #
dependencies:
speed_test_quick: ^1.5.0
copied to clipboard
Example #

import 'package:speed_test_quick/speed_test_quick.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
},
);

copied to clipboard
Additional features #
You can also configure your test server URL

import 'package:speed_test_quick/speed_test_quick.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,
);

copied to clipboard
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

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.