Skip to content

cyberpwnn/dart_snackbar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple snackbar

Usage

import 'package:snackbar/snackbar.dart';

// Simple snackbar
snack("Hello World");

// Snack with a button
snackUndo("Deleted XYZ", () {
  // It was NOT undone, proceed with deletion
}, undoText: "Undo",
    duration: const Duration(seconds: 5));

// Clear the current snackbar
clearSnackbar();

Releases

No releases published

Packages

No packages published

Languages