Search packages, repositories and app categories

GitHub repositoryappdev/FlutterToast

FlutterToast

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

FlutterToast project cover
Stars
112
Forks
51
Last push (UTC)
Jan 7, 2025
Project status
Active

Original README

English project snapshot. Visit GitHub for the latest content.

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
appdev GitHub avatar
GitHub author

appdev ↗

apkdv.com

LanguagesDartCSS

Categories

Dependencies used

Dependency list 2 items

  • flutter{"sdk":"flutter"}
  • flutter_web_plugins{"sdk":"flutter"}

How do I choose a repository?

Start with your use case, compare repository activity, and check the original project before adopting it.

  1. Search by repository name, owner or description, then narrow the results by topic.
  2. Compare stars, forks and recent pushes. Stars show community interest, not a guarantee of quality.
  3. Read the README, license and issues on GitHub before using a project.

Sources and maintenance

“A repository is the most basic element of GitHub.”

GitHub Docs — About repositories ↗