snack 2.0.0 copy "snack: ^2.0.0" to clipboard
snack: ^2.0.0 copied to clipboard

An extension library for easier access to commonly used functionality for SnackBars

example/example.dart

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

void main() {
  runApp(Example());
}

class Example extends StatelessWidget {
  final bar = SnackBar(content: Text('Hello, world!'));
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: ElevatedButton(
        child: Text('Show snack'),
        onPressed: () => bar.show(context),
      ),
    );
  }
}
22
likes
160
pub points
79%
popularity

Publisher

verified publishermolland.sh

An extension library for easier access to commonly used functionality for SnackBars

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on snack