kochkomplize/lib/recipe.dart

26 lines
657 B
Dart

import 'package:flutter/material.dart';
class RecipeDetailPage extends StatelessWidget {
final Map<String, dynamic> recipe;
const RecipeDetailPage({Key? key, required this.recipe}) : super(key: key);
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text(recipe["title"]),
),
body: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Image.network(recipe["image"]),
Text(recipe["title"]),
// Weitere Details oder Inhalte für die Detailseite
],
),
),
);
}
}