ip_location 1.0.1 copy "ip_location: ^1.0.1" to clipboard
ip_location: ^1.0.1 copied to clipboard

已弃用的 IP 地址查询插件,请改用 qs_ip_location。

example/lib/main.dart

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

void main() {
  runApp(const MyApp());
}

class MyApp extends StatefulWidget {
  const MyApp({super.key});

  @override
  State<MyApp> createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  @override
  void initState() {
    super.initState();
    initPlatformState();
  }

  // Platform messages are asynchronous, so we initialize in an async method.
  Future<void> initPlatformState() async {
    // Platform messages may fail, so we use a try/catch PlatformException.
    // We also handle the message potentially returning null.
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(title: const Text('Plugin example app')),
        body: Center(child: Text('Running on: \n')),
      ),
    );
  }
}
0
likes
125
points
104
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

已弃用的 IP 地址查询插件,请改用 qs_ip_location。

Homepage

License

MIT (license)

Dependencies

flutter, json_annotation, net_dio_request, plugin_platform_interface, qs_storage_tool

More

Packages that depend on ip_location

Packages that implement ip_location