From 02e19463190226c1183745b56de387055480cc06 Mon Sep 17 00:00:00 2001 From: userGyl Date: Thu, 5 Mar 2026 11:20:14 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=87=E5=AD=97=E8=BE=B9=E7=95=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../lib/pages/b_page/reservation/view.dart | 43 +++++++++++-------- 1 file changed, 25 insertions(+), 18 deletions(-) diff --git a/ln_jq_app/lib/pages/b_page/reservation/view.dart b/ln_jq_app/lib/pages/b_page/reservation/view.dart index ae6d7a5..ed89f3b 100644 --- a/ln_jq_app/lib/pages/b_page/reservation/view.dart +++ b/ln_jq_app/lib/pages/b_page/reservation/view.dart @@ -78,11 +78,15 @@ class ReservationPage extends GetView { children: [ Row( children: [ - Text( - controller.name, - style: const TextStyle( - fontSize: 18, - fontWeight: FontWeight.bold, + Flexible( + child: Text( + controller.name, + style: const TextStyle( + fontSize: 18, + fontWeight: FontWeight.bold, + ), + maxLines: 1, + overflow: TextOverflow.ellipsis, ), ), const SizedBox(width: 8), @@ -98,12 +102,11 @@ class ReservationPage extends GetView { ), ), IconButton( - onPressed: () async{ + onPressed: () async { var scanResult = await Get.to(() => const MessagePage()); if (scanResult == null) { controller.msgNotice(); } - }, style: IconButton.styleFrom( backgroundColor: Colors.grey[100], @@ -111,9 +114,7 @@ class ReservationPage extends GetView { ), icon: Badge( smallSize: 8, - backgroundColor: controller.isNotice - ? Colors.red - : Colors.transparent, + backgroundColor: controller.isNotice ? Colors.red : Colors.transparent, child: const Icon( Icons.notifications_outlined, color: Colors.black87, @@ -232,12 +233,17 @@ class ReservationPage extends GetView { label, style: TextStyle(color: Colors.grey, fontSize: 11.sp), ), - Text( - value, - style: TextStyle( - color: Color(0xFF333333), - fontSize: 12.sp, - fontWeight: FontWeight.bold, + Expanded( + child: Text( + value, + textAlign: TextAlign.right, + overflow: TextOverflow.ellipsis, + maxLines: 1, + style: TextStyle( + color: const Color(0xFF333333), + fontSize: 12.sp, + fontWeight: FontWeight.bold, + ), ), ), ], @@ -515,14 +521,15 @@ class ReservationPage extends GetView { style: ElevatedButton.styleFrom( backgroundColor: kPrimaryColor, minimumSize: const Size(double.infinity, 50), - shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(10)), + shape: RoundedRectangleBorder( + borderRadius: BorderRadius.circular(10), + ), ), child: const Text("发送广播", style: TextStyle(color: Colors.white)), ), ), ], ), - ], ), );