Ronadlo7
Ronadlo7
建议在不同的frament中动态的计算状态栏高度,然后给顶部布局设置padding
thank you ,I reversed the order ,but have other problem ,flutter module bale a aar package use fat-aar ,then copy aar package to Android project and run App, but there...
Haha, then you solved it, please tell me,Are you also in Guangzhou?
Can you communicate?
就是最新的呀
1.使用版本: flutter_boost: git: url: 'https://github.com/alibaba/flutter_boost.git' ref: 'v3.0-preview.8' 2.android 中通过: FlutterBoostRouteOptions options = new FlutterBoostRouteOptions.Builder() .pageName("secondPage") .arguments(new HashMap()) .requestCode(1111) .build(); FlutterBoost.instance().open(options); 3.flutter 中main.dart中: //在runApp之前确保BoostFlutterBinding初始化 CustomFlutterBinding(); WidgetsFlutterBinding.ensureInitialized(); //限制横屏 SystemChrome.setPreferredOrientations([ DeviceOrientation.portraitUp, //只能纵向 DeviceOrientation.portraitDown,...
其实可以通过修改FlutterBoostActivity的主题设置 true 但是这种情况第一次跳转到flutter页面时可以的,但是返回重新进入flutter就不行了,主要原因是 if (Platform.isAndroid) { SystemUiOverlayStyle systemUiOverlayStyle = SystemUiOverlayStyle( statusBarColor: Colors.transparent, ); SystemChrome.setSystemUIOverlayStyle(systemUiOverlayStyle); } 这段之后只会执行一次,第二次就不执行导致无效,有没有方法解决