toast_plus 1.0.4 copy "toast_plus: ^1.0.4" to clipboard
toast_plus: ^1.0.4 copied to clipboard

retracted

A customizable toast notification package for Flutter with advanced features and great design.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:toast_plus/toast_plus.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: Text('ToastPlus Demo'),
        ),
        body: Center(
          child: ElevatedButton(
            onPressed: () {
              ToastPlus.show(
                context,
                message: 'This is a toast message!',
                position: ToastPosition.bottom,
                backgroundColor: Colors.green,
                textColor: Colors.white,
                fontSize: 16.0,
                padding: EdgeInsets.symmetric(horizontal: 24.0, vertical: 12.0),
                margin: EdgeInsets.all(16.0),
                borderRadius: BorderRadius.circular(8.0),
                duration: Duration(seconds: 5),
                delay: Duration(seconds: 1),
                isRTL: false,
                noClickOutside: true,
                isPopup: false,
                endTimeWidget: Text('Ends in: 5s'),
                icon: Icon(Icons.info, color: Colors.white),
                actionButton: TextButton(
                  onPressed: () {},
                  child: Text('Action', style: TextStyle(color: Colors.white)),
                ),
              );
            },
            child: Text('Show Toast'),
          ),
        ),
      ),
    );
  }
}
3
likes
0
pub points
9%
popularity

Publisher

unverified uploader

A customizable toast notification package for Flutter with advanced features and great design.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, flutter_web_plugins

More

Packages that depend on toast_plus