smart_layout_switcher library

A Flutter package for responsive layout switching with smooth animations

This library provides widgets that automatically adapt their layout based on available screen space, transitioning smoothly between different layout types. It's particularly useful for creating responsive UIs that work across different screen sizes and orientations.

Main components:

Typical usage:

SmartLayoutSwitcher(
  children: contentWidgets,
  listThreshold: 600,
  gridThreshold: 900,
  masonryThreshold: 1200,
)

Features:

  • Automatic responsive layout switching
  • Smooth animated transitions
  • Customizable breakpoints
  • Multiple layout types
  • Efficient rendering

Classes

MasonryLayout
A responsive masonry layout that displays items with variable heights in columns
SmartLayoutSwitcher
A smart layout switcher widget that automatically transitions between different layout types based on available width.
StaggeredLayout
A responsive staggered grid layout that displays items with varying sizes