A Flutter package that shows alert from top or bottom of the screen.
# add this line to your dependencies
edge_alerts: ^0.0.1
import 'package:edge_alerts/edge_alerts.dart';
edgeAlert(context, title: 'Title', description: 'Description', gravity: Gravity.top);
property | description |
---|---|
context | BuildContext (required) |
title | 'Your title goes here' (nullable) |
description | 'Your description goes here' (nullable) |
icon | IconData (nullable) |
backgroundColor | Color (nullable) (Default theme primary color) |
duration | number of seconds in int |
gravity | enum Gravity { top , bottom } |
https://github.com/Tapadoo/Alerter/
https://github.com/mohamed6996/EdgeAlert
MIT License