light_toast 0.0.8 copy "light_toast: ^0.0.8" to clipboard
light_toast: ^0.0.8 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(
                'Hello, Flutter!',
              );
            },
            child: const Text('Show Toast'),
          ),
        ),
      ),
    );
  }
}
4
likes
160
pub points
54%
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

Documentation

API reference

License

MIT (license)

Dependencies

flutter, get

More

Packages that depend on light_toast