GithubHelp home page GithubHelp logo

andrewsfei / fluttertoast Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ponnamkarthik/fluttertoast

0.0 1.0 0.0 6.02 MB

Android Toast Plugin for Flutter

License: MIT License

Objective-C 68.04% Dart 16.02% Ruby 4.71% Java 7.57% Shell 0.92% Kotlin 0.23% Swift 0.66% HTML 1.84%

fluttertoast's Introduction

Android and iOS Toast Library for Flutter

Supported Platforms

If you dont want to use androidx then use fluttertoast version 2.2.11

How to Use

# add this line to your dependencies
fluttertoast: ^4.0.0
import 'package:fluttertoast/fluttertoast.dart';
Fluttertoast.showToast(
        msg: "This is Center Short Toast",
        toastLength: Toast.LENGTH_SHORT,
        gravity: ToastGravity.CENTER,
        timeInSecForIosWeb: 1,
        backgroundColor: Colors.red,
        textColor: Colors.white,
        fontSize: 16.0
    );
property description default
msg String (Not Null)(required) required
toastLength Toast.LENGTH_SHORT or Toast.LENGTH_LONG (optional) Toast.LENGTH_SHORT
gravity ToastGravity.TOP (or) ToastGravity.CENTER (or) ToastGravity.BOTTOM (Web Only supports top, bottom) ToastGravity.BOTTOM
timeInSecForIosWeb int (only for ios) 1
bgcolor Colors.red Colors.black
textcolor Colors.white Colors.white
fontSize 16.0 (float) 16.0
webShowClose false (bool) false
webBgColor String (hex Color) linear-gradient(to right, #00b09b, #96c93d)
webPosition String (left, center or right) right

To cancel all the toasts call

Fluttertoast.cancel()

Preview Images

If you need any features suggest

fluttertoast's People

Contributors

ponnamkarthik avatar cqhchan avatar bgetsug avatar caijinglong avatar vjpranay avatar zhaoya188 avatar yoavrofe avatar josephuszhou avatar lane128 avatar xubillde avatar alexteamx avatar boehrsi avatar asmh1989 avatar zhangyuwan0 avatar angryli avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.