opt: member page

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2024-11-20 17:53:03 +08:00
parent c104df6cb8
commit 70706b902c
3 changed files with 17 additions and 17 deletions

View File

@@ -134,11 +134,8 @@ class _MemberPageNewState extends State<MemberPageNew>
tabs: _userController.tabs, tabs: _userController.tabs,
); );
Widget get _buildBody => Padding( Widget get _buildBody => SafeArea(
padding: EdgeInsets.only( top: false,
left: MediaQuery.paddingOf(context).left,
right: MediaQuery.paddingOf(context).right,
),
child: TabBarView( child: TabBarView(
controller: _userController.tabController, controller: _userController.tabController,
children: _userController.tab2!.map((item) { children: _userController.tab2!.map((item) {

View File

@@ -492,17 +492,20 @@ class UserInfoCard extends StatelessWidget {
children: [ children: [
SizedBox(width: MediaQuery.paddingOf(context).left), SizedBox(width: MediaQuery.paddingOf(context).left),
const SizedBox(width: 20), const SizedBox(width: 20),
Stack( Padding(
children: [ padding: const EdgeInsets.symmetric(vertical: 10),
_buildAvatar(context), child: Stack(
if (card.officialVerify?.icon?.isNotEmpty == true || children: [
(card.vip?.vipStatus ?? -1) > 0) _buildAvatar(context),
Positioned( if (card.officialVerify?.icon?.isNotEmpty == true ||
right: 0, (card.vip?.vipStatus ?? -1) > 0)
bottom: 0, Positioned(
child: _buildBadge(context), right: 0,
), bottom: 0,
], child: _buildBadge(context),
),
],
),
), ),
Expanded( Expanded(
child: Column( child: Column(

View File

@@ -35,7 +35,7 @@ class _MemberDynamicsPageState extends State<MemberDynamicsPage>
mid = widget.mid ?? int.parse(Get.parameters['mid']!); mid = widget.mid ?? int.parse(Get.parameters['mid']!);
final String heroTag = Utils.makeHeroTag(mid); final String heroTag = Utils.makeHeroTag(mid);
_memberDynamicController = _memberDynamicController =
Get.put(MemberDynamicsController(widget.mid), tag: heroTag); Get.put(MemberDynamicsController(mid), tag: heroTag);
// _memberDynamicController.scrollController.addListener( // _memberDynamicController.scrollController.addListener(
// () { // () {
// if (_memberDynamicController.scrollController.position.pixels >= // if (_memberDynamicController.scrollController.position.pixels >=