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),
|
||||
],
|
||||
// Notifications button
|
||||
Container(
|
||||
width: 36,
|
||||
height: 36,
|
||||
decoration: BoxDecoration(
|
||||
color: Colors.white,
|
||||
borderRadius: BorderRadius.circular(8),
|
||||
border: Border.all(color: Colors.grey.shade200, width: 1),
|
||||
),
|
||||
child: IconButton(
|
||||
padding: EdgeInsets.zero,
|
||||
icon: const Icon(
|
||||
Icons.notifications_none,
|
||||
color: Colors.black87,
|
||||
size: 20,
|
||||
),
|
||||
onPressed: () {
|
||||
debugPrint("Notifications tapped");
|
||||
},
|
||||
tooltip: 'Notifications',
|
||||
),
|
||||
),
|
||||
|
||||
const SizedBox(width: 12),
|
||||
// Container(
|
||||
// width: 36,
|
||||
// height: 36,
|
||||
// decoration: BoxDecoration(
|
||||
// color: Colors.white,
|
||||
// borderRadius: BorderRadius.circular(8),
|
||||
// border: Border.all(color: Colors.grey.shade200, width: 1),
|
||||
// ),
|
||||
// child: IconButton(
|
||||
// padding: EdgeInsets.zero,
|
||||
// icon: const Icon(
|
||||
// Icons.notifications_none,
|
||||
// color: Colors.black87,
|
||||
// size: 20,
|
||||
// ),
|
||||
// onPressed: () {
|
||||
// debugPrint("Notifications tapped");
|
||||
// },
|
||||
// tooltip: 'Notifications',
|
||||
// ),
|
||||
// ),
|
||||
//
|
||||
// const SizedBox(width: 12),
|
||||
|
||||
// Profile with popup
|
||||
PopupMenuButton<String>(
|
||||
@ -626,7 +626,9 @@ class _AppHeaderState extends ConsumerState<AppHeader> {
|
||||
onExit: (event) {
|
||||
// We check if the mouse is moving downwards (toward the popup)
|
||||
// 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();
|
||||
}
|
||||
},
|
||||
|
||||
Loading…
Reference in New Issue
Block a user