mirrored_repositories/instagram-ui-android/lib/screens/user_account
import 'package:flutter/material.dart';

import '../../../data.dart';

class Tags extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return SliverGrid(
      delegate: SliverChildBuilderDelegate(
        (ctx, index) {
          return Container(
            decoration: BoxDecoration(
              border: Border.all(
                color: Colors.black,
              ),
              image: DecorationImage(
                image: NetworkImage(Data().tags[index]),
                fit: BoxFit.contain,
              ),
              color: Colors.black,
            ),
          );
        },
        childCount: Data().tags.length,
      ),
      gridDelegate: SliverGridDelegateWithFixedCrossAxisCount(
        crossAxisCount: 3,
        childAspectRatio: 1,
      ),
    );
    // return GridView.builder(
    //   physics: const ScrollPhysics(),
    // gridDelegate: SliverGridDelegateWithFixedCrossAxisCount(
    //   crossAxisCount: 3,
    //   childAspectRatio: 1,
    // ),
    //   itemCount: Data().tags.length,
    // itemBuilder: (ctx, index) {
    //   return Container(
    //     decoration: BoxDecoration(
    //       border: Border.all(
    //         color: Colors.black,
    //       ),
    //       image: DecorationImage(
    //         image: NetworkImage(Data().tags[index]),
    //         fit: BoxFit.contain,
    //       ),
    //       color: Colors.black,
    //     ),
    //   );
    // },
    // );
  }
}
