feat: up头像预览

This commit is contained in:
guozhigq
2024-10-19 02:28:32 +08:00
parent 174eff7151
commit 99a5891d52

View File

@ -3,6 +3,7 @@ import 'package:get/get.dart';
import 'package:pilipala/common/widgets/network_img_layer.dart'; import 'package:pilipala/common/widgets/network_img_layer.dart';
import 'package:pilipala/models/live/item.dart'; import 'package:pilipala/models/live/item.dart';
import 'package:pilipala/models/member/info.dart'; import 'package:pilipala/models/member/info.dart';
import 'package:pilipala/plugin/pl_gallery/index.dart';
import 'package:pilipala/utils/utils.dart'; import 'package:pilipala/utils/utils.dart';
class ProfilePanel extends StatelessWidget { class ProfilePanel extends StatelessWidget {
@ -70,11 +71,27 @@ class ProfilePanel extends StatelessWidget {
tag: ctr.heroTag!, tag: ctr.heroTag!,
child: Stack( child: Stack(
children: [ children: [
NetworkImgLayer( InkWell(
width: 90, onTap: () {
height: 90, Navigator.of(context).push(
type: 'avatar', HeroDialogRoute<void>(
src: !loadingStatus ? memberInfo.face : ctr.face.value, builder: (BuildContext context) =>
InteractiveviewerGallery(
sources: [
!loadingStatus ? memberInfo.face : ctr.face.value
],
initIndex: 0,
onPageChanged: (int pageIndex) {},
),
),
);
},
child: NetworkImgLayer(
width: 90,
height: 90,
type: 'avatar',
src: !loadingStatus ? memberInfo.face : ctr.face.value,
),
), ),
if (!loadingStatus && if (!loadingStatus &&
memberInfo.liveRoom != null && memberInfo.liveRoom != null &&