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>
8 lines
192 B
Dart
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;
|
|
}
|