your_snackbar 1.1.0 copy "your_snackbar: ^1.1.0" to clipboard
your_snackbar: ^1.1.0 copied to clipboard

Snackbar with customizable feature

🍫 Your SnackBar #

Your SnackBar is a customizable Snackbar widget for Flutter that lets you create beautiful animations and flexible notification styles.


πŸš€ Usage #

Add the showYourSnackbar function to display a Snackbar with any content:

onPressed: () => showYourSnackbar(
  context,
  child: const Padding(
    padding: EdgeInsets.all(8.0),
    child: Row(
      mainAxisSize: MainAxisSize.min,
      children: [
        Icon(Icons.airplane_ticket, color: Colors.white),
        SizedBox(width: 20),
        Flexible(
          child: Text(
            'Ticket Added',
            style: TextStyle(color: Colors.white),
          ),
        ),
      ],
    ),
  ),
),

🎨 Styles #

You can use predefined styles or customize your own:

βœ… Success

style: YourSnackbarStyle.success(context),

❌ Error

style: YourSnackbarStyle.error(context),

βš™οΈ Custom

style: YourSnackbarStyle(
  contentDecoration: const BoxDecoration(),
  contentPadding: const EdgeInsets.symmetric(),
  showContentCurve: Curves.ease,
  hideContentCurve: Curves.bounceIn,
),

Other features #

  • You can also set the isPersistent property to true to keep the content in place until it’s swiped away.
  • You can control when the snackbar should hide with duration property

🧩 Animation Example #

Video Frame

πŸ“„ License #

This project is licensed under the MIT License.

0
likes
150
points
7
downloads

Publisher

unverified uploader

Weekly Downloads

Snackbar with customizable feature

Repository (GitHub)
View/report issues

Topics

#snackbar #toast

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on your_snackbar