🐛 Fix publisher page account avatar no gesture detector, close #188
This commit is contained in:
@@ -73,10 +73,33 @@ class _PublisherBasisWidget extends StatelessWidget {
|
|||||||
Positioned(
|
Positioned(
|
||||||
bottom: -24,
|
bottom: -24,
|
||||||
left: 16,
|
left: 16,
|
||||||
child: ProfilePictureWidget(
|
child: GestureDetector(
|
||||||
file: data.picture,
|
child: Badge(
|
||||||
radius: 32,
|
isLabelVisible: data.type == 0,
|
||||||
borderRadius: data.type == 0 ? null : 12,
|
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(
|
||||||
|
file: data.picture,
|
||||||
|
radius: 32,
|
||||||
|
borderRadius: data.type == 0 ? null : 12,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
onTap: () {
|
||||||
|
if (data.account?.name != null) {
|
||||||
|
Navigator.pop(context, true);
|
||||||
|
context.pushNamed(
|
||||||
|
'accountProfile',
|
||||||
|
pathParameters: {'name': data.account!.name},
|
||||||
|
);
|
||||||
|
}
|
||||||
|
},
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
|||||||
Reference in New Issue
Block a user