cellular_info 1.0.6
cellular_info: ^1.0.6 copied to clipboard
A Flutter plugin that provides access to 5G NR (New Radio) information on Android devices using TelephonyManager.requestCellInfoUpdate(). Delivers real-time cell info through a Dart Stream.
import 'package:flutter/material.dart';
import 'dart:async';
import 'package:flutter/services.dart';
import 'package:cellular_info/cellular_info.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatefulWidget {
const MyApp({super.key});
@override
State<MyApp> createState() => _MyAppState();
}
class _MyAppState extends State<MyApp> {
final _cellularInfoPlugin = CellularInfo();
@override
void initState() {
super.initState();
initPlatformState();
}
// Platform messages are asynchronous, so we initialize in an async method.
Future<void> initPlatformState() async {
}
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(
title: const Text('Plugin example app'),
),
body: Center(
child: Text('Running on: \n'),
),
),
);
}
}