2019年9月21日

Flutter的运行环境标识

摘要: Flutter的四种运行模式:Debug、Release、Profile和test ,在实际开发中,我们往往需要根据当前运行模式的不同,选择不同的操作,比如在Debug模式启用Log、在生产模式关闭Log。 如果你是一名Android开发者,肯定对于这个不陌生,在Android中,有一个根据grad 阅读全文

posted @ 2019-09-21 19:42 LoaderMan 阅读(1999) 评论(0) 推荐(0) 编辑

flutter 日志工具类

摘要: class LogUtils { //dart.vm.product 环境标识位 Release为true debug 为false static const bool isRelease = const bool.fromEnvironment("dart.vm.product"); static void d(String tag, Object message) { i... 阅读全文

posted @ 2019-09-21 19:40 LoaderMan 阅读(2405) 评论(0) 推荐(0) 编辑

flutter 中文件工具类

摘要: 添加依赖: 使用: 阅读全文

posted @ 2019-09-21 19:35 LoaderMan 阅读(786) 评论(0) 推荐(0) 编辑

导航