feat: 我的&媒体页面合并

This commit is contained in:
guozhigq
2024-09-18 00:16:02 +08:00
parent be82d05d1c
commit 8f6fe042cd
13 changed files with 524 additions and 729 deletions

View File

@ -3,7 +3,6 @@ import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:hive/hive.dart';
import 'package:pilipala/common/widgets/network_img_layer.dart';
import 'package:pilipala/pages/mine/view.dart';
import 'package:pilipala/utils/storage.dart';
Box userInfoCache = GStrorage.userInfo;
@ -54,19 +53,9 @@ class HomeAppBar extends StatelessWidget {
// icon: const Icon(CupertinoIcons.bell, size: 22),
// ),
const SizedBox(width: 6),
/// TODO
if (userInfo != null) ...[
GestureDetector(
onTap: () => showModalBottomSheet(
context: context,
builder: (_) => const SizedBox(
height: 450,
child: MinePage(),
),
clipBehavior: Clip.hardEdge,
isScrollControlled: true,
),
onTap: () => Get.toNamed('/mine'),
child: NetworkImgLayer(
type: 'avatar',
width: 32,
@ -77,15 +66,7 @@ class HomeAppBar extends StatelessWidget {
const SizedBox(width: 10),
] else ...[
IconButton(
onPressed: () => showModalBottomSheet(
context: context,
builder: (_) => const SizedBox(
height: 450,
child: MinePage(),
),
clipBehavior: Clip.hardEdge,
isScrollControlled: true,
),
onPressed: () => Get.toNamed('/mine'),
icon: const Icon(CupertinoIcons.person, size: 22),
),
],