页面精简

This commit is contained in:
2022-10-31 10:42:17 +08:00
parent bc98924548
commit 52d775dd78
5 changed files with 75 additions and 84 deletions

View File

@@ -11,17 +11,20 @@ import 'package:get/get.dart';
class UserTopBar extends StatelessWidget {
const UserTopBar({Key? key}) : super(key: key);
final double paddingTop = 96;
final double avatarHeight = 64;
@override
Widget build(BuildContext context) {
return Container(
color: AppColors.white,
padding: const EdgeInsets.only(
padding: EdgeInsets.only(
left: 24,
top: 48,
top: paddingTop,
right: 24,
bottom: 24,
),
height: 64 + 48 + 24,
// height: avatarHeight + paddingTop + 24,
child: GetX<AuthService>(builder: (_) {
return Row(
crossAxisAlignment: CrossAxisAlignment.end,
@@ -32,7 +35,7 @@ class UserTopBar extends StatelessWidget {
},
child: CustomAvatar(
_.userInfo.value.avatar,
size: 64,
size: avatarHeight,
),
),
const SizedBox(width: 16),