top_alert_notification 0.0.4 top_alert_notification: ^0.0.4 copied to clipboard
Creates a top notification centered in the screen. Pass in a child widget, a function for onTap, and enable a dismiss button. Supports a swipe up to dismiss option.
Welcome to the top alert notification widget #
Flutter snackbars and toast widgets only show at the bottom of the main application out of the box. This is a customizable framework to allow a top alert to show when needed, as well as being able to dismiss the alert as required.
onTapVoidCallback to allow for the overlay to exicute funcontality
- Swipe up to dismiss
closeOnXicon to show in the right side to dismiss
- Custom color background for view
- Supports taking a widget as the child
Future plans #
- Expand the view to be flexible height
- Allow more dynamic widgets to be child of the overlay
- Work through any navigation issues to auto remove the overlay
Getting Started #
top_alert_notification: 0.0.1to the
flutter pub getto include the package
import 'package:import 'package:top_alert_notification/top_alert_notification.dart';
- Create new object with the
BuildContextand child widgets to show. Then call
.showTopAlert()to show the alert or
.dismissTopAlert()to remove the alert
For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.