From 5d0d91828e09016b44062faacd8e8ea17995f242 Mon Sep 17 00:00:00 2001 From: fff Date: Mon, 6 Jan 2025 16:55:47 +0800 Subject: [PATCH] =?UTF-8?q?dart3=20=E4=BF=AE=E6=94=B9=E3=80=82=E8=B0=83?= =?UTF-8?q?=E6=95=B4=E6=8E=A5=E5=8F=A3=E8=BF=94=E5=9B=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/store/store_order.dart | 26 ++++++++++++++++++++++---- 1 file changed, 22 insertions(+), 4 deletions(-) diff --git a/lib/store/store_order.dart b/lib/store/store_order.dart index c625e90f..7310258f 100644 --- a/lib/store/store_order.dart +++ b/lib/store/store_order.dart @@ -265,7 +265,7 @@ class _StoreOrderPage extends State background: Container( child: Stack( children: [ - Positioned( + Positioned.fill( child: Column( children: [ buildSwiper(), @@ -277,12 +277,30 @@ class _StoreOrderPage extends State left: 0, right: 0, ), + Positioned( + top: 0, + left: 0, + right: 0, + child: Container( + height: kToolbarHeight, + decoration: BoxDecoration( + gradient: LinearGradient( + colors: [ + Colors.white.withAlpha(60), + Colors.white.withAlpha(30), + Colors.transparent, + ], + begin: Alignment.topCenter, + end: Alignment.bottomCenter, + ), + ), + ), + ), Positioned( child: Container( decoration: BoxDecoration( - color: Colors.white, borderRadius: BorderRadius.vertical( - top: Radius.circular(8), + top: Radius.circular(18), ), ), child: StoreInfoView( @@ -610,7 +628,7 @@ class _StoreOrderPage extends State Widget buildSwiper() { return Container( width: double.infinity, - height: 235.h, + height: 240.h, child: Swiper( pagination: SwiperPagination( alignment: Alignment.bottomCenter,