Friday, March 29, 2024

Smooth material bottom sheet implementation for Flutter

elastic material bottom sheet

An elastic material bottom sheet implementation for Flutter.

This is still an early preview, some behaviors can change or being removed.

Installation

This will add a line like this to your package’s pubspec.yaml (and run an implicit dart pub get):


dependencies:
  rubber: ^1.0.1

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:rubber/rubber.dart';

demo

Example

https://github.com/mcrovero/rubber/blob/master/example/lib/main.dart