Compare commits

...

2 Commits

Author SHA1 Message Date
745e5cac7f 12 2024-09-06 10:39:59 +08:00
694b9d198d slider has bug 2024-09-06 10:34:04 +08:00
8 changed files with 19 additions and 4 deletions

View File

@ -1,4 +1,5 @@
# This is a generated file; do not edit or check into version control.
pass_track=G:\\workplace\\cpnav\\plugins\\pass_track\\
path_provider=C:\\Users\\Adminis\\AppData\\Local\\Pub\\Cache\\hosted\\pub.flutter-io.cn\\path_provider-2.1.4\\
path_provider_android=C:\\Users\\Adminis\\AppData\\Local\\Pub\\Cache\\hosted\\pub.flutter-io.cn\\path_provider_android-2.2.10\\
path_provider_foundation=C:\\Users\\Adminis\\AppData\\Local\\Pub\\Cache\\hosted\\pub.flutter-io.cn\\path_provider_foundation-2.4.0\\

View File

@ -1 +1 @@
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"path_provider_foundation","path":"C:\\\\Users\\\\Adminis\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.flutter-io.cn\\\\path_provider_foundation-2.4.0\\\\","shared_darwin_source":true,"native_build":true,"dependencies":[]}],"android":[{"name":"pass_track","path":"G:\\\\workplace\\\\cpnav\\\\plugins\\\\pass_track\\\\","native_build":true,"dependencies":[]},{"name":"path_provider_android","path":"C:\\\\Users\\\\Adminis\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.flutter-io.cn\\\\path_provider_android-2.2.10\\\\","native_build":true,"dependencies":[]}],"macos":[{"name":"path_provider_foundation","path":"C:\\\\Users\\\\Adminis\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.flutter-io.cn\\\\path_provider_foundation-2.4.0\\\\","shared_darwin_source":true,"native_build":true,"dependencies":[]}],"linux":[{"name":"path_provider_linux","path":"C:\\\\Users\\\\Adminis\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.flutter-io.cn\\\\path_provider_linux-2.2.1\\\\","native_build":false,"dependencies":[]}],"windows":[{"name":"pass_track","path":"G:\\\\workplace\\\\cpnav\\\\plugins\\\\pass_track\\\\","native_build":true,"dependencies":[]},{"name":"path_provider_windows","path":"C:\\\\Users\\\\Adminis\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.flutter-io.cn\\\\path_provider_windows-2.3.0\\\\","native_build":false,"dependencies":[]}],"web":[]},"dependencyGraph":[{"name":"pass_track","dependencies":[]},{"name":"path_provider","dependencies":["path_provider_android","path_provider_foundation","path_provider_linux","path_provider_windows"]},{"name":"path_provider_android","dependencies":[]},{"name":"path_provider_foundation","dependencies":[]},{"name":"path_provider_linux","dependencies":[]},{"name":"path_provider_windows","dependencies":[]}],"date_created":"2024-09-06 09:19:51.601720","version":"3.24.2","swift_package_manager_enabled":false}
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"path_provider_foundation","path":"C:\\\\Users\\\\Adminis\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.flutter-io.cn\\\\path_provider_foundation-2.4.0\\\\","shared_darwin_source":true,"native_build":true,"dependencies":[]}],"android":[{"name":"pass_track","path":"G:\\\\workplace\\\\cpnav\\\\plugins\\\\pass_track\\\\","native_build":true,"dependencies":[]},{"name":"path_provider_android","path":"C:\\\\Users\\\\Adminis\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.flutter-io.cn\\\\path_provider_android-2.2.10\\\\","native_build":true,"dependencies":[]}],"macos":[{"name":"path_provider_foundation","path":"C:\\\\Users\\\\Adminis\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.flutter-io.cn\\\\path_provider_foundation-2.4.0\\\\","shared_darwin_source":true,"native_build":true,"dependencies":[]}],"linux":[{"name":"path_provider_linux","path":"C:\\\\Users\\\\Adminis\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.flutter-io.cn\\\\path_provider_linux-2.2.1\\\\","native_build":false,"dependencies":[]}],"windows":[{"name":"pass_track","path":"G:\\\\workplace\\\\cpnav\\\\plugins\\\\pass_track\\\\","native_build":true,"dependencies":[]},{"name":"path_provider_windows","path":"C:\\\\Users\\\\Adminis\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.flutter-io.cn\\\\path_provider_windows-2.3.0\\\\","native_build":false,"dependencies":[]}],"web":[]},"dependencyGraph":[{"name":"pass_track","dependencies":[]},{"name":"path_provider","dependencies":["path_provider_android","path_provider_foundation","path_provider_linux","path_provider_windows"]},{"name":"path_provider_android","dependencies":[]},{"name":"path_provider_foundation","dependencies":[]},{"name":"path_provider_linux","dependencies":[]},{"name":"path_provider_windows","dependencies":[]}],"date_created":"2024-09-06 10:27:39.418202","version":"3.24.2","swift_package_manager_enabled":false}

View File

@ -82,6 +82,9 @@ class _PasstrackState extends State<PassTrackWidget> {
});
initPlatformState();
controller.getHisFileList(_passTrackPlugin);
if (controller.allLen <= 0) {
return;
}
_passTrackPlugin.generateTile(0, controller.allLen);
_passTrackPlugin.waitForTile();
_passTrackPlugin.playTrack(0, controller.allLen, true, 0, ffi.nullptr);

@ -1 +1 @@
Subproject commit ca4a542c8428ed4c659cbf1273c443a96ce6c56c
Subproject commit 0aba221c479c5962783bfbcbff92b754963c6fb2

View File

@ -219,6 +219,13 @@ packages:
url: "https://pub.flutter-io.cn"
source: hosted
version: "1.15.0"
pass_track:
dependency: "direct main"
description:
path: "plugins/pass_track"
relative: true
source: path
version: "0.0.1"
path:
dependency: transitive
description:

View File

@ -32,8 +32,8 @@ dependencies:
sdk: flutter
scence_map:
path: plugins/scence_map
# pass_track:
# path: plugins/pass_track
pass_track:
path: plugins/pass_track
# git: https://git.mcxa.cn:89/LiXiaoqi/pass_track.git
# ref: main
# The following adds the Cupertino Icons font to your application.

View File

@ -6,6 +6,9 @@
#include "generated_plugin_registrant.h"
#include <pass_track/pass_track_plugin_c_api.h>
void RegisterPlugins(flutter::PluginRegistry* registry) {
PassTrackPluginCApiRegisterWithRegistrar(
registry->GetRegistrarForPlugin("PassTrackPluginCApi"));
}

View File

@ -3,6 +3,7 @@
#
list(APPEND FLUTTER_PLUGIN_LIST
pass_track
)
list(APPEND FLUTTER_FFI_PLUGIN_LIST