Selaa lähdekoodia

replace rootbundle

Melon 1 vuosi sitten
vanhempi
commit
0102d0cbd9
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      lib/view/3d_view/measure_3d_view.dart

+ 1 - 1
lib/view/3d_view/measure_3d_view.dart

@@ -46,7 +46,7 @@ class _Measure3DViewState extends State<Measure3DView> {
 
   Future<String> _loadHTMLFromAssets(String path) async {
     try {
-      return await rootBundle.loadString(path);
+      return await DefaultAssetBundle.of(context).loadString(path);
     } catch (e) {
       return Future.error(e);
     }