draggable_home
1.0.5, released 3 years ago by an unverified publisher
A draggable home page widget with expandable header and customizable body
What it does
Provides a Scaffold‑like widget that lets the header stretch and collapse with drag gestures. It supports custom header, body, bottom sheet, navigation bar, and scroll physics.
AI-written summary of version 1.0.5, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need a sliding home page with a stretchable header
- You want a single widget that handles scrolling and layout of header and body
- You prefer a declarative API without extra state management
Skip it when
- You need complex state management or custom animations beyond what the widget offers
- You are building a highly custom layout that requires fine‑grained control over scroll physics
Strengths
- Easy to integrate with a single widget
- Highly customizable via many properties
- Supports multiple platforms (android, ios, web, desktop)
- No external state management required
Weaknesses
- Limited to the provided layout; not a full state‑management solution
- No built‑in theming or animation beyond basic scroll physics
- Relies on Flutter’s Scaffold and Sliver under the hood
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 1
Add dependency in pubspec and import draggable_home.dart
DraggableHome(
title: Text("Title"),
headerWidget: headerWidget(),
body: [
Container(height: 200, color: Colors.blue),
ListView.builder(
padding: EdgeInsets.only(top: 0),
physics: NeverScrollableScrollPhysics(),
shrinkWrap: true,
itemCount: 10,
itemBuilder: (context, index) => Card(
child: ListTile(title: Text("Item "+index.toString())),
),
),
],
)Alternatives
Packages that do the same job and could replace draggable_home.
- app_badge_plus
Flutter plugin to set numeric badges on app icons for iOS, Android, and macOS
84Compare - im_stepper
A collection of stepper and page indicator widgets for Flutter
50Compare
Works with
Packages commonly used together with draggable_home: ones it builds on, ones built on it, and its own family.