light_toast 0.0.6 copy "light_toast: ^0.0.6" to clipboard
light_toast: ^0.0.6 copied to clipboard

A lightweight Flutter package for displaying customizable toast messageswith support for icons, images, and configurable durations.

example/lib/main.dart

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

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

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Toast Example'),
        ),
        body: Center(
          child: ElevatedButton(
            onPressed: () {
              Toast.show(
                context,
                'Hello, Flutter!',
              );
            },
            child: const Text('Show Toast'),
          ),
        ),
      ),
    );
  }
}
4
likes
0
pub points
62%
popularity

Publisher

unverified uploader

A lightweight Flutter package for displaying customizable toast messageswith support for icons, images, and configurable durations.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on light_toast