异常
This commit is contained in:
parent
f698d44eb1
commit
a08a07e845
@ -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
|
Loading…
Reference in New Issue
Block a user