koukibadr / Elegant-Notification

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

notificationPosition? How is it used? #104

Closed yaser-p closed 6 months ago

yaser-p commented 8 months ago

notificationPosition will no longer set the alert position instead use position with Alignment type ! How is it used?

koukibadr commented 8 months ago

Now you need to add position attribute when creating the notification example:

ElegantNotification.info(
                    width: 360,
                    position: Alignment.centerLeft,
                    animation: AnimationType.fromLeft,
                    title: Text('Info'),
                    description: Text(
                      'This account will be updated once you exit',
                    ),
                    showProgressIndicator: false,
                    onDismiss: () {},
                  ).show(context);