Set mouse cursor click when select item email
Signed-off-by: dab246 <tdvu@linagora.com> (cherry picked from commit bb10b4304909c46c47a00ec4bc6cdcf7af268211)
This commit is contained in:
@@ -70,16 +70,19 @@ class _EmailTileBuilderState extends State<EmailTileBuilder> with BaseEmailItem
|
|||||||
child: Row(
|
child: Row(
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
children: [
|
children: [
|
||||||
GestureDetector(
|
MouseRegion(
|
||||||
onTap: () => widget.emailActionClick?.call(
|
cursor: SystemMouseCursors.click,
|
||||||
widget.selectAllMode == SelectMode.ACTIVE
|
child: GestureDetector(
|
||||||
? EmailActionType.selection
|
onTap: () => widget.emailActionClick?.call(
|
||||||
: EmailActionType.preview,
|
widget.selectAllMode == SelectMode.ACTIVE
|
||||||
widget.presentationEmail
|
? EmailActionType.selection
|
||||||
),
|
: EmailActionType.preview,
|
||||||
child: Padding(
|
widget.presentationEmail
|
||||||
padding: const EdgeInsetsDirectional.only(top: 8, end: 12),
|
),
|
||||||
child: _buildAvatarIcon(context: context),
|
child: Padding(
|
||||||
|
padding: const EdgeInsetsDirectional.only(top: 8, end: 12),
|
||||||
|
child: _buildAvatarIcon(context: context),
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Expanded(
|
Expanded(
|
||||||
@@ -192,23 +195,26 @@ class _EmailTileBuilderState extends State<EmailTileBuilder> with BaseEmailItem
|
|||||||
Row(
|
Row(
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
children: [
|
children: [
|
||||||
GestureDetector(
|
MouseRegion(
|
||||||
onTap: () => widget.emailActionClick?.call(
|
cursor: SystemMouseCursors.click,
|
||||||
EmailActionType.selection,
|
child: GestureDetector(
|
||||||
widget.presentationEmail
|
onTap: () => widget.emailActionClick?.call(
|
||||||
),
|
EmailActionType.selection,
|
||||||
child: Padding(
|
widget.presentationEmail
|
||||||
padding: const EdgeInsetsDirectional.only(top: 8, end: 12),
|
),
|
||||||
child: ValueListenableBuilder(
|
child: Padding(
|
||||||
valueListenable: _hoverNotifier,
|
padding: const EdgeInsetsDirectional.only(top: 8, end: 12),
|
||||||
builder: (context, value, child) {
|
child: ValueListenableBuilder(
|
||||||
return _buildAvatarIcon(
|
valueListenable: _hoverNotifier,
|
||||||
context: context,
|
builder: (context, value, child) {
|
||||||
isHovered: value
|
return _buildAvatarIcon(
|
||||||
);
|
context: context,
|
||||||
}
|
isHovered: value
|
||||||
|
);
|
||||||
|
}
|
||||||
|
)
|
||||||
)
|
)
|
||||||
)
|
),
|
||||||
),
|
),
|
||||||
Expanded(child: Column(children: [
|
Expanded(child: Column(children: [
|
||||||
Row(children: [
|
Row(children: [
|
||||||
@@ -368,25 +374,28 @@ class _EmailTileBuilderState extends State<EmailTileBuilder> with BaseEmailItem
|
|||||||
iconPadding: const EdgeInsetsDirectional.only(end: 12),
|
iconPadding: const EdgeInsetsDirectional.only(end: 12),
|
||||||
splashRadius: 1
|
splashRadius: 1
|
||||||
),
|
),
|
||||||
GestureDetector(
|
MouseRegion(
|
||||||
onTap: () => widget.emailActionClick?.call(
|
cursor: SystemMouseCursors.click,
|
||||||
EmailActionType.selection,
|
child: GestureDetector(
|
||||||
widget.presentationEmail
|
onTap: () => widget.emailActionClick?.call(
|
||||||
),
|
EmailActionType.selection,
|
||||||
child: ValueListenableBuilder(
|
widget.presentationEmail
|
||||||
valueListenable: _hoverNotifier,
|
),
|
||||||
builder: (context, value, child) {
|
child: ValueListenableBuilder(
|
||||||
return _buildAvatarIcon(
|
valueListenable: _hoverNotifier,
|
||||||
context: context,
|
builder: (context, value, child) {
|
||||||
isHovered: value,
|
return _buildAvatarIcon(
|
||||||
iconSize: 32,
|
context: context,
|
||||||
textStyle: const TextStyle(
|
isHovered: value,
|
||||||
fontSize: 12,
|
iconSize: 32,
|
||||||
fontWeight: FontWeight.w600,
|
textStyle: const TextStyle(
|
||||||
color: Colors.white
|
fontSize: 12,
|
||||||
)
|
fontWeight: FontWeight.w600,
|
||||||
);
|
color: Colors.white
|
||||||
}
|
)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
const SizedBox(width: 10),
|
const SizedBox(width: 10),
|
||||||
|
|||||||
Reference in New Issue
Block a user