diff --git a/CHANGELOG.md b/CHANGELOG.md index 98373b5..6e8fd94 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## 2.1.4 +* 修复PC端最近文件显示两个图片标签的问题 +* 修复PC端侧栏异常的问题 ## 2.1.3 * 更改外部链接跳转方式 diff --git a/lib/config/config.dart b/lib/config/config.dart index 5da37d9..f6bc4f1 100644 --- a/lib/config/config.dart +++ b/lib/config/config.dart @@ -17,5 +17,8 @@ class Config { static String package; static String packageConst = 'packages/speed_share/'; + + // Log.e(const String.fromEnvironment('APP_CHANNEL')); + // Log.e(const String.fromEnvironment('OTHER_VAR')); static String versionName = 'v2.1.3'; } diff --git a/lib/generated/intl/messages_es.dart b/lib/generated/intl/messages_es.dart index 0df63e3..d4637ff 100644 --- a/lib/generated/intl/messages_es.dart +++ b/lib/generated/intl/messages_es.dart @@ -24,6 +24,7 @@ class MessageLookup extends MessageLookupByLibrary { "aboutSpeedShare" : MessageLookupByLibrary.simpleMessage("Acerca de Speed Share"), "apk" : MessageLookupByLibrary.simpleMessage("Apk"), "autoDownload" : MessageLookupByLibrary.simpleMessage("Descarga automática"), + "chatWindow" : MessageLookupByLibrary.simpleMessage("Ventana de chat"), "clipboardshare" : MessageLookupByLibrary.simpleMessage("Compartir portapapeles"), "common" : MessageLookupByLibrary.simpleMessage("Común"), "currenVersion" : MessageLookupByLibrary.simpleMessage("Versión actual"), @@ -32,17 +33,26 @@ class MessageLookup extends MessageLookupByLibrary { "directory" : MessageLookupByLibrary.simpleMessage("Directorio"), "doc" : MessageLookupByLibrary.simpleMessage("Documento"), "downlaodPath" : MessageLookupByLibrary.simpleMessage("Ruta de descarga"), + "downloadTip" : MessageLookupByLibrary.simpleMessage("SpeedShare también es compatible con Windows, macOS y Linux"), "image" : MessageLookupByLibrary.simpleMessage("Imagen"), + "inputConnect" : MessageLookupByLibrary.simpleMessage("Ingresar conexión"), "lang" : MessageLookupByLibrary.simpleMessage("Idioma"), + "log" : MessageLookupByLibrary.simpleMessage("Registro"), "messageNote" : MessageLookupByLibrary.simpleMessage("Vibrar al recibir un mensaje"), "music" : MessageLookupByLibrary.simpleMessage("Música"), + "noMessageTip" : MessageLookupByLibrary.simpleMessage("Actualmente no hay mensajes, haga clic para entrar en la lista de mensajes"), "openSource" : MessageLookupByLibrary.simpleMessage("Código abierto"), - "otherVersion" : MessageLookupByLibrary.simpleMessage("Descargar la otra versión"), - "recentFile" : MessageLookupByLibrary.simpleMessage("Archivo reciente"), - "recentImg" : MessageLookupByLibrary.simpleMessage("Imagen reciente"), - "remoteAccessDes" : MessageLookupByLibrary.simpleMessage("Puede gestionar el archivo abriendo esta URL con el navegador."), - "remoteAccessFile" : MessageLookupByLibrary.simpleMessage("Acceso remoto al archivo local"), - "ui" : MessageLookupByLibrary.simpleMessage("Diseñador de IU"), + "otherVersion" : MessageLookupByLibrary.simpleMessage("Descargar otra versión"), + "privacyAgreement" : MessageLookupByLibrary.simpleMessage("Acuerdo de privacidad"), + "qrTips" : MessageLookupByLibrary.simpleMessage("Deslice hacia un lado para cambiar de IP"), + "recentFile" : MessageLookupByLibrary.simpleMessage("Archivos recientes"), + "recentImg" : MessageLookupByLibrary.simpleMessage("Imágenes recientes"), + "remoteAccessDes" : MessageLookupByLibrary.simpleMessage("Puede administrar los archivos locales abriendo esta IP en el navegador."), + "remoteAccessFile" : MessageLookupByLibrary.simpleMessage("Archivo local de acceso remoto"), + "scan" : MessageLookupByLibrary.simpleMessage("Escanear código QR"), + "setting" : MessageLookupByLibrary.simpleMessage("Ajustes"), + "theTermsOfService" : MessageLookupByLibrary.simpleMessage("Términos de servicio"), + "ui" : MessageLookupByLibrary.simpleMessage("Diseñador de interfaz"), "unknownFile" : MessageLookupByLibrary.simpleMessage("Archivo desconocido"), "video" : MessageLookupByLibrary.simpleMessage("Vídeo"), "zip" : MessageLookupByLibrary.simpleMessage("Zip") diff --git a/lib/l10n/intl_es.arb b/lib/l10n/intl_es.arb index 4b36f69..f9d94d0 100644 --- a/lib/l10n/intl_es.arb +++ b/lib/l10n/intl_es.arb @@ -1,21 +1,31 @@ { "common": "Común", + "setting": "Ajustes", "downlaodPath": "Ruta de descarga", "autoDownload": "Descarga automática", "clipboardshare": "Compartir portapapeles", "messageNote": "Vibrar al recibir un mensaje", "aboutSpeedShare": "Acerca de Speed Share", "currenVersion": "Versión actual", - "otherVersion": "Descargar la otra versión", + "otherVersion": "Descargar otra versión", + "downloadTip": "SpeedShare también es compatible con Windows, macOS y Linux", "lang": "Idioma", + "chatWindow": "Ventana de chat", "developer": "Desarrollador", "openSource": "Código abierto", - "ui": "Diseñador de IU", - "recentFile": "Archivo reciente", - "recentImg": "Imagen reciente", + "noMessageTip": "Actualmente no hay mensajes, haga clic para entrar en la lista de mensajes", + "inputConnect": "Ingresar conexión", + "scan": "Escanear código QR", + "log": "Registro", + "theTermsOfService": "Términos de servicio", + "privacyAgreement": "Acuerdo de privacidad", + "qrTips": "Deslice hacia un lado para cambiar de IP", + "ui": "Diseñador de interfaz", + "recentFile": "Archivos recientes", + "recentImg": "Imágenes recientes", "currentRoom": "Sala de chat", - "remoteAccessFile": "Acceso remoto al archivo local", - "remoteAccessDes": "Puede gestionar el archivo abriendo esta URL con el navegador.", + "remoteAccessFile": "Archivo local de acceso remoto", + "remoteAccessDes": "Puede administrar los archivos locales abriendo esta IP en el navegador.", "directory": "Directorio", "unknownFile": "Archivo desconocido", "zip": "Zip", diff --git a/lib/modules/adapive_entry.dart b/lib/modules/adapive_entry.dart index 8e89ec9..355c720 100644 --- a/lib/modules/adapive_entry.dart +++ b/lib/modules/adapive_entry.dart @@ -46,91 +46,13 @@ class _AdaptiveEntryPointState extends State { Widget build(BuildContext context) { if (ResponsiveWrapper.of(context).isDesktop) { page ??= GetPlatform.isWeb ? 1 : 0; - return Scaffold( - body: SafeArea( - left: false, - child: Column( - children: [ - Container( - height: 1.w, - color: Theme.of(context).primaryColor, - ), - Expanded( - child: Row( - children: [ - DesktopDrawer( - value: page, - onChange: (value) { - page = value; - setState(() {}); - }, - ), - GetBuilder(builder: (controller) { - if (GetPlatform.isWeb) { - return Expanded( - child: [ - const SizedBox(), - Container( - color: Colors.white, - child: Padding( - padding: EdgeInsets.symmetric(horizontal: 8.w), - child: const ShareChatV2(), - ), - ), - for (int i = 0; - i < controller.connectDevice.length; - i++) - Builder( - builder: (context) { - Uri uri = Uri.tryParse( - controller.connectDevice[i].url, - ); - String addr = 'http://${uri.host}:20000'; - return FileManager( - address: addr, - usePackage: true, - path: controller - .connectDevice[i].deviceType == - desktop - ? '/User' - : '/sdcard', - ); - }, - ), - const SizedBox(), - const SizedBox(), - ][page], - ); - } - return Expanded( - child: [ - HomePage( - onMessageWindowTap: () { - page = 1; - setState(() {}); - }, - ), - Container( - color: Colors.white, - child: Padding( - padding: EdgeInsets.symmetric(horizontal: 8.w), - child: const ShareChatV2(), - ), - ), - const FilePage(), - const SettingPage(), - ][page], - ); - }), - ], - ), - ), - ], - ), - ), - ); + return buildDesktop(context); } page ??= 0; + return buildMobile(); + } + + Scaffold buildMobile() { return Scaffold( body: SafeArea( child: Column( @@ -174,4 +96,105 @@ class _AdaptiveEntryPointState extends State { ), ); } + + Scaffold buildDesktop(BuildContext context) { + return Scaffold( + body: SafeArea( + left: false, + child: Column( + children: [ + Container( + height: 1.w, + color: Theme.of(context).primaryColor, + ), + Expanded( + child: Row( + children: [ + DesktopDrawer( + value: page, + onChange: (value) { + page = value; + setState(() {}); + }, + ), + GetBuilder(builder: (controller) { + if (GetPlatform.isWeb) { + return Expanded( + child: [ + const SizedBox(), + Container( + color: Colors.white, + child: Padding( + padding: EdgeInsets.symmetric(horizontal: 8.w), + child: const ShareChatV2(), + ), + ), + for (int i = 0; + i < controller.connectDevice.length; + i++) + Builder( + builder: (context) { + Uri uri = Uri.tryParse( + controller.connectDevice[i].url, + ); + String addr = 'http://${uri.host}:20000'; + return FileManager( + address: addr, + usePackage: true, + path: + controller.connectDevice[i].deviceType == + desktop + ? '/User' + : '/sdcard', + ); + }, + ), + const SizedBox(), + const SizedBox(), + ][page], + ); + } + return Expanded( + child: [ + HomePage( + onMessageWindowTap: () { + page = 1; + setState(() {}); + }, + ), + Container( + color: Colors.white, + child: Padding( + padding: EdgeInsets.symmetric(horizontal: 8.w), + child: const ShareChatV2(), + ), + ), + for (int i = 0; + i < controller.connectDevice.length; + i++) + Builder( + builder: (context) { + Uri uri = Uri.tryParse( + controller.connectDevice[i].url, + ); + String addr = 'http://${uri.host}:20000'; + return FileManager( + address: addr, + usePackage: true, + ); + }, + ), + const FilePage(), + const SettingPage(), + ][page], + ); + }), + ], + ), + ), + ], + ), + ), + ); + } } diff --git a/lib/modules/file/file_page.dart b/lib/modules/file/file_page.dart index 43dd1df..a30e4d0 100644 --- a/lib/modules/file/file_page.dart +++ b/lib/modules/file/file_page.dart @@ -163,7 +163,7 @@ class _FilePageState extends State { ), SizedBox( width: width, - child: imgFile(context), + child: apkFile(context), ), ], ); diff --git a/pubspec.lock b/pubspec.lock index a1c8365..13b912f 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -14,14 +14,14 @@ packages: dependency: transitive description: name: android_intent_plus - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted version: "1.0.2" animations: dependency: "direct main" description: name: animations - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted version: "2.0.3" app_manager: @@ -46,154 +46,154 @@ packages: dependency: "direct main" description: name: archive - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted version: "3.3.1" args: dependency: transitive description: name: args - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted version: "2.3.1" async: dependency: transitive description: name: async - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted version: "2.8.2" auth_header: dependency: transitive description: name: auth_header - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted version: "3.0.1" better_player: dependency: "direct main" description: name: better_player - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted version: "0.0.83" boolean_selector: dependency: transitive description: name: boolean_selector - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted version: "2.1.0" characters: dependency: transitive description: name: characters - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted version: "1.2.0" charcode: dependency: transitive description: name: charcode - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted version: "1.3.1" clock: dependency: transitive description: name: clock - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted version: "1.1.0" collection: dependency: transitive description: name: collection - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted version: "1.16.0" convert: dependency: transitive description: name: convert - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted version: "3.0.2" cross_file: dependency: transitive description: name: cross_file - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted version: "0.3.3+1" crypto: dependency: transitive description: name: crypto - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted version: "3.0.2" csslib: dependency: transitive description: name: csslib - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted version: "0.17.2" cupertino_icons: dependency: transitive description: name: cupertino_icons - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted version: "1.0.5" desktop_drop: dependency: "direct main" description: name: desktop_drop - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted version: "0.3.3" dio: dependency: "direct main" description: name: dio - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted version: "4.0.6" dio_range_download: dependency: "direct main" description: name: dio_range_download - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted version: "1.0.1" equatable: dependency: transitive description: name: equatable - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted version: "2.0.3" fake_async: dependency: transitive description: name: fake_async - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted version: "1.3.0" ffi: dependency: transitive description: name: ffi - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted version: "1.2.1" file: dependency: transitive description: name: file - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted version: "6.1.2" file_manager_view: @@ -209,21 +209,21 @@ packages: dependency: "direct main" description: name: file_picker - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted version: "3.0.4" file_selector: dependency: "direct main" description: name: file_selector - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted version: "0.8.4+3" file_selector_macos: dependency: transitive description: name: file_selector_macos - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted version: "0.8.2+2" file_selector_nightmare: @@ -239,21 +239,21 @@ packages: dependency: transitive description: name: file_selector_platform_interface - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted version: "2.1.0" file_selector_web: dependency: transitive description: name: file_selector_web - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted version: "0.8.1+5" file_selector_windows: dependency: transitive description: name: file_selector_windows - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted version: "0.8.2+2" flutter: @@ -265,7 +265,7 @@ packages: dependency: "direct dev" description: name: flutter_lints - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted version: "2.0.1" flutter_localizations: @@ -277,30 +277,30 @@ packages: dependency: "direct main" description: name: flutter_markdown - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted version: "0.6.10+3" flutter_plugin_android_lifecycle: dependency: transitive description: name: flutter_plugin_android_lifecycle - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted version: "2.0.7" flutter_spinkit: dependency: transitive description: name: flutter_spinkit - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted version: "4.1.2+1" flutter_svg: dependency: "direct main" description: name: flutter_svg - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted - version: "1.1.1+1" + version: "1.1.3" flutter_test: dependency: "direct dev" description: flutter @@ -315,28 +315,28 @@ packages: dependency: transitive description: name: flutter_widget_from_html_core - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted version: "0.8.5+3" fwfh_text_style: dependency: transitive description: name: fwfh_text_style - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted - version: "2.7.3+2" + version: "2.22.08" get: dependency: "direct main" description: name: get - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted version: "4.6.5" get_server: dependency: "direct main" description: name: get_server - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted version: "1.2.1" global_repository: @@ -352,98 +352,98 @@ packages: dependency: transitive description: name: hive - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted version: "2.2.3" html: dependency: transitive description: name: html - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted version: "0.15.0" http: dependency: transitive description: name: http - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted - version: "0.13.4" + version: "0.13.5" http_methods: dependency: transitive description: name: http_methods - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted version: "1.1.0" http_parser: dependency: transitive description: name: http_parser - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted version: "4.0.1" image_picker: dependency: "direct main" description: name: image_picker - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted version: "0.8.5+3" image_picker_android: dependency: transitive description: name: image_picker_android - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted - version: "0.8.5+1" + version: "0.8.5+2" image_picker_for_web: dependency: transitive description: name: image_picker_for_web - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted version: "2.1.8" image_picker_ios: dependency: transitive description: name: image_picker_ios - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted version: "0.8.5+6" image_picker_platform_interface: dependency: transitive description: name: image_picker_platform_interface - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted - version: "2.5.0" + version: "2.6.1" intl: dependency: "direct main" description: name: intl - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted version: "0.17.0" jaguar_jwt: dependency: transitive description: name: jaguar_jwt - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted version: "3.0.0" js: dependency: transitive description: name: js - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted version: "0.6.4" lints: dependency: transitive description: name: lints - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted version: "2.0.0" logger_view: @@ -459,49 +459,49 @@ packages: dependency: transitive description: name: markdown - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted version: "5.0.0" matcher: dependency: transitive description: name: matcher - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted version: "0.12.11" material_color_utilities: dependency: transitive description: name: material_color_utilities - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted version: "0.1.4" meta: dependency: transitive description: name: meta - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted version: "1.7.0" mime: dependency: transitive description: name: mime - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted version: "1.0.2" mime_type: dependency: "direct main" description: name: mime_type - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted version: "1.0.0" mobile_scanner: dependency: "direct main" description: name: mobile_scanner - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted version: "2.0.0" multicast: @@ -517,175 +517,175 @@ packages: dependency: "direct main" description: name: open_file - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted version: "3.2.1" path: dependency: "direct main" description: name: path - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted version: "1.8.1" path_drawing: dependency: transitive description: name: path_drawing - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted - version: "1.0.0" + version: "1.0.1" path_parsing: dependency: transitive description: name: path_parsing - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted - version: "1.0.0" + version: "1.0.1" path_provider: dependency: "direct main" description: name: path_provider - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted version: "2.0.11" path_provider_android: dependency: transitive description: name: path_provider_android - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted - version: "2.0.16" + version: "2.0.17" path_provider_ios: dependency: transitive description: name: path_provider_ios - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted - version: "2.0.10" + version: "2.0.11" path_provider_linux: dependency: transitive description: name: path_provider_linux - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted version: "2.1.7" path_provider_macos: dependency: transitive description: name: path_provider_macos - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted version: "2.0.6" path_provider_platform_interface: dependency: transitive description: name: path_provider_platform_interface - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted version: "2.0.4" path_provider_windows: dependency: transitive description: name: path_provider_windows - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted version: "2.0.7" pedantic: dependency: transitive description: name: pedantic - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted version: "1.11.1" permission_handler: dependency: transitive description: name: permission_handler - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted version: "6.0.0" permission_handler_platform_interface: dependency: transitive description: name: permission_handler_platform_interface - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted version: "3.7.0" petitparser: dependency: transitive description: name: petitparser - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted version: "5.0.0" platform: dependency: transitive description: name: platform - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted version: "3.1.0" platform_info: dependency: transitive description: name: platform_info - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted version: "3.2.0" plugin_platform_interface: dependency: transitive description: name: plugin_platform_interface - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted version: "2.1.2" process: dependency: transitive description: name: process - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted version: "4.2.4" qr: dependency: transitive description: name: qr - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted version: "2.1.0" qr_flutter: dependency: "direct main" description: name: qr_flutter - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted version: "4.0.0" quiver: dependency: transitive description: name: quiver - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted version: "3.1.0" responsive_framework: dependency: "direct main" description: name: responsive_framework - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted version: "0.2.0" sa_v1_migration: dependency: transitive description: name: sa_v1_migration - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted version: "1.1.2" screen_retriever: dependency: transitive description: name: screen_retriever - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted version: "0.1.2" settings: @@ -701,21 +701,21 @@ packages: dependency: "direct main" description: name: shelf - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted - version: "1.3.1" + version: "1.3.2" shelf_proxy: dependency: "direct main" description: name: shelf_proxy - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted version: "1.0.2" shelf_router: dependency: "direct main" description: name: shelf_router - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted version: "1.1.3" shelf_static: @@ -731,21 +731,21 @@ packages: dependency: transitive description: name: shortcut - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted version: "0.0.1" signale: dependency: "direct main" description: name: signale - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted version: "0.0.7" simple_animations: dependency: "direct main" description: name: simple_animations - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted version: "2.5.1" sky_engine: @@ -757,203 +757,203 @@ packages: dependency: transitive description: name: source_span - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted version: "1.8.2" stack_trace: dependency: transitive description: name: stack_trace - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted version: "1.10.0" stream_channel: dependency: transitive description: name: stream_channel - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted version: "2.1.0" string_scanner: dependency: transitive description: name: string_scanner - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted version: "1.1.0" supercharged: dependency: transitive description: name: supercharged - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted version: "1.12.0" supercharged_dart: dependency: transitive description: name: supercharged_dart - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted version: "1.4.0" synchronized: dependency: transitive description: name: synchronized - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted version: "3.0.0+2" term_glyph: dependency: transitive description: name: term_glyph - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted version: "1.2.0" test_api: dependency: transitive description: name: test_api - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted version: "0.4.9" typed_data: dependency: transitive description: name: typed_data - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted version: "1.3.1" url_launcher: dependency: "direct main" description: name: url_launcher - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted version: "6.1.5" url_launcher_android: dependency: transitive description: name: url_launcher_android - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted version: "6.0.17" url_launcher_ios: dependency: transitive description: name: url_launcher_ios - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted version: "6.0.17" url_launcher_linux: dependency: transitive description: name: url_launcher_linux - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted version: "3.0.1" url_launcher_macos: dependency: transitive description: name: url_launcher_macos - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted version: "3.0.1" url_launcher_platform_interface: dependency: transitive description: name: url_launcher_platform_interface - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted version: "2.1.0" url_launcher_web: dependency: transitive description: name: url_launcher_web - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted - version: "2.0.12" + version: "2.0.13" url_launcher_windows: dependency: transitive description: name: url_launcher_windows - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted version: "3.0.1" vector_math: dependency: transitive description: name: vector_math - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted version: "2.1.2" visibility_detector: dependency: transitive description: name: visibility_detector - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted version: "0.3.3" wakelock: dependency: transitive description: name: wakelock - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted version: "0.6.2" wakelock_macos: dependency: transitive description: name: wakelock_macos - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted version: "0.4.0" wakelock_platform_interface: dependency: transitive description: name: wakelock_platform_interface - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted version: "0.3.0" wakelock_web: dependency: transitive description: name: wakelock_web - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted version: "0.4.0" wakelock_windows: dependency: transitive description: name: wakelock_windows - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted version: "0.2.0" win32: dependency: transitive description: name: win32 - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted version: "2.6.1" window_manager: dependency: "direct main" description: name: window_manager - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted version: "0.2.5" xdg_directories: dependency: transitive description: name: xdg_directories - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted version: "0.2.0+1" xml: dependency: transitive description: name: xml - url: "https://pub.flutter-io.cn" + url: "https://pub.dartlang.org" source: hosted version: "6.1.0" xterm: diff --git a/scripts/build/build_apk_split_abi.sh b/scripts/build/build_apk_split_abi.sh index 3d858b7..f259e2b 100755 --- a/scripts/build/build_apk_split_abi.sh +++ b/scripts/build/build_apk_split_abi.sh @@ -1,7 +1,7 @@ # !/usr/bin/env sh # 分abi打包脚本 # ./scripts/build/build_apk_split_abi.sh -flutter build apk --split-per-abi +flutter build apk --dart-define=APP_CHANNEL=www.baidu.com --dart-define=OTHER_VAR=这是测试环境 --split-per-abi LOCAL_DIR=$( cd $(dirname $0) pwd diff --git a/windows/runner/main.cpp b/windows/runner/main.cpp index 539ae4e..36bbc1e 100644 --- a/windows/runner/main.cpp +++ b/windows/runner/main.cpp @@ -27,7 +27,7 @@ int APIENTRY wWinMain(_In_ HINSTANCE instance, _In_opt_ HINSTANCE prev, FlutterWindow window(project); Win32Window::Point origin(10, 10); Win32Window::Size size(800, 600); - if (!window.CreateAndShow(L"speed_share", origin, size)) { + if (!window.CreateAndShow(L"", origin, size)) { return EXIT_FAILURE; } window.SetQuitOnClose(true);