Refactor loadOperatingSystems and getIcons functions for better error handling and code clarity.
fixes:
1.Wrapped getIcons() in try-catch to handle AssetManifest.json load failures gracefully
2.Added await to getIcons() call for proper async error handling
3.Added try-catch around PackageInfo.fromPlatform() (can also fail with sudo)
4.Uses debugPrint for warnings instead of crashing
|
||
|---|---|---|
| .. | ||
| src | ||
| main.dart | ||