162 Start
This commit is contained in:
@@ -3,14 +3,19 @@ import 'package:flutter/material.dart';
|
||||
import '../models/category.dart';
|
||||
|
||||
class CategoryGridItem extends StatelessWidget {
|
||||
const CategoryGridItem({super.key, required this.category});
|
||||
const CategoryGridItem({
|
||||
super.key,
|
||||
required this.category,
|
||||
required this.onSelectCategory,
|
||||
});
|
||||
|
||||
final Category category;
|
||||
final void Function() onSelectCategory;
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return InkWell(
|
||||
onTap: () {},
|
||||
onTap: onSelectCategory,
|
||||
splashColor: Theme.of(context).primaryColor,
|
||||
borderRadius: BorderRadius.circular(16),
|
||||
child: Container(
|
||||
|
||||
Reference in New Issue
Block a user