パッケージ、リポジトリ、アプリカテゴリを検索

パッケージ詳細v1.0.5+0

speed_test_dart

speedtest.net を使用したインターネット速度テストツール(ピンガ、アップロード、ダウンロード)

AndroidiOSWebmacOSWindowsLinux
30日間ダウンロード
23
いいね数
41
Pub ポイント
135

パッケージをインストール

flutter pub add speed_test_dart

パッケージ概要

公開情報に基づく選定ガイドです。参考としてご利用ください。

複数のプラットフォームでインターネット速度テストを可能にするFlutter/Dartパッケージで、speedtest.netインフラストラクチャを使用してping、アップロードおよびダウンロード速度を測定します。リアルタイムのネットワークパフォーマンスチェックをアプリに統合するためのシンプルなAPIを提供し、Android、iOS、Web、macOS、Windows、Linuxをサポートしています。信頼性のある速度データが必要なアプリケーションにおける診断、ネットワークモニタリング、またはパフォーマンス評価機能に最適です。

用途

  • ネットワークパフォーマンスモニタリング
  • アプリ診断ツール
  • インターネット品質評価
  • リアルタイム帯域幅テスト
  • ユーザー接続フィードバック
  • ネットワーク間の速度比較

主な機能

  • ping、アップロード、ダウンロードテストをサポート
  • speedtest.net サーバーを使用
  • クロスプラットフォーム互換性
  • シンプルな非同期 API
  • 軽量で統合が簡単
  • リアルタイム速度メトリクス

適している対象

  • ネットワークツールを開発する開発者
  • 接続チェックが必要なアプリ
  • パフォーマンスベンチマークユーティリティ
  • モバイルおよびデスクトップ診断アプリ
  • 教育またはテストアプリケーション

注意事項

  • 外部の speedtest.net サービスに依存しています
  • ネットワークアクセスにはユーザーの許可が必要になる場合があります
  • 結果はサーバーの近接度に依存します
  • 高周波テストには適していません
  • テストパラメータのカスタマイズが限られている
  • ネットワーク状態が正確性に影響します

元の README

関連するソースリポジトリの README 原文のスナップショットです。最新の内容はリポジトリをご覧ください。

speed_test_dart

Forked from speed_test_port

Flutter package to test ping, upload, download using speedtest.net

Optimizations

Some refactors, more customization and better error handling. Now the test are done from a server list and if one server fails, it will try the next one.

Installation

Add the package to your dependencies:

dependencies:
  speed_test_dart: ^1.0.0

Finally, run dart pub get to download the package.

Projects using this library should use the stable channel of Flutter

Startup

At the startup of the app, we need to get the best servers to do the test (see setBestServers function). It's recommended to disabled the buttons while this operation is happening:

Startup

Download Speed

Doing download test:

Download test

Upload Speed

Doing upload test:

Upload test

Example of usage

    // Create a tester instance
    SpeedTestDart tester = SpeedTestDart();

    // And a variable to store the best servers
    List<Server> bestServersList = [];

    // Example function to set the best servers, could be called
    // in an initState()
    Future<void> setBestServers() async {
      final settings = await tester.getSettings();
      final servers = settings.servers;

      final _bestServersList = await tester.getBestServers(
        servers: servers,
      );

      setState(() {
        bestServersList = _bestServersList;
      });
    }

    //Test download speed in MB/s
    final downloadRate =
        await tester.testDownloadSpeed(servers: bestServersList);

    //Test upload speed in MB/s
    final uploadRate = await tester.testUploadSpeed(servers: bestServersList);

カテゴリー

依存関係

依存関係一覧 3 件

ソースリポジトリ

このパッケージを使用しているプロジェクト