Mitgliederladen/Frontend-user/lib/shopping.dart

40 lines
1.2 KiB
Dart
Raw Normal View History

2023-06-25 19:10:29 +02:00
import 'package:flutter/material.dart';
class Shopping extends StatelessWidget {
Shopping({super.key});
@override
Widget build(BuildContext context) {
return Scaffold(
floatingActionButton: FloatingActionButton(
child: const Icon(Icons.shopping_cart),
onPressed: () {},
),
body: GridView.builder(
gridDelegate: const SliverGridDelegateWithFixedCrossAxisCount(
crossAxisCount: 2),
itemBuilder: ((context, index) {
return Card(
child: Column(children: [
const Expanded(
child: FittedBox(
fit: BoxFit.scaleDown,
child: Text(
'🍒',
style: TextStyle(fontSize: 400),
),
),
),
Padding(
padding: const EdgeInsets.all(8.0),
child: Text(
'Obst und Gemüse',
style: Theme.of(context).textTheme.labelLarge,
),
),
]),
);
})));
}
}