flutter_animated_toast 0.0.3 copy "flutter_animated_toast: ^0.0.3" to clipboard
flutter_animated_toast: ^0.0.3 copied to clipboard

A lightweight animated toast widget for Flutter using OverlayEntry with smooth slide animations.

example/lib/main.dart

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

void main() {
  runApp(const ExampleApp());
}

class ExampleApp extends StatelessWidget {
  const ExampleApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(title: const Text("Animated Toast Example")),
        body: Center(
          child: Builder(
            builder: (context) {
              return ElevatedButton(
                onPressed: () {
                  FlutterAnimatedToast.show(
                    context,
                    message: 'Hello from flutter animated toast!',
                  );
                },
                child: const Text("Show Toast"),
              );
            }
          ),
        ),
      ),
    );
  }
}
2
likes
160
points
33
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A lightweight animated toast widget for Flutter using OverlayEntry with smooth slide animations.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter

More

Packages that depend on flutter_animated_toast