|
|
@@ -48,34 +48,35 @@ class DataDetailPage extends StatelessWidget {
|
|
|
Widget content(
|
|
|
BuildContext context, MapWatchService map, DataDetailController c) {
|
|
|
return Obx(() {
|
|
|
- final children = <Widget>[
|
|
|
- ViewPlugLoading(map.plugMap),
|
|
|
- ViewMapImage(map.plugMap),
|
|
|
- ];
|
|
|
- final data = c.selectedDetail.value;
|
|
|
- if (data != null) {
|
|
|
- children.add(ViewMapCP(
|
|
|
- map.plugMap,
|
|
|
- cpWantAndHistoryList: data.controlPoints,
|
|
|
- isHideRouteBeforeStart: false,
|
|
|
- isShowPath: false,
|
|
|
- cpTheme: ViewMapCPTheme()
|
|
|
- ..cpJumpColor = cpColor
|
|
|
- ..cpPunchedColor = cpColor,
|
|
|
- ));
|
|
|
-
|
|
|
- children.add(ViewMapTrace(map.plugMap, data.traceList,
|
|
|
- controller: c.viewMapTraceController));
|
|
|
- }
|
|
|
-
|
|
|
- children.add(ViewMapTouch(map.plugMap));
|
|
|
+ // final children = <Widget>[
|
|
|
+ // ViewPlugLoading(map.plugMap),
|
|
|
+ // ViewMapImage(map.plugMap),
|
|
|
+ // ];
|
|
|
+ // final data = c.selectedDetail.value;
|
|
|
+ // if (data != null) {
|
|
|
+ // children.add(ViewMapCP(
|
|
|
+ // map.plugMap,
|
|
|
+ // cpWantAndHistoryList: data.controlPoints,
|
|
|
+ // isHideRouteBeforeStart: false,
|
|
|
+ // isShowPath: false,
|
|
|
+ // cpTheme: ViewMapCPTheme()
|
|
|
+ // ..cpJumpColor = cpColor
|
|
|
+ // ..cpPunchedColor = cpColor,
|
|
|
+ // ));
|
|
|
+ //
|
|
|
+ // children.add(ViewMapTrace(map.plugMap, data.traceList,
|
|
|
+ // controller: c.viewMapTraceController));
|
|
|
+ // }
|
|
|
+ //
|
|
|
+ // children.add(ViewMapTouch(map.plugMap));
|
|
|
|
|
|
return Row(children: [
|
|
|
Expanded(
|
|
|
child: Column(
|
|
|
children: [
|
|
|
Expanded(
|
|
|
- child: ViewMapStack(plug: map.plugMap, children: children)),
|
|
|
+ child: ViewMapStack(plug: map.plugMap,
|
|
|
+ children: [ SizedBox.expand(child: _MapContent())])),
|
|
|
_traceBarView(c)
|
|
|
],
|
|
|
)),
|
|
|
@@ -117,7 +118,58 @@ class DataDetailPage extends StatelessWidget {
|
|
|
);
|
|
|
}
|
|
|
}
|
|
|
+class _MapContent extends GetView<DataDetailController>{
|
|
|
+ static const cpColor = Color(0xffcc00ff);
|
|
|
+ @override
|
|
|
+ Widget build(BuildContext context) {
|
|
|
+ return Obx((){
|
|
|
+ final map = controller.mapWatch!;
|
|
|
+
|
|
|
+ final children = <Widget>[
|
|
|
+ ViewPlugLoading(map.plugMap),
|
|
|
+ ViewMapImage(map.plugMap),
|
|
|
|
|
|
+ ];
|
|
|
+ final data = controller.selectedDetail.value;
|
|
|
+ if (data != null) {
|
|
|
+
|
|
|
+
|
|
|
+ children.add(
|
|
|
+ Container(
|
|
|
+ color: Colors.white.withAlpha(120),
|
|
|
+ ),
|
|
|
+ );
|
|
|
+
|
|
|
+ if(controller.selectedLoading.value){
|
|
|
+ children.add(const Center(child: CircularProgressIndicator()));
|
|
|
+ }else{
|
|
|
+ children.add(ViewMapCP(
|
|
|
+ key: UniqueKey(),
|
|
|
+ map.plugMap,
|
|
|
+ cpWantAndHistoryList: data.controlPoints,
|
|
|
+ isHideRouteBeforeStart: false,
|
|
|
+ isShowPath: false,
|
|
|
+ cpTheme: ViewMapCPTheme()
|
|
|
+ ..cpJumpColor = cpColor
|
|
|
+ ..cpPunchedColor = cpColor,
|
|
|
+ ));
|
|
|
+
|
|
|
+ children.add(ViewMapTrace(
|
|
|
+ key: UniqueKey(),
|
|
|
+ map.plugMap, data.traceList,
|
|
|
+ controller: controller.viewMapTraceController));
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ children.add(ViewMapTouch(map.plugMap));
|
|
|
+
|
|
|
+ return Stack(
|
|
|
+ alignment: Alignment.topLeft,
|
|
|
+ children: children);
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
+}
|
|
|
class _UserListView extends GetView<DataDetailController> {
|
|
|
@override
|
|
|
Widget build(BuildContext context) {
|