Parcourir la source

replace rootbundle

Melon il y a 1 an
Parent
commit
0102d0cbd9
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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);
     }