admin
2022-05-12 fa705507ba574c857b1667553737d23b1b7ff495
src/main/resources/code/flutter_module/lib/utils/ui_utils.dart
@@ -18,6 +18,24 @@
MethodChannel uiMethodChannel = UIMethodChannel('com.yeshi.video/ui');
setStatusBarLight() {
  uiMethodChannel.invokeMethod("setStatusBarLight");
}
setStatusBarDark() {
  uiMethodChannel.invokeMethod("setStatusBarDark");
}
//跳转页面
jumpAppPage(String type, Map<String, dynamic>? params) {
  Map<String, dynamic> ps = {"type": type};
  if (params != null) {
    ps["params"] = params;
  }
  //跳转应用界面
  uiMethodChannel.invokeMethod("jumpAppPage", ps);
}
///包裹整个页面,下拉刷新,,上拉加载的默认配置
Widget getBasePage(Widget widget) {
  return RefreshConfiguration(