bottom_sheet_x 0.0.5 copy "bottom_sheet_x: ^0.0.5" to clipboard
bottom_sheet_x: ^0.0.5 copied to clipboard

outdated

flutter bottom sheet.

bottom_sheet_x #

Example #

import 'package:bottom_sheet_x/bottom_sheet_x.dart';

RaisedButton(
    onPressed: () {
    ScrollController _scrollController = ScrollController();
    NavBottomSheetController _navBottomSheetController =
        NavBottomSheetController();
    showNavBottomSheet(
        context: context,
        navBottomSheetController: _navBottomSheetController,
        backdropColor: Colors.white.withOpacity(0.2),
        backgroundColor: Colors.red,
        height: 360.0,
        hasScrollView: true,
        scrollController: _scrollController,
        header: Container(
        color: Colors.grey[300],
        height: 50.0,
        child: Text('Header'),
        ),
        body: ListView(
        controller: _scrollController,
        children: <Widget>[
            RaisedButton(
            onPressed: () {
                _navBottomSheetController.close({'name': 'close'});
            },
            child: Text('close navBottomSheet'),
            ),
            Container(
            color: Colors.yellow,
            height: 200.0,
            child: Text('data'),
            ),
            Container(
            color: Colors.green,
            height: 200.0,
            child: Text('data'),
            ),
            Container(
            color: Colors.indigo,
            height: 200.0,
            child: Text('data'),
            ),
            Container(
            color: Colors.yellow,
            height: 200.0,
            child: Text('data'),
            ),
            Container(
            color: Colors.green,
            height: 200.0,
            child: Text('data'),
            ),
            Container(
            color: Colors.indigo,
            height: 200.0,
            child: Text('data'),
            ),
        ],
        ),
    ).then((onValue) {
        print(onValue);
    });
    },
    child: Text('navBottomSheet'),
),
10
likes
0
pub points
3%
popularity

Publisher

unverified uploader

flutter bottom sheet.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on bottom_sheet_x