flex_toast 1.0.1 copy "flex_toast: ^1.0.1" to clipboard
flex_toast: ^1.0.1 copied to clipboard

A flexible toast library for Flutter with pluggable policies, layouts, transitions, and pre-built cards.

example/lib/main.dart

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

import 'playground/playground_page.dart';
import 'theme/app_text_styles.dart';
import 'theme/app_theme.dart';

Future<void> main() async {
  WidgetsFlutterBinding.ensureInitialized();
  await AppTextStyles.preloadAll();
  runApp(const ExampleApp());
}

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'FlexToast Playground',
      theme: AppTheme.themeData,
      builder: (context, child) => ToastProvider(child: child!),
      home: const PlaygroundPage(),
    );
  }
}
1
likes
150
points
25
downloads

Documentation

API reference

Publisher

verified publisherkrajna.dev

Weekly Downloads

A flexible toast library for Flutter with pluggable policies, layouts, transitions, and pre-built cards.

Repository (GitLab)
View/report issues

Topics

#toast #snackbar #notifications #overlay #ui

License

MIT (license)

Dependencies

flutter

More

Packages that depend on flex_toast