mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-26 02:58:39 +00:00
@@ -234,6 +234,7 @@ class UserAndSearchVertical extends StatelessWidget {
|
|||||||
child: Obx(
|
child: Obx(
|
||||||
() => ctr.userLogin.value
|
() => ctr.userLogin.value
|
||||||
? Stack(
|
? Stack(
|
||||||
|
clipBehavior: Clip.none,
|
||||||
children: [
|
children: [
|
||||||
NetworkImgLayer(
|
NetworkImgLayer(
|
||||||
type: 'avatar',
|
type: 'avatar',
|
||||||
@@ -255,7 +256,31 @@ class UserAndSearchVertical extends StatelessWidget {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
)
|
),
|
||||||
|
Positioned(
|
||||||
|
right: -6,
|
||||||
|
bottom: -6,
|
||||||
|
child: Obx(() => MineController.anonymity.value
|
||||||
|
? IgnorePointer(
|
||||||
|
child: Container(
|
||||||
|
padding: const EdgeInsets.all(2),
|
||||||
|
decoration: BoxDecoration(
|
||||||
|
color: Theme.of(context)
|
||||||
|
.colorScheme
|
||||||
|
.secondaryContainer,
|
||||||
|
shape: BoxShape.circle,
|
||||||
|
),
|
||||||
|
child: Icon(
|
||||||
|
size: 16,
|
||||||
|
MdiIcons.incognito,
|
||||||
|
color: Theme.of(context)
|
||||||
|
.colorScheme
|
||||||
|
.onSecondaryContainer,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
)
|
||||||
|
: const SizedBox.shrink()),
|
||||||
|
),
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
: DefaultUser(onPressed: () => ctr.showUserInfoDialog(context)),
|
: DefaultUser(onPressed: () => ctr.showUserInfoDialog(context)),
|
||||||
|
|||||||
Reference in New Issue
Block a user