Elegant Toast UI for Flutter Apps, inspired from iOS

Overview

Toasta

Simple, Smooth & Elegant toast libary for Flutter on all Platform. Inspired by iOS. Github Repo

iOS Android

Demo

Web Demo

How to use

Step 1: Add to pubspec.yaml

flutter pub add toasta

Step 2: Wrap your MaterialApp to ToastaContainer

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return ToastaContainer( // Wrap your app by ToastaContainer
      child: MaterialApp(
        ...
      ),
    );
  }
}

Step 3: Start using

final toast = Toast(title: "Hello World", subtitle: "This is Toasta");
Toasta(context).toast(toast);
Property Description Default
height double Height of toast 56
width double Width of toast 70% of screen width
darkMode bool Dark mode false
fadeInSubtitle bool Fade in animation for subtitle false
title String Widget The upper part of toast, you can passing both String or Widget to customize null
subtitle String Widget The lower part of toast, you can passing both String or Widget to customize null
leading Widget Customize leading part of toast null
trailing Widget Customize trailing part of toast null
onTap Function Callback on tap Toast null
onAppear Function Callback after appeared Toast null
onExit Function Callback after disappeared Toast null
status Enum You can passing ToastStatus success failed warning info null
backgroundColor Color Customize background color null
duration Duration Duration of toast Duration(seconds: 3)
borderRadius BorderRadius Border Radius of toast BorderRadius.all(Radius.circular(25.0))

Support

Feel free to suggest features, reporting bugs or customize attributes.

You might also like...

Flutter progress dialog. Support both Android and iOS platform.

Flutter progress dialog. Support both Android and iOS platform.

Flutter Progress Dialog [pub packages] | Flutter progress dialog. Support both Android and iOS platform

Oct 9, 2022

Pure Dart and Flutter package for Android,IOS and Web

Pure Dart and Flutter package for Android,IOS and Web

Fancy Flutter Alert Dialog Pure Dart and Flutter package for Android,IOS and Web A flutter Package to show custom alert Dialog,you can choose between

Sep 23, 2022

Flutter StatusBar Control for iOS & Android

Flutter StatusBar Control for iOS & Android

Since flutter_statusbar_manager is no longer maintained, this package is a re-publish and will be occasionally updated for continued use in existing projects.

Nov 15, 2022

pull_down_button is a rework of Flutter's PopupMenuButton to be styled like Pop-Up & Pull-Down Buttons from iOS 14+ with some additional customisation options.

pull_down_button is a rework of Flutter's PopupMenuButton to be styled like Pop-Up & Pull-Down Buttons from iOS 14+ with some additional customisation options.

pull_down_button is a rework of Flutter's PopupMenuButton to be styled like Pop-Up & Pull-Down Buttons from iOS 14+ with some additional customisation options.

Dec 30, 2022

A flutter grouped list widget similar to the iOS UITableview method name.

A flutter grouped list widget similar to the iOS UITableview method name.

group_tablelist A flutter grouped list widget similar to the iOS UITableview method name. Group tablelist package for Flutter. Features iOS tableview-

Aug 17, 2022

iOS-like proof of concept reorderable list with animations

iOS-like proof of concept reorderable list with animations

Reorderable List in Flutter iOS-like proof of concept reorderable list with animations Preview Getting Started See example/lib/main.dart for example u

Jan 2, 2023

PlutoGrid is a dataGrid that can be controlled by the keyboard on desktop and web. Of course, it works well on Android and IOS.

PlutoGrid is a dataGrid that can be controlled by the keyboard on desktop and web. Of course, it works well on Android and IOS.

PlutoGrid is a dataGrid that can be controlled by the keyboard on desktop and web.

Jan 4, 2023

A dart package to display a horizontal bar of customisable toggle tabs. Supports iOS and Android.

A dart package to display a horizontal bar of customisable toggle tabs. Supports iOS and Android.

toggle_bar A dart package to display a horizontal bar of customisable toggle tabs. Supports iOS and Android. Installation Depend on it. dependencies:

Jul 13, 2022

Cupertino_lists - an implementation of iOS-style lists (grouped and inset grouped).

Cupertino_lists - an implementation of iOS-style lists (grouped and inset grouped).

cupertino_lists cupertino_lists is an implementation of iOS-style lists (grouped and inset grouped). Warning: This package probably will not be mainta

Nov 3, 2022
Owner
Hoang Son Tung
☕️
Hoang Son Tung
A Styled Toast Flutter package.

flutter_styled_toast A Styled Toast Flutter package. You can highly customize toast ever. Beautify toast with a series of animations and make toast mo

null 67 Jan 8, 2023
A package for flutter to use alert and toast within one line code.

easy_alert A package for flutter to use alert and toast within one line code. Getting Started Add easy_alert: to your pubspec.yaml, and run flutt

null 34 Jun 25, 2021
Provider support for overlay, make it easy to build toast and In-App notification.

overlay_support Provider support for overlay, make it easy to build toast and In-App notification. this library support ALL platform Interaction If yo

Bin 340 Jan 1, 2023
This clock face was inspired by neumorphic design.

Flutter Clock This clock face was inspired by neumorphic design. The main goal during development was simplicity and attention to details. Clock face'

Dominik Roszkowski 94 Dec 9, 2022
Full customable rolling switch widget for flutter apps based on Pedro Massango's 'crazy-switch' widget

lite_rolling_switch Full customable rolling switch widget for flutter apps based on Pedro Massango's 'crazy-switch' widget https://github.com/pedromas

Eduardo Muñoz 48 Dec 1, 2022
Unofficial search provider for Medium for dart/flutter apps.

medium_search Unofficial search provider for Medium that can be used in dart or flutter apps. This library provides you an easy way to get search resu

Clone Conflict 1 Jan 10, 2022
Pick colors from pixels of everything visible in your Flutter apps

pixel_color_picker A widget that extracts colors from its childs. This package lets you basically extract colors from everything in your screen.

Eleandro Duzentos 14 Oct 17, 2022
A collapsible sidebar for Flutter apps implementing the Material Design.

collapsible_sidebar A collapsible sidebar for Flutter apps implementing the Material Design. Features Material Design Pre-built customizable tile widg

Arjun Sinha 121 Nov 30, 2022
A collection of pixel-perfect iOS-styled components and properties for Flutter, following the official guidelines.

cupertinew ⚠️ Experimental and work in progress ⚠️ A collection of pixel-perfect iOS-styled components and properties for Flutter, following the offic

null 30 Nov 10, 2022
A high performance Flutter Widget to render Bottts svg avatars on android/ios devices.

Flutter Avatars - Bottts A high performance Flutter Widget to render Bottts svg avatars on android/ios devices. (pub.dev) It's faster than other class

Abhijat Saxena 11 Dec 19, 2021