Elegant-Notification icon indicating copy to clipboard operation
Elegant-Notification copied to clipboard

Notification not showing when using rootNavigatorKey.currentContext!

Open Trung15010802 opened this issue 10 months ago • 0 comments

  ElegantNotification.success(
                        width: 300,
                        height: 80,
                        position: Alignment.bottomRight,
                        stackedOptions: StackedOptions(
                          key: 'above',
                          type: StackedType.above,
                        ),
                        description: Text(
                          maxLines: 2,
                          style: const TextStyle(
                            color: Colors.black,
                          ),
                          'description',
                        ),
                        title: Text(
                          style: const TextStyle(
                            fontWeight: FontWeight.bold,
                            color: Colors.black,
                            overflow: TextOverflow.ellipsis,
                          ),
                          'title',
                        ),
                      ).show(rootNavigatorKey.currentContext!);

Trung15010802 avatar Apr 17 '24 02:04 Trung15010802