From 12111332895cde717b6c8b849a57ac03e83bdc5c Mon Sep 17 00:00:00 2001 From: Jolie <> Date: Thu, 6 Nov 2025 01:38:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/pages/mine/user_info_page.dart | 40 +++++++++++++++++------------- 1 file changed, 23 insertions(+), 17 deletions(-) diff --git a/lib/pages/mine/user_info_page.dart b/lib/pages/mine/user_info_page.dart index b323c68..6dda72a 100644 --- a/lib/pages/mine/user_info_page.dart +++ b/lib/pages/mine/user_info_page.dart @@ -224,31 +224,37 @@ class UserInfoPage extends StatelessWidget { init: UserInfoController(), builder: (controller) { return Scaffold( + extendBodyBehindAppBar: true, + appBar: AppBar( + title: const Text( + '完善信息', + style: TextStyle( + fontSize: 20, + fontWeight: FontWeight.bold, + color: Color.fromRGBO(51, 51, 51, 1), + ), + ), + backgroundColor: Colors.transparent, + shadowColor: Colors.transparent, + elevation: 0, + centerTitle: true, + automaticallyImplyLeading: false, + ), body: Stack( children: [ - // 背景图 - Positioned.fill( - child: Image.asset( - Assets.imagesBgInformation, - fit: BoxFit.cover, - ), + // 背景图 - 覆盖全页面包括AppBar + Image.asset( + Assets.imagesBgInformation, + fit: BoxFit.cover, + width: double.infinity, + height: double.infinity, ), - // 内容区域 + // 内容区域,顶部留出AppBar高度空间 SafeArea( child: SingleChildScrollView( padding: const EdgeInsets.symmetric(horizontal: 20.0), child: Column( children: [ - // 标题 - const SizedBox(height: 20), - const Text( - '完善信息', - style: TextStyle( - fontSize: 20, - fontWeight: FontWeight.bold, - color: Color.fromRGBO(51, 51, 51, 1), - ), - ), const SizedBox(height: 25), // 头像