interactive_bottom_sheet 0.1.1 copy "interactive_bottom_sheet: ^0.1.1" to clipboard
interactive_bottom_sheet: ^0.1.1 copied to clipboard

A customizable interactive bottom sheet, which lets you interact with the screen behind it.

Interactive Bottom Sheet #

package publisher style license

A customizable interactive bottom sheet, which lets you interact with the screen behind it

Preview example

Features #

  • Easy to use
  • Customizable colors
  • Customizable DraggableArea
  • Customizable heights and widths of different parts of the sheet
  • Possibility to declare snap points

Usage #

Depend on it:

dependencies:
  interactive_bottom_sheet: ^0.1.0

Import it:

import 'package:interactive_bottom_sheet/interactive_bottom_sheet.dart';

Example

Scaffold(
  bottomSheet: const InteractiveBottomSheet(
    options: InteractiveBottomSheetOptions(),
    child: Text(
       'Lorem ipsum dolor sit amet.'
    ),
  ),
);

Customization options #

Scaffold(
  bottomSheet: const InteractiveBottomSheet(
    options: InteractiveBottomSheetOptions(
      maxSize: 0.75,
      backgroundColor: Colors.green,
      snapList: [0.0, 0.25, 0.5],
      draggableAreaHeight: 75.0,
      draggableAreaColor: Colors.grey,
      draggableAreaIndicatorColor: Colors.grey,
      draggableAreaIndicatorWidth : 50.0,
      draggableAreaIndicatorHeight = 3.0,
      draggableAreaIndicatorRadius = 4.0,
      ),
    child: Text(
       'Lorem ipsum dolor sit amet.'
    ),
  ),
);

Top Border Radius #

To get rounded Borders at the top of the sheet (usual for iOS) on the top side of the widget, it is necessary to overwrite the bottomSheetTheme.

Theme(
  data: Theme.of(context).copyWith(
    bottomSheetTheme: const BottomSheetThemeData(
      backgroundColor: Colors.transparent
    ),
  ),
  child: const Scaffold(
    bottomSheet: const InteractiveBottomSheet(
      options: InteractiveBottomSheetOptions(),
      child: Text('Lorem ipsum dolor sit amet.'),
    ),
  ),
);
47
likes
0
pub points
85%
popularity

Publisher

verified publishercosee.biz

A customizable interactive bottom sheet, which lets you interact with the screen behind it.

Homepage
Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on interactive_bottom_sheet