worldhopper/lib/helpers/responsive_helper.dart
Felipe M. a24307d873
feat: tablet layout with sidebar navigation and responsive grids
Use width-based adaptive layout (768px breakpoint) so tablets get a
NavigationRail sidebar instead of the bottom bar, and grid columns
scale from 2 to 5 based on available width.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-18 12:44:45 +01:00

8 lines
192 B
Dart

bool isWideScreen(double width) => width >= 768;
int gridColumnCount(double width) {
if (width >= 1280) return 5;
if (width >= 1024) return 4;
if (width >= 768) return 3;
return 2;
}