Skip to content

Notification not showing when using rootNavigatorKey.currentContext! #122

@Trung15010802

Description

@Trung15010802
  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!);

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions