mirrored_repositories/tutorial_app/lib
import 'package:flutter/material.dart';

class SquareTile extends StatelessWidget {
  const SquareTile({super.key,required this.imagePath,required this.onTap});

  final String imagePath;
  final Function()? onTap;

  @override
  Widget build(BuildContext context) {
    return GestureDetector(
      onTap:onTap ,
      child: Container(
        padding: EdgeInsets.all(20),
        decoration: BoxDecoration(
          border: Border.all(color: Colors.white),
          borderRadius: BorderRadius.circular(16),
          color: Colors.grey[200]
        ),
        child: Image.asset(imagePath,height: 40,),
      ),
    );
  }
}