forked from mgl_crew/Mitgliederladen
40 lines
1.2 KiB
Dart
40 lines
1.2 KiB
Dart
|
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,
|
||
|
),
|
||
|
),
|
||
|
]),
|
||
|
);
|
||
|
})));
|
||
|
}
|
||
|
}
|