Build Status

get_wifi_info

A flutter plugin to get Wifi IP info.

Getting Started

Pubspec

  1. Add to pubspec
  get_wifi_info:
    git:
      url: https://github.com/luanvotrongdev/get_wifi_info.git
  1. run pub get

Android

  1. Add <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" /> to AndroidManifest
  2. Call API
WifiInfo info;
try {
  info = await GetWifiInfo.getWifiInfo;
} on PlatformException {
  print('Failed to get broadcast IP.');
}

iOS

  1. Call API
WifiInfo info;
try {
  info = await GetWifiInfo.getWifiInfo;
} on PlatformException {
  print('Failed to get broadcast IP.');
}

Demo

iOSAndroid

Libraries

wifi_ip