snapping_sheet 3.0.0-nullsafety.0 copy "snapping_sheet: ^3.0.0-nullsafety.0" to clipboard
snapping_sheet: ^3.0.0-nullsafety.0 copied to clipboard

outdated

A package that provides a sheet widget that snaps to different vertical positions

example/lib/main.dart

import 'package:flutter/material.dart';

import 'listview_example.dart';
import 'placeholder_example.dart';
import 'topsheet_example.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
        title: 'Flutter Demo',
        theme: ThemeData(
          primarySwatch: Colors.blue,
        ),
        routes: {
          '/ListViewExample': (context) => ListViewSnapSheetExample(),
          '/PlaceholderExample': (context) => PlaceholderSnapSheetExample(),
          '/TopSnapSheetExample': (context) => TopSnapSheetExample(),
        },
        home: Scaffold(
          body: Builder(
            builder: (context) {
              return Padding(
                padding: EdgeInsets.all(25.0),
                child: Column(
                  crossAxisAlignment: CrossAxisAlignment.stretch,
                  mainAxisAlignment: MainAxisAlignment.center,
                  children: <Widget>[
                    ElevatedButton(
                      child: Text('Listview example'),
                      onPressed: () {
                        Navigator.of(context).pushNamed('/ListViewExample');
                      },
                    ),
                    ElevatedButton(
                      child: Text('Placeholder example'),
                      onPressed: () {
                        Navigator.of(context).pushNamed('/PlaceholderExample');
                      },
                    ),
                    ElevatedButton(
                      child: Text('Top sheet example'),
                      onPressed: () {
                        Navigator.of(context).pushNamed('/TopSnapSheetExample');
                      },
                    ),
                  ],
                ),
              );
            },
          ),
        ));
  }
}
732
likes
0
pub points
95%
popularity

Publisher

verified publisheradamjonsson.dev

A package that provides a sheet widget that snaps to different vertical positions

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on snapping_sheet