156 Start

This commit is contained in:
2024-03-05 10:26:51 +01:00
parent d619853168
commit 142d245375
8 changed files with 285 additions and 118 deletions
+32
View File
@@ -0,0 +1,32 @@
import 'package:flutter/material.dart';
import '../models/category.dart';
class CategoryGridItem extends StatelessWidget {
const CategoryGridItem({super.key, required this.category});
final Category category;
@override
Widget build(BuildContext context) {
return Container(
padding: const EdgeInsets.all(16),
decoration: BoxDecoration(
gradient: LinearGradient(
colors: [
category.color.withOpacity(0.55),
category.color.withOpacity(0.9),
],
begin: Alignment.topLeft,
end: Alignment.bottomRight,
),
),
child: Text(
category.title,
style: Theme.of(context).textTheme.titleLarge!.copyWith(
color: Theme.of(context).colorScheme.onBackground,
),
),
);
}
}