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), // 头像