top_sheet 0.0.3 copy "top_sheet: ^0.0.3" to clipboard
top_sheet: ^0.0.3 copied to clipboard

outdated

Top sheet

top_sheet #

flutter Top sheet package

Getting Started #

installation #

install latest version from Pub

Usage #

class TopSheetDemo extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Container(
        child: Center(
          child: RaisedButton(
            child: Text("Click Me"),
            onPressed: () {
              TopSheet.show(
                context: context,
                child: Column(
                  mainAxisSize: MainAxisSize.min,
                  children: <Widget>[
                    ListTile(
                      leading: Icon(Icons.music_note),
                      title: Text('Music'),
                    ),
                    ListTile(
                      leading: Icon(Icons.photo_album),
                      title: Text('Photos'),
                    ),
                    ListTile(
                      leading: Icon(Icons.videocam),
                      title: Text('Video'),
                    ),
                  ],
                ),
                direction: TopSheetDirection.TOP,
              );
            },
          ),
        ),
      ),
    );
  }
}

This project is a starting point for a Dart package, a library module containing code that can be shared easily across multiple Flutter or Dart projects.

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

8
likes
10
pub points
49%
popularity

Publisher

unverified uploader

Top sheet

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on top_sheet