flutter-master-detail-view

Create responsive Master-Detail interfaces in Flutter applications.

58|6|Updated Jan 27, 2026
One-click install
npx skills add https://github.com/rodydavis/skills --skill flutter-master-detail-view
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: flutter-master-detail-view
Source: https://github.com/rodydavis/skills/tree/main/skills/snippets_flutter-master-detail-view
Command: npx skills add https://github.com/rodydavis/skills --skill flutter-master-detail-view

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill addresses the challenge of creating a user interface in Flutter that seamlessly adapts to different screen sizes, providing an optimal experience for both mobile and larger displays when presenting lists and their corresponding details.

Core Features & Use Cases

  • Adaptive Layouts: Implements a Master-Detail pattern that intelligently adjusts its layout based on available screen width.
  • Multi-column Support: Utilizes multi-column layouts for larger screens (tablets, desktops) to show both the list and detail pane simultaneously.
  • Mobile Navigation: On smaller screens (mobile), it navigates to a separate detail screen, preserving screen real estate.
  • Resizable Details Pane: Allows users to resize the details pane on larger screens for a customized view.
  • Use Case: Building a contact management app where a list of contacts is shown on the left, and selecting a contact displays their details on the right on a tablet, while on a phone, selecting a contact navigates to a dedicated detail screen.

Quick Start

Implement the MasterDetail widget in your Flutter application, providing the necessary listBuilder, detailBuilder, and onPush callbacks.

Frequently Asked Questions about flutter-master-detail-view

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a responsive master-detail UI in Flutter?

A responsive master-detail UI in Flutter adapts to screen width by displaying multi-column layouts on larger screens and using push-navigation to separate detail views on mobile devices.

What is the best way to handle list and detail views on both tablets and phones in Flutter?

The best way to handle list and detail views in Flutter is using an adaptive master-detail pattern that shows both panes simultaneously on tablets while navigating to a dedicated detail screen on phones to preserve real estate.

Can I resize the details pane in a Flutter multi-column layout?

Yes, you can resize the details pane in a Flutter multi-column layout. The master-detail pattern allows users to dynamically resize the details pane on larger screens for a customized viewing experience.

How does Flutter handle selection state in an adaptive master-detail layout?

Flutter handles selection state in an adaptive master-detail layout by managing the selected item internally, ensuring the detail pane updates dynamically on larger screens or pushes the correct data to a separate mobile detail screen.

Do I need any external dependencies to build a responsive master-detail view in Flutter?

You do not need external dependencies to build a responsive master-detail view in Flutter. The Skill operates with no dependencies, requiring only standard Flutter components to implement the adaptive layouts and navigation.