1234
This commit is contained in:
parent
90bb63a532
commit
42fb5c2193
@ -177,8 +177,8 @@ class PassTrackController extends GetxController {
|
||||
} on Exception {
|
||||
platformVersion = 'Failed to get platform version.';
|
||||
}
|
||||
await _passTrackPlugin.create(600, 600);
|
||||
// mapcontroller.height.toInt(), mapcontroller.width.toInt());
|
||||
await _passTrackPlugin.create(
|
||||
mapcontroller.height.toInt(), mapcontroller.width.toInt());
|
||||
fileHandle.textureId = await _passTrackPlugin.getTextureId() ?? -1;
|
||||
print("textureId: ${fileHandle.textureId}");
|
||||
print("${mapcontroller.height.toInt()}");
|
||||
|
@ -141,13 +141,7 @@ class PassTrackView extends GetView<PassTrackController> {
|
||||
children: [
|
||||
ScenceMapView(
|
||||
children: [
|
||||
|
||||
],
|
||||
onUpdate: (Offset center, double scale, double rotation) {
|
||||
print("center:$center scale:$scale rotation:$rotation");
|
||||
},
|
||||
),
|
||||
Positioned(
|
||||
Positioned(
|
||||
top: mapcontroller.top,
|
||||
left: mapcontroller.left,
|
||||
child: SizedBox(
|
||||
@ -155,6 +149,11 @@ class PassTrackView extends GetView<PassTrackController> {
|
||||
height: mapcontroller.height,
|
||||
// child: Text('Running on: $_platformVersion\n'),
|
||||
child: Texture(textureId: fileHandle.textureId))),
|
||||
],
|
||||
onUpdate: (Offset center, double scale, double rotation) {
|
||||
print("center:$center scale:$scale rotation:$rotation");
|
||||
},
|
||||
),
|
||||
Positioned(
|
||||
width: isPortrait ? size.width * .63 : size.width * .41,
|
||||
left: isPortrait ? 190 : 200,
|
||||
|
@ -10,7 +10,7 @@ class BaseService {
|
||||
//创建client实例
|
||||
final _client = http.Client();
|
||||
final String token =
|
||||
"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc1IiOjAsInJvbGVJZHMiOlsiODMiXSwidXNlcm5hbWUiOiJseWNzIiwidXNlcklkIjozNTYsIlBWIjoyLCJvcmciOiJhIiwiaWF0IjoxNzI1NTI2MDc0LCJleHAiOjE3MjY4MjIwNzR9.l47sd4L8OswBcHJxamGe9M5ttWqiukoJvE5QfwPARlw";
|
||||
"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc1IiOjAsInJvbGVJZHMiOlsiODMiXSwidXNlcm5hbWUiOiJseWNzIiwidXNlcklkIjozNTYsIlBWIjoyLCJvcmciOiJhIiwiaWF0IjoxNzI1OTQ5NDUxLCJleHAiOjE3MjcyNDU0NTF9.o3cwloJcWAPclGXMzlmjIMM2x5GhBseToJe99vM4uVA";
|
||||
|
||||
// String baseUrl = "http://192.168.1.189:8001";//本地
|
||||
String baseUrl = "http://1.82.251.83:8001"; //线上
|
||||
|
Loading…
Reference in New Issue
Block a user