peer card ActionMore from MouseReigon to InkWell to show hand pointer
This commit is contained in:
parent
8243d3413f
commit
a529b14f2d
@ -1092,21 +1092,21 @@ Widget getOnline(double rightPadding, bool online) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
class ActionMore extends StatelessWidget {
|
class ActionMore extends StatelessWidget {
|
||||||
final RxBool _iconMoreHover = false.obs;
|
final RxBool _hover = false.obs;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return MouseRegion(
|
return InkWell(
|
||||||
onEnter: (_) => _iconMoreHover.value = true,
|
onTap: () {},
|
||||||
onExit: (_) => _iconMoreHover.value = false,
|
onHover: (value) => _hover.value = value,
|
||||||
child: Obx(() => CircleAvatar(
|
child: Obx(() => CircleAvatar(
|
||||||
radius: 14,
|
radius: 14,
|
||||||
backgroundColor: _iconMoreHover.value
|
backgroundColor: _hover.value
|
||||||
? Theme.of(context).scaffoldBackgroundColor
|
? Theme.of(context).scaffoldBackgroundColor
|
||||||
: Theme.of(context).backgroundColor,
|
: Theme.of(context).backgroundColor,
|
||||||
child: Icon(Icons.more_vert,
|
child: Icon(Icons.more_vert,
|
||||||
size: 18,
|
size: 18,
|
||||||
color: _iconMoreHover.value
|
color: _hover.value
|
||||||
? Theme.of(context).textTheme.titleLarge?.color
|
? Theme.of(context).textTheme.titleLarge?.color
|
||||||
: Theme.of(context)
|
: Theme.of(context)
|
||||||
.textTheme
|
.textTheme
|
||||||
|
Loading…
x
Reference in New Issue
Block a user