This commit is contained in:
tanlinxing 2024-09-09 15:32:42 +08:00
parent f698d44eb1
commit a08a07e845
2 changed files with 4 additions and 2 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 30a101b8415cd162ab14f661f6f75ac7751962d3 Subproject commit 0b6aef315a6b7b05eec413cc6e9368611fad8e2b