Usage

To use this package add richbar as a dependency in your pubspec.yaml and add this import in your file

import 'package:richbar/richbar_helper.dart';

Screenshots

Andriod Shot GIF Shot

How to use

Simply create a Richbar widget and pass in the required parameters

Richbar(
      title: title!,
      text: action,
      backgroundColor: const Color(0XFF1DA64D),
      duration: const Duration(seconds: 2),
      richbarPosition: RichbarPosition.top,
    );

Quick reference

Property What does it do
title message to be displayed
titleTextColor message text color to be displayed
titleFontSize message text font size to be displayed
titleFontWeight message text font weight to be displayed
titleAlignment message text Alignment to be displayed
text button text default is "Dismiss"
textColor button text color to be displayed
textFontSize button text font size to be displayed
backgroundColor tray background color
duration is the length of time this animation should last.
showCurve The curve to use in the forward direction
dismissCurve The curve to use in the forward direction
showPulse To apply a slow down nice effect during the animation
maxWidth To set width especially on IPADS
margin Empty space to surround the tray widget
padding This padding is in addition to any padding inherent in the tray widget
padding This padding is in addition to any padding inherent in the tray widget
richbarPosition Specify the entry point of the Tray widget can be RichbarPosition.top on top of your screen or RichbarPosition.bottom on the bottom
onPanDown A Callback that fires when user taps the Tray widget
onPressed A Callback that fires when user taps the Button
isDismissible Determines if the user can swipe the widget/tray to dismiss.
onStatusChanged To listen to the Richbar Status change

MIT License

MIT License

Copyright (c) 2022 Dammy Richie

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.