phone_info 0.0.1 copy "phone_info: ^0.0.1" to clipboard
phone_info: ^0.0.1 copied to clipboard

A powerful Flutter plugin to fetch detailed phone hardware and network information, including device architecture (CPU, ABI), network status (IP, connection type), and other critical metrics—ideal for [...]

example/lib/main.dart

import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:phone_info/phone_info.dart';

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

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(title: Text('Phone Info Plugin')),
        body: Center(
          child: ElevatedButton(
            onPressed: () async {
              //give permission if required
              //   await Permission.phone.request();
              final info = await PhoneInfoPlugin.getPhoneInfo();
              final version = await PhoneInfoPlugin.getPlatformVersion();
              final deviceName = await PhoneInfoPlugin.getDeviceId();
              final storage = await PhoneInfoPlugin.getAvailableStorage();

              if (kDebugMode) {
                print('$info , $version , $deviceName , $storage');
              }
            },
            child: Text('Get Phone Info'),
          ),
        ),
      ),
    );
  }
}
4
likes
150
points
5
downloads

Publisher

verified publishersyedbipul.me

Weekly Downloads

A powerful Flutter plugin to fetch detailed phone hardware and network information, including device architecture (CPU, ABI), network status (IP, connection type), and other critical metrics—ideal for debugging, analytics, and dynamic feature handling.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, flutter_web_plugins, plugin_platform_interface, web

More

Packages that depend on phone_info

Packages that implement phone_info