docking
1.16.2, released 8 months ago by caduandrade.net
Flutter layout for docking widgets into split and tabbed views.
WASM-ready
What it does
Provides a set of widgets to arrange child widgets in docking areas that can be split horizontally or vertically and grouped into tabbed panels. Supports saving and loading the layout state as a string.
AI-written summary of version 1.16.2, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need a dynamic workspace with resizable split panes and tabbed sections, like IDEs or dashboards.
- You want to let users rearrange panels at runtime via drag‑and‑drop.
Skip it when
- The UI is static and does not require runtime rearrangement.
- You prefer a lightweight layout without additional dependencies.
Strengths
- Flexible split‑view and tabbed docking system
- Built‑in save/load of layout state
- Allows disabling drag‑and‑drop per widget
Weaknesses
- Relies on the external tabbed_view package, which may cause compatibility issues
- Documentation is limited to a demo site
- Potential bugs in drag‑and‑drop handling
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 3
import 'package:flutter/material.dart';
import 'package:docking/docking.dart';
void main() => runApp(const MyApp());
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
body: Docking(
layout: DockingLayout(
areas: [
DockingArea(
id: 'root',
children: [
DockingTabs(
children: [
DockingItem(id: 'a', child: const Text('Panel A')),
DockingItem(id: 'b', child: const Text('Panel B')),
],
),
],
),
],
),
),
),
);
}
}
Alternatives
Packages that do the same job and could replace docking.
- assorted_layout_widgets
Offers a collection of layout widgets (grids, stacks, etc.) that can replace basic docking needs without extra dependencies.
93Compare
Works with
Packages commonly used together with docking: ones it builds on, ones built on it, and its own family.