eyro_toast 1.0.0 icon indicating copy to clipboard operation
eyro_toast: ^1.0.0 copied to clipboard

A simple yet powerful Flutter plugin for showing Toast Mobile, Desktop and Web.

Flutter Toast #

Pub Build Status Coverage Status GitHub FOSSA Status

A simple yet powerful Flutter plugin for showing Toast at Android and iOS.

Features:

  • Native Toast
  • Pure Flutter Toaster

Installation #

Add to pubspec.yaml:

dependencies:
  eyro_toast: any

Import Library #

import 'package:eyro_toast/eyro_toast.dart';

Native Toast #

// showing short Toast
await EyroToast.showToast(
  text: 'This is short toast',
  duration: ToastDuration.short,
);

// showing long Toast
await EyroToast.showToast(
  text: 'This is long toast',
  duration: ToastDuration.long,
);

Pure Flutter Toaster #

await showToaster(
  text: 'This is a centered Toaster',
  duration: ToastDuration.short,
  gravity: ToastGravity.bottom,
  borderRadius: const BorderRadius.all(Radius.circular(16)),
  backgroundColor: const Color(0xAA000000),
  fontColor: const Color(0xFFFFFFFF),
  textAlign: TextAlign.center,
  margin: const EdgeInsets.symmetric(horizontal: 16),
  padding: const EdgeInsets.symmetric(
    horizontal: 16,
    vertical: 12,
  ),
  border: null,
);

Author #

Eyro Toast plugin is developed by Eyro Labs. You can contact us at admin@cubeacon.com.

6
likes
130
pub points
69%
popularity

Publisher

verified publisher iconeyro.co.id

A simple yet powerful Flutter plugin for showing Toast Mobile, Desktop and Web.

Homepage

Documentation

API reference

License

Icon for licenses.MIT (LICENSE)

Dependencies

flutter, flutter_web_plugins

More

Packages that depend on eyro_toast