fancy_snackbar 0.0.1 copy "fancy_snackbar: ^0.0.1" to clipboard
fancy_snackbar: ^0.0.1 copied to clipboard

Fancy Snackbar Flutter Package

example/lib/main.dart

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

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

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

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      title: 'example',
      theme: ThemeData(
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
        useMaterial3: true,
      ),
      home: const MyHomePage(),
    );
  }
}

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

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text("Package example"),
      ),
      body: Center(
        child: ElevatedButton(
            onPressed: () {
              FancySnackbar.show(
                  context, "Hi, I'm happy to use the Fancy Snackbar!",
                  logo: const Icon(Icons.done_all, color: Colors.white),
                  seconds: 05);
            },
            child: const Text("Show SnackBar!!")),
      ),
    );
  }
}
8
likes
140
points
25
downloads

Publisher

unverified uploader

Weekly Downloads

Fancy Snackbar Flutter Package

Repository (GitHub)
View/report issues

Documentation

API reference

License

GPL-3.0 (license)

Dependencies

flutter

More

Packages that depend on fancy_snackbar