Skip to content
pubscout

snapping_sheet_2

3.1.5, released 4 years ago by fusarihan.com

A customizable vertical and horizontal sheet widget that snaps to different positions.

WASM-ready
$ flutter pub add snapping_sheet_2
Source repository

What it does

Provides a sheet widget that can be placed anywhere (not limited to the bottom) and snaps to different vertical and horizontal positions. It supports custom animations, scrollable widgets inside the sheet, and controller-based manipulation.

AI-written summary of version 3.1.5, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need a bottom sheet or floating panel that snaps to specific positions.
  • You require a sheet that can be oriented either vertically or horizontally.
  • You need the sheet to coordinate smoothly with an inner scrollable widget like a ListView.

Skip it when

  • You only need a standard Material Design bottom sheet with default behavior.
  • You do not need snapping functionality or custom sheet positioning.

Strengths

  • Supports both vertical and horizontal snapping sheets.
  • Can adapt to scrollable widgets inside the sheet.
  • Fully customizable animations, snap positions, and grabbing widgets.

Weaknesses

  • Inner scrollable widgets require a specific configuration of the reverse property depending on their position.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0
import 'package:flutter/material.dart';
import 'package:snapping_sheet_2/snapping_sheet.dart';

class GettingStartedExample extends StatelessWidget {
    @override
    Widget build(BuildContext context) {
        return Scaffold(
            body: SnappingSheet(
                child: MyOwnPageContent(), 
                grabbingHeight: 75,
                grabbing: MyOwnGrabbingWidget(),
                sheetBelow: SnappingSheetContent(
                    draggable: (details) => true,
                    child: MyOwnSheetContent(),
                ),
            ),
        );
    }
}

Alternatives

Packages that do the same job and could replace snapping_sheet_2.