|
|
@@ -69,13 +69,15 @@ class FieldControlPage extends StatelessWidget {
|
|
|
ViewMapTouch(map.plugMap)
|
|
|
]);
|
|
|
|
|
|
+
|
|
|
return Row(
|
|
|
children: [
|
|
|
Expanded(
|
|
|
child: Column(
|
|
|
children: [
|
|
|
- Expanded(
|
|
|
- child: ViewMapStack(plug: map.plugMap, children: children)),
|
|
|
+ _MapView(),
|
|
|
+ // Expanded(
|
|
|
+ // child: ViewMapStack(plug: map.plugMap, children: children)),
|
|
|
_MsgView(),
|
|
|
],
|
|
|
)),
|
|
|
@@ -84,7 +86,38 @@ class FieldControlPage extends StatelessWidget {
|
|
|
);
|
|
|
}
|
|
|
}
|
|
|
+class _MapView extends GetView<FieldControlController>{
|
|
|
+ @override
|
|
|
+ Widget build(BuildContext context) {
|
|
|
+ return Expanded(child: ViewMapStack(plug: controller.mapWatch!.plugMap, children: [
|
|
|
+ Obx((){
|
|
|
+ final map = controller.mapWatch!;
|
|
|
+ final children = <Widget>[
|
|
|
+ ViewPlugLoading(map.plugMap),
|
|
|
+ ViewMapImage(map.plugMap),
|
|
|
+ ];
|
|
|
+
|
|
|
+ final focusUser = controller.focusUser;
|
|
|
+ if (focusUser != null) {
|
|
|
+ children.add(ViewMapCP(
|
|
|
+ // key:UniqueKey(),
|
|
|
+ map.plugMap,
|
|
|
+ cpWantAndHistoryList: focusUser.cpList,
|
|
|
+ isHideRouteBeforeStart: false,
|
|
|
+ controller: controller.viewCpController,
|
|
|
+ ));
|
|
|
+ }
|
|
|
+
|
|
|
+ children.addAll([
|
|
|
+ _ViewTrace(map: map, traceDuration: 30.seconds),
|
|
|
+ ViewMapTouch(map.plugMap)
|
|
|
+ ]);
|
|
|
+ return SizedBox.expand(child: Stack(children: children,),);
|
|
|
+ })
|
|
|
+ ], ));
|
|
|
+ }
|
|
|
|
|
|
+}
|
|
|
class _ViewTrace extends GetView<FieldControlController> {
|
|
|
const _ViewTrace({required this.map, required this.traceDuration});
|
|
|
|
|
|
@@ -147,8 +180,9 @@ class _ActiveInfoView extends GetView<FieldControlController> {
|
|
|
Widget activeView(ActiveInfo info) {
|
|
|
final children = <Widget>[
|
|
|
Row(children: [
|
|
|
- Text('${info.name} (${info.userList.length}人)'),
|
|
|
- const Spacer(),
|
|
|
+ Expanded(child: Text('${info.name} (${info.userList.length}人)', maxLines: 1,))
|
|
|
+ ,
|
|
|
+ const SizedBox(width: 8,),
|
|
|
IconButton(
|
|
|
onPressed: () {
|
|
|
info.isHide.value = !info.isHide.value;
|