From 2d9af261f9f4a6279d4ad2b3d94a1c82eda4c012 Mon Sep 17 00:00:00 2001 From: zhuce <821293938@qq.com> Date: Fri, 23 Feb 2024 18:05:43 +0800 Subject: [PATCH] middle widget second commit --- lib/pages/home/home_page.dart | 64 ++++++++++++++++++++++++++++++----- 1 file changed, 56 insertions(+), 8 deletions(-) diff --git a/lib/pages/home/home_page.dart b/lib/pages/home/home_page.dart index 67ff87a..3205301 100644 --- a/lib/pages/home/home_page.dart +++ b/lib/pages/home/home_page.dart @@ -63,15 +63,23 @@ class _HomePageState extends State { Row( mainAxisAlignment: MainAxisAlignment.spaceBetween, children: [ - const Row( + Row( children: [ - Text( - "接单中", - style: TextStyle( - fontSize: 23, - fontWeight: FontWeight.bold, - color: Colors.black), - ) + enabled + ? const Text( + "接单中", + style: TextStyle( + fontSize: 23, + fontWeight: FontWeight.bold, + color: Colors.black), + ) + : const Text( + "停止接单", + style: TextStyle( + fontSize: 23, + fontWeight: FontWeight.bold, + color: Colors.grey), + ) ], ), Row( @@ -173,6 +181,46 @@ class _HomePageState extends State { style: TextStyle(fontSize: 12, color: Color(0xFF9B9B9B)), ), ], + ), + Container( + child: Row( + mainAxisAlignment: MainAxisAlignment.spaceBetween, + children: [ + Row( + children: [ + Container( + margin: const EdgeInsets.only(right: 10), + child: const Icon( + Icons.circle, + size: 5, + ), + ), + const Text( + "宁波市鄞州区下应街道湖下路286号", + style: TextStyle(fontWeight: FontWeight.bold), + ) + ], + ), + const Row( + crossAxisAlignment: CrossAxisAlignment.baseline, + textBaseline: TextBaseline.alphabetic, + children: [ + Text( + "¥", + style: TextStyle( + fontSize: 13, + fontWeight: FontWeight.bold, + ), + ), + Text( + "50", + style: + TextStyle(fontSize: 32, fontWeight: FontWeight.bold), + ), + ], + ) + ], + ), ) ], ),