fancy_toast_advance 1.0.0 copy "fancy_toast_advance: ^1.0.0" to clipboard
fancy_toast_advance: ^1.0.0 copied to clipboard

An advanced fancy toast widget for Flutter with icons, colors, positions, and animations.

πŸŽ‰ Fancy Toast Advance #

An advanced toast notification package for Flutter.
Show beautiful, customizable toasts with icons, colors, animations, and positioning.

Flutter License: MIT


✨ Features #

βœ… Show toast with icon & text
βœ… Custom colors & border radius
βœ… Top & Bottom positions
βœ… Smooth fade animation
βœ… Lightweight & Fast


πŸš€ Installation #

Add this to your pubspec.yaml:

dependencies:
  fancy_toast_advance: ^1.0.0

## πŸ“Œ Example

Here’s a full example showing how to use **Fancy Toast Advance** in your app:

```dart
import 'package:flutter/material.dart';
import 'package:fancy_toast_advance/fancy_toast_advance.dart';

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

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: DemoPage(),
      debugShowCheckedModeBanner: false,
    );
  }
}

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

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(title: const Text("Fancy Toast Advance Example")),
      body: Center(
        child: ElevatedButton(
          onPressed: () {
            FancyToast.show(
              context,
              message: "Hello from Fancy Toast Advance πŸŽ‰",
              backgroundColor: Colors.blue,
              textColor: Colors.white,
              icon: Icons.thumb_up,
              duration: const Duration(seconds: 4),
              borderRadius: 20,
              elevation: 8,
              position: ToastPosition.top,
            );
          },
          child: const Text("Show Toast"),
        ),
      ),
    );
  }
}




## 🎨 Customization

| Parameter        | Type       | Default            | Description                       |
|------------------|-----------|-------------------|-----------------------------------|
| message          | String    | required           | The text to display               |
| backgroundColor  | Color     | Colors.black87     | Toast background color            |
| textColor        | Color     | Colors.white       | Text color                        |
| icon             | IconData  | Icons.info_outline | Leading icon                      |
| duration         | Duration  | 3 seconds          | Auto dismiss duration             |
| borderRadius     | double    | 12                 | Border radius of toast            |
| elevation        | double    | 6                  | Shadow blur                       |
| position         | enum      | bottom             | Toast position (top / bottom)     |
1
likes
0
points
34
downloads

Publisher

unverified uploader

Weekly Downloads

An advanced fancy toast widget for Flutter with icons, colors, positions, and animations.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on fancy_toast_advance