expandable_bottom_sheet 1.0.0+2
expandable_bottom_sheet: ^1.0.0+2 copied to clipboard

This is a BottomSheet with a draggable height like the Google Maps App on Android.

example/lib/main.dart

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

void main() {
  runApp(ExampleEasy());
}

class ExampleEasy extends StatelessWidget {
  const ExampleEasy({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) => MaterialApp(
        home: Scaffold(
          body: ExpandableBottomSheet(
            background: Container(
              color: Colors.red,
              child: Center(
                child: Text('Background'),
              ),
            ),
            persistentHeader: Container(
              height: 40,
              color: Colors.blue,
              child: Center(
                child: Text('Header'),
              ),
            ),
            expandableContent: Container(
              height: 500,
              color: Colors.green,
              child: Center(
                child: Text('Content'),
              ),
            ),
          ),
        ),
      );
}
49
likes
120
pub points
90%
popularity

This is a BottomSheet with a draggable height like the Google Maps App on Android.

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

torben.keller.develop@gmail.com

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on expandable_bottom_sheet