bottom_sheet_x 0.0.5
bottom_sheet_x: ^0.0.5 copied to clipboard

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'),
),