feat: up头像预览
This commit is contained in:
@ -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,12 +71,28 @@ class ProfilePanel extends StatelessWidget {
|
|||||||
tag: ctr.heroTag!,
|
tag: ctr.heroTag!,
|
||||||
child: Stack(
|
child: Stack(
|
||||||
children: [
|
children: [
|
||||||
NetworkImgLayer(
|
InkWell(
|
||||||
|
onTap: () {
|
||||||
|
Navigator.of(context).push(
|
||||||
|
HeroDialogRoute<void>(
|
||||||
|
builder: (BuildContext context) =>
|
||||||
|
InteractiveviewerGallery(
|
||||||
|
sources: [
|
||||||
|
!loadingStatus ? memberInfo.face : ctr.face.value
|
||||||
|
],
|
||||||
|
initIndex: 0,
|
||||||
|
onPageChanged: (int pageIndex) {},
|
||||||
|
),
|
||||||
|
),
|
||||||
|
);
|
||||||
|
},
|
||||||
|
child: NetworkImgLayer(
|
||||||
width: 90,
|
width: 90,
|
||||||
height: 90,
|
height: 90,
|
||||||
type: 'avatar',
|
type: 'avatar',
|
||||||
src: !loadingStatus ? memberInfo.face : ctr.face.value,
|
src: !loadingStatus ? memberInfo.face : ctr.face.value,
|
||||||
),
|
),
|
||||||
|
),
|
||||||
if (!loadingStatus &&
|
if (!loadingStatus &&
|
||||||
memberInfo.liveRoom != null &&
|
memberInfo.liveRoom != null &&
|
||||||
memberInfo.liveRoom!.liveStatus == 1)
|
memberInfo.liveRoom!.liveStatus == 1)
|
||||||
|
|||||||
Reference in New Issue
Block a user