Skip to content

qurami/toastino

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

toastino

Toast component written in AngularDart. Provides clear and easy to use notifying system.

Usage

  1. Create a new ToastManagerComponent in your class in this way:

     ToastManagerComponent _toastManager;
    
      ToastinoExampleComponent(ComponentLoader toastComponentLoader, ViewContainerRef viewContainerRef){
           _toastManager = new ToastManagerComponent(toastComponentLoader, viewContainerRef);
      }
  2. Call ToastManager's newToast method to create a new toast.

     _toastManager.newToast(title, callback);

Libraries

  • toast_manager_component - The core of Toastino: it keeps trace of every toast created and manages their positioning and removal.