From 58146a9fed69580874b03112cf234b790724077d Mon Sep 17 00:00:00 2001 From: tanlongsheng <252620078@qq.com> Date: Wed, 2 Apr 2025 12:57:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=80=89=E6=8B=A9=E4=BD=8D?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/core/widgets/select_location_map.dart | 15 ++++++++ .../meeting/views/meeting_record_view.dart | 36 +++++++++++-------- 2 files changed, 36 insertions(+), 15 deletions(-) create mode 100644 lib/core/widgets/select_location_map.dart diff --git a/lib/core/widgets/select_location_map.dart b/lib/core/widgets/select_location_map.dart new file mode 100644 index 000000000..c783901ed --- /dev/null +++ b/lib/core/widgets/select_location_map.dart @@ -0,0 +1,15 @@ +import 'package:flutter/material.dart'; + +class SelectLocationMap extends StatefulWidget { + const SelectLocationMap({super.key}); + + @override + State createState() => _SelectLocationMapState(); +} + +class _SelectLocationMapState extends State { + @override + Widget build(BuildContext context) { + return const Placeholder(); + } +} diff --git a/lib/modules/meeting/views/meeting_record_view.dart b/lib/modules/meeting/views/meeting_record_view.dart index 7aa297e24..726a1b2e1 100644 --- a/lib/modules/meeting/views/meeting_record_view.dart +++ b/lib/modules/meeting/views/meeting_record_view.dart @@ -5,6 +5,7 @@ import 'package:get/get.dart'; import 'package:lottie/lottie.dart'; import '../../../core/theme/app_colors.dart'; +import '../../../core/widgets/select_location_map.dart'; import '../controllers/meeting_record_controller.dart'; class MeetingRecordView extends GetView { @@ -121,23 +122,28 @@ class MeetingRecordView extends GetView { ], ), ), - Padding( - padding: EdgeInsets.symmetric(horizontal: 12.w, vertical: 5.w), - child: Row( - children: [ - Icon( - Icons.location_on, - size: 16.w, - color: isDarkMode ? Colors.grey[400] : Colors.grey[500], - ), - Text( - controller.address.value, - style: TextStyle( + GestureDetector( + onTap: () { + Get.to(() => const SelectLocationMap()); + }, + child: Padding( + padding: EdgeInsets.symmetric(horizontal: 12.w, vertical: 5.w), + child: Row( + children: [ + Icon( + Icons.location_on, + size: 16.w, color: isDarkMode ? Colors.grey[400] : Colors.grey[500], - fontSize: 14.sp, ), - ), - ], + Text( + controller.address.value, + style: TextStyle( + color: isDarkMode ? Colors.grey[400] : Colors.grey[500], + fontSize: 14.sp, + ), + ), + ], + ), ), ), _recordContent(isDarkMode),