Comments (8)
I found a solution. Thanks to @wangbax from here.
Just use this SIMPLE function in your flutter windows app
import 'dart:convert';
import 'dart:io';
Future<String> getBiosID() async {
String biosID = '';
final process = await Process.start(
'wmic',
['csproduct', 'get', 'uuid'],
mode: ProcessStartMode.detachedWithStdio,
);
final result = await process.stdout.transform(utf8.decoder).toList();
for (var element in result) {
final item = element.replaceAll(RegExp('\r|\n|\\s|UUID|uuid'), '');
if (item.isNotEmpty) {
biosID = item;
}
}
return biosID;
}
This will return the exact same result that the plugin does. Plus, it also removes the terminal window pop up.
Also you don't even need to use this platform_device_id
package.
from platform_device_id.
The solution offered is valid for the following platforms: Windows, MacOS and Linux?
Is it only specifically Windows?
Tested on Windows 10/11, Ubuntu 20 and MacOS. Works well
from platform_device_id.
The solution offered is valid for the following platforms: Windows, MacOS and Linux?
Is it only specifically Windows?
- Tested on windows (working like a charm)
- I don't know about Linux
- Pretty sure it's not gonna work on macOS (edit: Working on MacOS as well)
from platform_device_id.
I also found the same problem,Currently my project is null safety!
from platform_device_id.
i have same problem!
from platform_device_id.
Same problem.
from platform_device_id.
any update?!
from platform_device_id.
The solution offered is valid for the following platforms: Windows, MacOS and Linux?
Is it only specifically Windows?
from platform_device_id.
Related Issues (20)
- build fails on Mac
- hi thanks for the package, one question
- Failure in Ubuntu 20.04
- Replace device_info with device_info_plus HOT 1
- [platform_device_id_platform_interface] Function is not implemented HOT 1
- platform_device_id_windows_plugin.dll is not found
- Returning "" on Windows platform HOT 2
- platform_device_id-1.0.1 depends on discontinued package: device_info HOT 3
- Better clarification of what is device id
- Link to repo is missing in pub.dev
- platform_device_id does not work in pure Dart
- Android Build Error HOT 4
- Get to the special characters on Windows platform HOT 5
- Getting error if imports this package HOT 2
- PlatformDeviceId.getDeviceId changes with the app release HOT 1
- Please adapt for Flutter3.10.5,Gradle8.0.1,Kotlin 1.5.20 HOT 5
- iOS pod install error HOT 5
- On the raspberry pi. It doesn't have dmi information. On the other hand we can use cat `/proc/cpuinfo | grep 'Serial'`
- platform_device_id -> org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.50 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from platform_device_id.