From 6b3ebc36ca90917286e434a103ad3eb653fafbd6 Mon Sep 17 00:00:00 2001 From: w-R <953969641@qq.com> Date: Wed, 29 Jun 2022 16:17:34 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/{area_code => map_style}/area_code_full.json | 0 lib/community/community_view/class_details_video.dart | 6 ++++-- lib/login/phone_address_page.dart | 2 +- pubspec.yaml | 1 - 4 files changed, 5 insertions(+), 4 deletions(-) rename assets/{area_code => map_style}/area_code_full.json (100%) diff --git a/assets/area_code/area_code_full.json b/assets/map_style/area_code_full.json similarity index 100% rename from assets/area_code/area_code_full.json rename to assets/map_style/area_code_full.json diff --git a/lib/community/community_view/class_details_video.dart b/lib/community/community_view/class_details_video.dart index 62611fde..bbabd49d 100644 --- a/lib/community/community_view/class_details_video.dart +++ b/lib/community/community_view/class_details_video.dart @@ -78,8 +78,10 @@ class ClassDetailsVideoState extends State { //自动播放 looping: false, //循环播放 - allowFullScreen: false, - // 允许的屏幕睡眠 + allowFullScreen: true, + // 允许全屏 + allowedScreenSleep: true, + //允许屏幕休眠 materialProgressColors: chewie.ChewieProgressColors( playedColor: Colors.white, handleColor: Colors.white, diff --git a/lib/login/phone_address_page.dart b/lib/login/phone_address_page.dart index b7529de7..cd7e50ad 100644 --- a/lib/login/phone_address_page.dart +++ b/lib/login/phone_address_page.dart @@ -27,7 +27,7 @@ class _PhoneAddressPage extends State { void areaCode() async { var value = - await rootBundle.loadString('assets/area_code/area_code_full.json'); + await rootBundle.loadString('assets/map_style/area_code_full.json'); areaMap = jsonDecode(value); areaMap.forEach((key, value) { areaList.add(key); diff --git a/pubspec.yaml b/pubspec.yaml index b6225673..e29f45e9 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -111,7 +111,6 @@ flutter: - assets/image/2x/ - assets/image/3x/ - assets/map_style/ - - asstes/area_code/ - assets/riv/ - assets/svg/ # - assets/fonts/