1
0
Fork 0
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
thesis_shop/lib/screens/product_list/product_list_screen.dart

27 lines
744 B

import 'package:flutter/material.dart';
import 'package:thesis_shop/models/product.dart';
import 'cart_button_overlay.dart';
import 'product_list.dart';
const _productPlaceholder = [
Product(title: 'Bananen', price: 3),
Product(title: 'Äpfel', price: 2),
Product(title: 'Birnen', price: 2.5),
Product(title: 'Kirschen', price: 1.2),
];
class ProductListScreen extends StatelessWidget {
const ProductListScreen({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
const products = _productPlaceholder;
return Scaffold(
appBar: AppBar(title: const Text('Thesis Shop')),
body: const CartButtonOverlay(
child: ProductList(products: _productPlaceholder),
),
);
}
}