美文网首页
Flutter如何使用本地公共项目(混合,flutter同级)以

Flutter如何使用本地公共项目(混合,flutter同级)以

作者: 禄子_c79b | 来源:发表于2023-01-16 16:14 被阅读0次

    https://www.learnfk.com/question/flutter/51238420.html

    flutter create --template=package flutter_echarts_aar
    
    dependencies:
      flutter:
        sdk: flutter
      flutter_echarts_aar:
        path: ../flutter_echarts_aar
    

    https://blog.csdn.net/weixin_43689053/article/details/89144284

    assets资源文件相互访问

    JSON文件://flutter_echarts_aar为子module名
      String path = 'packages/flutter_echarts_aar/assets/user_state.json';
      String jobsString = await rootBundle.loadString(path);
       List<dynamic> users = await jsonDecode(jobsString);
    

    详见:https://www.lmlphp.com/user/151059/article/item/3321362/

    相关文章

      网友评论

          本文标题:Flutter如何使用本地公共项目(混合,flutter同级)以

          本文链接:https://www.haomeiwen.com/subject/mgvzcdtx.html