notification removed
This commit is contained in:
parent
c85ca32ba7
commit
4d54fd12fa
File diff suppressed because one or more lines are too long
@ -426,29 +426,29 @@ class _AppHeaderState extends ConsumerState<AppHeader> {
|
|||||||
const SizedBox(width: 12),
|
const SizedBox(width: 12),
|
||||||
],
|
],
|
||||||
// Notifications button
|
// Notifications button
|
||||||
Container(
|
// Container(
|
||||||
width: 36,
|
// width: 36,
|
||||||
height: 36,
|
// height: 36,
|
||||||
decoration: BoxDecoration(
|
// decoration: BoxDecoration(
|
||||||
color: Colors.white,
|
// color: Colors.white,
|
||||||
borderRadius: BorderRadius.circular(8),
|
// borderRadius: BorderRadius.circular(8),
|
||||||
border: Border.all(color: Colors.grey.shade200, width: 1),
|
// border: Border.all(color: Colors.grey.shade200, width: 1),
|
||||||
),
|
// ),
|
||||||
child: IconButton(
|
// child: IconButton(
|
||||||
padding: EdgeInsets.zero,
|
// padding: EdgeInsets.zero,
|
||||||
icon: const Icon(
|
// icon: const Icon(
|
||||||
Icons.notifications_none,
|
// Icons.notifications_none,
|
||||||
color: Colors.black87,
|
// color: Colors.black87,
|
||||||
size: 20,
|
// size: 20,
|
||||||
),
|
// ),
|
||||||
onPressed: () {
|
// onPressed: () {
|
||||||
debugPrint("Notifications tapped");
|
// debugPrint("Notifications tapped");
|
||||||
},
|
// },
|
||||||
tooltip: 'Notifications',
|
// tooltip: 'Notifications',
|
||||||
),
|
// ),
|
||||||
),
|
// ),
|
||||||
|
//
|
||||||
const SizedBox(width: 12),
|
// const SizedBox(width: 12),
|
||||||
|
|
||||||
// Profile with popup
|
// Profile with popup
|
||||||
PopupMenuButton<String>(
|
PopupMenuButton<String>(
|
||||||
@ -626,7 +626,9 @@ class _AppHeaderState extends ConsumerState<AppHeader> {
|
|||||||
onExit: (event) {
|
onExit: (event) {
|
||||||
// We check if the mouse is moving downwards (toward the popup)
|
// We check if the mouse is moving downwards (toward the popup)
|
||||||
// If not moving toward popup, hide it.
|
// If not moving toward popup, hide it.
|
||||||
if (event.localPosition.dy < 0 || event.localPosition.dx < 0 || event.localPosition.dx > 100) {
|
if (event.localPosition.dy < 0 ||
|
||||||
|
event.localPosition.dx < 0 ||
|
||||||
|
event.localPosition.dx > 100) {
|
||||||
_hidePopup();
|
_hidePopup();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user