This commit is contained in:
tanlinxing 2024-09-10 14:31:09 +08:00
parent 90bb63a532
commit 42fb5c2193
3 changed files with 9 additions and 10 deletions

View File

@ -177,8 +177,8 @@ class PassTrackController extends GetxController {
} on Exception { } on Exception {
platformVersion = 'Failed to get platform version.'; platformVersion = 'Failed to get platform version.';
} }
await _passTrackPlugin.create(600, 600); await _passTrackPlugin.create(
// mapcontroller.height.toInt(), mapcontroller.width.toInt()); mapcontroller.height.toInt(), mapcontroller.width.toInt());
fileHandle.textureId = await _passTrackPlugin.getTextureId() ?? -1; fileHandle.textureId = await _passTrackPlugin.getTextureId() ?? -1;
print("textureId: ${fileHandle.textureId}"); print("textureId: ${fileHandle.textureId}");
print("${mapcontroller.height.toInt()}"); print("${mapcontroller.height.toInt()}");

View File

@ -141,12 +141,6 @@ class PassTrackView extends GetView<PassTrackController> {
children: [ children: [
ScenceMapView( ScenceMapView(
children: [ children: [
],
onUpdate: (Offset center, double scale, double rotation) {
print("center:$center scale:$scale rotation:$rotation");
},
),
Positioned( Positioned(
top: mapcontroller.top, top: mapcontroller.top,
left: mapcontroller.left, left: mapcontroller.left,
@ -155,6 +149,11 @@ class PassTrackView extends GetView<PassTrackController> {
height: mapcontroller.height, height: mapcontroller.height,
// child: Text('Running on: $_platformVersion\n'), // child: Text('Running on: $_platformVersion\n'),
child: Texture(textureId: fileHandle.textureId))), child: Texture(textureId: fileHandle.textureId))),
],
onUpdate: (Offset center, double scale, double rotation) {
print("center:$center scale:$scale rotation:$rotation");
},
),
Positioned( Positioned(
width: isPortrait ? size.width * .63 : size.width * .41, width: isPortrait ? size.width * .63 : size.width * .41,
left: isPortrait ? 190 : 200, left: isPortrait ? 190 : 200,

View File

@ -10,7 +10,7 @@ class BaseService {
//client实例 //client实例
final _client = http.Client(); final _client = http.Client();
final String token = final String token =
"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc1IiOjAsInJvbGVJZHMiOlsiODMiXSwidXNlcm5hbWUiOiJseWNzIiwidXNlcklkIjozNTYsIlBWIjoyLCJvcmciOiJhIiwiaWF0IjoxNzI1NTI2MDc0LCJleHAiOjE3MjY4MjIwNzR9.l47sd4L8OswBcHJxamGe9M5ttWqiukoJvE5QfwPARlw"; "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc1IiOjAsInJvbGVJZHMiOlsiODMiXSwidXNlcm5hbWUiOiJseWNzIiwidXNlcklkIjozNTYsIlBWIjoyLCJvcmciOiJhIiwiaWF0IjoxNzI1OTQ5NDUxLCJleHAiOjE3MjcyNDU0NTF9.o3cwloJcWAPclGXMzlmjIMM2x5GhBseToJe99vM4uVA";
// String baseUrl = "http://192.168.1.189:8001";// // String baseUrl = "http://192.168.1.189:8001";//
String baseUrl = "http://1.82.251.83:8001"; //线 String baseUrl = "http://1.82.251.83:8001"; //线