Skip to content

Flutter Toast 使用 Flutter 原生 API实现的 Toast 功能

License

Notifications You must be signed in to change notification settings

appdev/FlutterToast

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

65 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Toast

A Flutter Toast plugin.

pub package

How to Use

# add this line to your dependencies
toast: ^0.3.0
import 'package:toast/toast.dart';
ToastContext().init(context);
Toast.show("Toast plugin app", duration: Toast.lengthShort, gravity:  Toast.bottom);
property description
msg String (Not Null)(required)
duration Toast.lengthShort or Toast.lengthLong (optional)
gravity Toast.top (or) Toast.center[not supported on web] (or) Toast.bottom
textStyle TextStyle (default fontSize:15, color: Colors.white)
backgroundColor Color (default Color(0xAA000000))
backgroundRadius double (default 16)
border Border (optional)

toast toast

License

MIT License

About

Flutter Toast 使用 Flutter 原生 API实现的 Toast 功能

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published