Compare commits

...

2 Commits

Author SHA1 Message Date
tanlinxing
a08a07e845 异常 2024-09-09 15:32:42 +08:00
tanlinxing
f698d44eb1 生成tile异常 2024-09-09 15:32:14 +08:00
3 changed files with 5 additions and 3 deletions

View File

@ -105,6 +105,7 @@ class _PasstrackState extends State<PassTrackWidget> {
_passTrackPlugin.waitForTile(() { _passTrackPlugin.waitForTile(() {
var start = DateTime.now().millisecondsSinceEpoch; var start = DateTime.now().millisecondsSinceEpoch;
print("len: ${_passTrackPlugin.allTileCnt()}"); print("len: ${_passTrackPlugin.allTileCnt()}");
controller.allLen = _passTrackPlugin.allTileCnt();
_rangevalues = SfRangeValues(0, _passTrackPlugin.allTileCnt()); _rangevalues = SfRangeValues(0, _passTrackPlugin.allTileCnt());
_passTrackPlugin.playTrack(0, _passTrackPlugin.allTileCnt(), true, 0, ffi.nullptr); _passTrackPlugin.playTrack(0, _passTrackPlugin.allTileCnt(), true, 0, ffi.nullptr);
var end = DateTime.now().millisecondsSinceEpoch; var end = DateTime.now().millisecondsSinceEpoch;
@ -167,7 +168,8 @@ class _PasstrackState extends State<PassTrackWidget> {
child: SfRangeSlider( child: SfRangeSlider(
min: 0.0, min: 0.0,
// max: maxLength, // max: maxLength,
max: controller.allLen > 0 max:
controller.allLen > 0
? controller.allLen ? controller.allLen
: 1.0, // max 0 : 1.0, // max 0
values: _rangevalues, values: _rangevalues,

@ -1 +1 @@
Subproject commit 32d846e70117065ecb483cea80432e407ea9de9c Subproject commit 0b6aef315a6b7b05eec413cc6e9368611fad8e2b

@ -1 +1 @@
Subproject commit dfc74693602773a5e28d045854047e408b96a55d Subproject commit ac2179219ba52d0c91dfd51470fd1d7ebaae69be