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

outdated

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: RaisedButton(
        child: Text('Show snack'),
        onPressed: () => bar.show(context),
      ),
    );
  }
}
22
likes
0
pub points
82%
popularity

Publisher

verified publishermolland.sh

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

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter, pedantic

More

Packages that depend on snack