测试绘制网格
This commit is contained in:
parent
01d32c6d5d
commit
3497e3fd1c
@ -88,6 +88,8 @@ class _PasstrackState extends State<PassTrackWidget> {
|
||||
var f = initPlatformState();
|
||||
|
||||
f.then((void _) {
|
||||
_passTrackPlugin.setGridColor(const Color.fromARGB(255, 0, 0, 0).value);
|
||||
_passTrackPlugin.drawGrid();
|
||||
var future = controller.getHisFileList(_passTrackPlugin);
|
||||
future.then((value) {
|
||||
_passTrackPlugin.setScale(1);
|
||||
@ -97,9 +99,15 @@ class _PasstrackState extends State<PassTrackWidget> {
|
||||
for (var item in controller.coorTransMap.entries) {
|
||||
print("tid:${item.key} value:${item.value}");
|
||||
}
|
||||
_passTrackPlugin.generateTile(0, value);
|
||||
// 统计用时 获取当前时间
|
||||
var start = DateTime.now().millisecondsSinceEpoch;
|
||||
// _passTrackPlugin.generateTile(0, value);
|
||||
_passTrackPlugin.waitForTile();
|
||||
// _passTrackPlugin.drawGrid();
|
||||
_passTrackPlugin.playTrack(0, value, true, 0, ffi.nullptr);
|
||||
// 获取当前时间
|
||||
var end = DateTime.now().millisecondsSinceEpoch;
|
||||
print("耗时:${end - start}");
|
||||
});
|
||||
});
|
||||
}
|
||||
@ -255,7 +263,6 @@ class _PasstrackState extends State<PassTrackWidget> {
|
||||
),
|
||||
const SizedBox(width: 12),
|
||||
Column(
|
||||
|
||||
children: [
|
||||
const Text("此处遍数:0"),
|
||||
StreamBuilder<DateTime>(
|
||||
@ -286,7 +293,6 @@ class _PasstrackState extends State<PassTrackWidget> {
|
||||
),
|
||||
],
|
||||
),
|
||||
|
||||
],
|
||||
),
|
||||
),
|
||||
|
@ -1 +1 @@
|
||||
Subproject commit 26455a018ed9cdda8413c8477baeaa38bd57499f
|
||||
Subproject commit bc4de9cc6145dd03116e9b0557902d87776e9671
|
Loading…
Reference in New Issue
Block a user