wifi_info_plugin 1.0.6

  • Readme
  • Changelog
  • Example
  • Installing
  • 86

wifi_info_plugin #

Wifi info wrapper android plugin

Getting Started #

This Plugin is currently only supports android. IOS implementation to be release soon. Import the plugin. Listed are all the supported getter methods to query and retrieve Network Information on your android device.

Below is an Example code of using the plugin in flutter application to retrieve android only Network info. The WifiInfoWrapper class contains methods for some of the most useful Network infomation to be requested.

import 'package:flutter/services.dart';
import 'package:flutter/material.dart';
import 'dart:async';
import 'package:wifi_info_plugin/wifi_info_plugin.dart';

void main() => runApp(MyApp());

class MyApp extends StatefulWidget {
  _MyAppState createState() => _MyAppState();

class _MyAppState extends State<MyApp> {
  WifiInfoWrapper _wifiObject;

  void initState() {

  // Platform messages are asynchronous, so we initialize in an async method.
  Future<void> initPlatformState() async {
    WifiInfoWrapper wifiObject;
    // Platform messages may fail, so we use a try/catch PlatformException.
    try {
      wifiObject = await  WifiInfoPlugin.wifiDetails;

    on PlatformException{

    if (!mounted) return;

    setState(() {

      _wifiObject = wifiObject;

  Widget build(BuildContext context) {
   String ipAddress = _wifiObject!=null?_wifiObject.ipAddress.toString():"ip";
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Plugin example app'),
        body: Center(
          child: Text('Running on:'+ ipAddress),

Below are valid getters on the WifiWrapper Class at instantiation

  • ipAddress
  • routerIp
  • dns1
  • dns2
  • bssId
  • ssid
  • macAddress
  • linkSpeed
  • signalStrength
  • frequency
  • networkId
  • connectionType
  • isHiddenSSid

1.0.6 #

  • update reop name

1.0.5 #

  • update reop location

1.0.4 #

  • update description

1.0.3 #

  • add method documentation

1.0.2 #

  • removed unused imports

1.0.1 #

  • release only supports android for accessing Network info via native code.


wifi_info_plugin_example #

Demonstrates how to use the wifi_info_plugin plugin.

Getting Started #

This project is a starting point for a Flutter application.

A few resources to get you started if this is your first Flutter project:

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

  wifi_info_plugin: ^1.0.6

2. Install it

You can install packages from the command line:

with Flutter:

$ flutter pub get

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:wifi_info_plugin/wifi_info_plugin.dart';
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

We analyzed this package on Dec 13, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.7.0
  • pana: 0.13.1+4
  • Flutter: 1.12.13+hotfix.4


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.1.0 <3.0.0
flutter 0.0.0
Transitive dependencies
collection 1.14.11 1.14.12
meta 1.1.8
sky_engine 0.0.99
typed_data 1.1.6
vector_math 2.0.8
Dev dependencies