toastify 0.0.2 copy "toastify: ^0.0.2" to clipboard
toastify: ^0.0.2 copied to clipboard

A comprehensive Flutter package that displays multiple types of toast messages with customizable designs and animations.

example/lib/main.dart

import 'package:example/widgets/advance_usage.dart';
import 'package:example/widgets/basic_usage.dart';
import 'package:flutter/material.dart';

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

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: const MyHomePage(),
    );
  }
}

class MyHomePage extends StatefulWidget {
  const MyHomePage({super.key});

  @override
  State<MyHomePage> createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Center(
        child: Container(
          padding: const EdgeInsets.all(16),
          constraints: const BoxConstraints(maxWidth: 600),
          child: Column(
            crossAxisAlignment: CrossAxisAlignment.start,
            children: [
              SizedBox(
                height: MediaQuery.of(context).viewPadding.top + 16,
              ),
              Text(
                'Adaptive selector',
                style: Theme.of(context)
                    .textTheme
                    .headlineMedium
                    ?.copyWith(color: Colors.grey[800]),
              ),
              const SizedBox(height: 12),
              const BasicUsage(),
              const SizedBox(height: 12),
              const AdvanceUsage(),
            ],
          ),
        ),
      ),
    );
  }
}
3
likes
160
points
68
downloads

Publisher

unverified uploader

Weekly Downloads

A comprehensive Flutter package that displays multiple types of toast messages with customizable designs and animations.

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on toastify