koukibadr / Elegant-Notification

https://pub.dev/packages/elegant_notification
MIT License
46 stars 30 forks source link

Stack mode? #102

Open mennovanhout opened 8 months ago

mennovanhout commented 8 months ago

Feature request: Multiple notifications

It would be nice if they stack underneath eachother.

koukibadr commented 8 months ago

Thanks @mennovanhout for this amazing proposition I'll work on it to have it in the next versions

mennovanhout commented 8 months ago

Thanks @mennovanhout for this amazing proposition I'll work on it to have it in the next versions

I am sure to buy you a coffee if you succeed ! Literally the only thing I miss in your awesome package. Will ship it in my next update of https://hdashboards.app

marioki commented 7 months ago

I like the idea of this feature. But how would it work on mobile? There is a similar open issue with this image as an example: Add support for adding a gap when pushing multiple notifications #82 image

But would this type of stacking make sense for notifications inside an app? More than one notification would start covering the screen.

In the current state of the package it literally stacks each new notification on top of the other. So maybe we could make it so the timer for each notification does not start until it is on the top of the stack. That way the user does not miss a notification that can't be seen.

And to comunicate that there are more than one notification we can offset them by a small margin. IMG_51417EE0A219-1

So a stack but without scrolling.

mennovanhout commented 7 months ago

@marioki In my opinion your screenshots don't make sense. That only works for notifications without countdown auto close timer. As this package is mainly used to automatically close notifications aswell, I would expect it to work like: image

image

marioki commented 7 months ago

I agree with the examples you are posting. But i think that kind of stacking works well only on big screens like Desktops or Web apps.

My concern and the point of my first comment is that kind of stacking would make for a bad expirience on mobile. As it would start covering more and more screen space. And I think that we should discuss how this feature would work on the different platforms supported by the package.

Trung15010802 commented 5 months ago

can i use it right now?

koukibadr commented 5 months ago

@Trung15010802 still not published it will be published this week