mirrored_repositories/flutter_showcase/example/apps/fluid_nav_bar/lib
import 'package:flutter/material.dart';

import 'package:shared/ui/placeholder/placeholder_image_with_text.dart';

class GridContent extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    bool isLandscape = MediaQuery.of(context).size.aspectRatio > 1;
    var columnCount = isLandscape ? 3 : 2;

    return Container(
      padding: EdgeInsets.only(left: 8, right: 8, top: 20),
      child: GridView.count(
        crossAxisCount: columnCount,
        children: List.generate(20, (index) {
          return PlaceholderImageWithText(color: Color(0xFF99D3F7), backgroundColor: Color(0xFFC7EAFF));
        }),
      ),
    );
  }
}

