🐛 Fix publisher page account avatar no gesture detector, close #188

This commit is contained in:
2025-11-16 12:06:48 +08:00
parent 5152dd13ea
commit 7a72d32649

View File

@@ -73,12 +73,35 @@ class _PublisherBasisWidget extends StatelessWidget {
Positioned( Positioned(
bottom: -24, bottom: -24,
left: 16, left: 16,
child: GestureDetector(
child: Badge(
isLabelVisible: data.type == 0,
padding: EdgeInsets.all(3),
label: Icon(
Symbols.launch,
size: 12,
color: Theme.of(context).colorScheme.onPrimary,
),
backgroundColor:
Theme.of(context).colorScheme.primary,
offset: Offset(0, 48),
child: ProfilePictureWidget( child: ProfilePictureWidget(
file: data.picture, file: data.picture,
radius: 32, radius: 32,
borderRadius: data.type == 0 ? null : 12, borderRadius: data.type == 0 ? null : 12,
), ),
), ),
onTap: () {
if (data.account?.name != null) {
Navigator.pop(context, true);
context.pushNamed(
'accountProfile',
pathParameters: {'name': data.account!.name},
);
}
},
),
),
], ],
), ),
Builder( Builder(