Giter Club home page Giter Club logo

rmbr_ip's Introduction

flutter_ip

pub version Awesome Flutter

English | 简体中文

Flutter plugin - Get External IP, Internal IP address for wifi, cellular and wired. (currently for iOS only)

Installation

add flutter_ip to your pubspec.yaml

  dependencies:
    flutter_ip: ^0.1.4

iOS Requirement - iOS Deployment Target 10.0

Import

  import 'package:flutter_ip/flutter_ip.dart';

Usage

Get External IP

  String external = await FlutterIp.externalIP; 
  // e.g. 113.139.104.65 or ""

Get Internal IP

  String internal = await FlutterIp.internalIP; 
  // e.g. 192.168.0.102 or ""

Get Network Type

  String type = await FlutterIp.networkType; // e.g. wifi
Network Type

Type: String

Value: wifi, wired, cellular

Example

Please check example app using Xcode.

Getting Started

This project is a starting point for a Flutter plug-in package, a specialized package that includes platform-specific implementation code for Android and/or iOS.

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

rmbr_ip's People

Contributors

nikli2009 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

rmbr_ip's Issues

- `Ipify` does not specify a Swift version and none of the targets (`Runner`) integrating it have the `SWIFT_VERSION` attribute set. Please contact the author or set the `SWIFT_VERSION` attribute in at least one of the targets that integrate this pod. - `flutter_ip` does not specify a Swift version and none of the targets (`Runner`) integrating it have the `SWIFT_VERSION` attribute set. Please contact the author or set the `SWIFT_VERSION` attribute in at least one of the targets that integrate this pod.

Missing Plugin exception

Hi There,

I tried to call FlutterIp.externalIP and got this exception

[ERROR:flutter/lib/ui/ui_dart_state.cc(157)] Unhandled Exception: MissingPluginException(No implementation found for method getExternalIP on channel flutter_ip)

Can you please help me to solve this issue?

thanks

Null Safety

The package needs minor changes to conform to Null Safety requirements. Are you planning to update the package?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.