scrumlab_snack 2.0.0
scrumlab_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:scrumlab_snack/scrumlab_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(
        onPressed: () => bar.show(context),
        child: Text('Show snack'),
      ),
    );
  }
}
0
likes
130
pub points
27%
popularity

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, pedantic

More

Packages that depend on scrumlab_snack