feat: add device_info_plus
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import 'package:device_info_plus/device_info_plus.dart';
|
||||
import 'package:flutter/cupertino.dart';
|
||||
import 'package:flutter/scheduler.dart';
|
||||
import 'package:get/get.dart';
|
||||
@@ -13,6 +14,12 @@ void main() async{
|
||||
// must wait for MMKV to finish initialization
|
||||
final rootDir = await MMKV.initialize();
|
||||
print('MMKV for flutter with rootDir = $rootDir');
|
||||
|
||||
final deviceInfoPlugin = DeviceInfoPlugin();
|
||||
final deviceInfo = await deviceInfoPlugin.deviceInfo;
|
||||
final allInfo = deviceInfo.data;
|
||||
print('Device info: $allInfo');
|
||||
|
||||
runApp(const MyApp());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user