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.
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'),
),
),
),
),
);
}