Thanks to visit codestin.com
Credit goes to github.com

Skip to content

rootsoft23/delight_toast

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A delighful and very interactive toast or a snackbar to add more delight to your application

ezgif com-video-to-gif

Delight.toast.mp4

Features

  1. Trigger a toastbar
  2. Slide to dismiss a toastbar
  3. Auto dimiss a toastbar
  4. Dismiss on demand via action buttons
  5. Stacking a toasbar in a delightful way!

Getting started

In pubspec.yaml

    delightful_toast: ^1.2.0
// add the import statement
import  'package:delightful_toast/delight_toast.dart';

Usage

Use the toasbar whenever a event has been triggered like onPressed/onTapped or in any other situation where the event is enforced

ElevatedButton( onPressed:(){
     DelightToastBar(
              builder: (context) => const ToastCard(
                leading: Icon(
                  Icons.flutter_dash,
                  size: 28,
                ),
                title: Text(
                  "Hi I'm Dash, Let's have a walkthrough of Delight Toast",
                  style: TextStyle(
                    fontWeight: FontWeight.w700,
                    fontSize: 14,
                  ),
                ),
              ),
            ).show(context);

},
     child: const Text("Toast!")
)

About

A fork from the delight_toast package to fix some issues and add some functionalities

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Dart 100.0%