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

outdated

flutter bottom sheet.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:bottom_sheet_x/bottom_sheet_x.dart';

void main() => runApp(MaterialApp(
      home: MyApp(),
    ));

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text('Plugin example app'),
      ),
      body: Center(
        child: Column(
          children: <Widget>[
            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
2%
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