Skip to content

Perondas/signal_strength

Repository files navigation

signal_strength

pub package

A android flutter plugin to get the current signal strengths. Only works on Android.

Usage

Add to pubspec.yaml:

signal_strength 0.0.1

Import:

import 'package:signal_strength/signal_strength.dart';

Usage:

var signalStrengthPlugin = SignalStrength();

bool isOnCellular = await signalStrengthPlugin.isOnCellular(),
bool isOnWifi = await signalStrengthPlugin.isOnWifi(),
int? wifiStrength = await signalStrengthPlugin.getWifiSignalStrength(),
List<int>? cellStrength = await signalStrengthPlugin.getCellularSignalStrength());

Todo: