SingleChildScrollView( child: FutureBuilder( builder: (context, state) { if (state.connectionState == ConnectionState.done) { return Text(state.data); } else { return SpinKitRing(color: Colors.red); } }, future: rootBundle .loadString("packages/app_name/assets/policy/policy_en.txt"), ), )
flutter 加载显示txt
最新推荐文章于 2023-07-17 11:14:55 发布