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

PropertyWhat does it do
titlemessage to be displayed
titleTextColormessage text color to be displayed
titleFontSizemessage text font size to be displayed
titleFontWeightmessage text font weight to be displayed
titleAlignmentmessage text Alignment to be displayed
textbutton text default is "Dismiss"
textColorbutton text color to be displayed
textFontSizebutton text font size to be displayed
backgroundColortray background color
durationis the length of time this animation should last.
showCurveThe curve to use in the forward direction
dismissCurveThe curve to use in the forward direction
showPulseTo apply a slow down nice effect during the animation
maxWidthTo set width especially on IPADS
marginEmpty space to surround the tray widget
paddingThis padding is in addition to any padding inherent in the tray widget
paddingThis padding is in addition to any padding inherent in the tray widget
richbarPositionSpecify the entry point of the Tray widget can be RichbarPosition.top on top of your screen or RichbarPosition.bottom on the bottom
onPanDownA Callback that fires when user taps the Tray widget
onPressedA Callback that fires when user taps the Button
isDismissibleDetermines if the user can swipe the widget/tray to dismiss.
onStatusChangedTo 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.

Libraries

color_constant
richbar
richbar_helper
richbar_route
string_constant