Version 1.0.0 (first build)

This commit is contained in:
2021-01-12 18:29:25 +01:00
parent 8307ea9215
commit b1320b876e
15 changed files with 803 additions and 235 deletions

View File

@@ -27,13 +27,11 @@ class _RestaurantViewState extends State<RestaurantView> {
@override
Widget build(BuildContext context) {
List<String> categories = [];
return FutureBuilder<Restaurant>(
future: services.fetchRestaurant(widget.id),
builder: (BuildContext context, AsyncSnapshot<Restaurant> snapshot) {
if (snapshot.hasData) {
restaurant = snapshot.data;
categories = restaurant.categories;
return Scaffold(
body: Container(
decoration: BoxDecoration(color: Colors.grey[850]),