Merge branch 'master' of https://gitea.ragelas.com/Niklas/Prototype_Learn
This commit is contained in:
commit
12065fe793
|
|
@ -19,65 +19,70 @@ class HomePage extends StatelessWidget {
|
|||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
const SizedBox(height: 20),
|
||||
Row(children: <Widget>[
|
||||
SizedBox(
|
||||
height: 50, //height of button
|
||||
//width of button
|
||||
child: IconButton(
|
||||
icon: Image.asset('assets/images/logo.png'),
|
||||
onPressed: () {},
|
||||
),
|
||||
),
|
||||
const SizedBox(
|
||||
//width of button
|
||||
width: 10,
|
||||
),
|
||||
SizedBox(
|
||||
height: 10, //height of button
|
||||
width: 20, //width of button
|
||||
child: Icon(Icons.keyboard_arrow_down),
|
||||
),
|
||||
const SizedBox(
|
||||
//width of button
|
||||
width: 10,
|
||||
),
|
||||
const SizedBox(
|
||||
width: 100.0,
|
||||
child: TextField(
|
||||
decoration: InputDecoration(
|
||||
hintStyle: TextStyle(color: Colors.blue),
|
||||
hintText: "Ingolstadt")),
|
||||
),
|
||||
const SizedBox(
|
||||
//width of button
|
||||
width: 40,
|
||||
),
|
||||
SizedBox(
|
||||
height: 41, //height of button
|
||||
//width of button
|
||||
child: IconButton(
|
||||
icon: const Icon(Icons.search),
|
||||
onPressed: () {},
|
||||
),
|
||||
),
|
||||
const SizedBox(
|
||||
height: 40,
|
||||
child: VerticalDivider(
|
||||
thickness: 1,
|
||||
width: 20,
|
||||
color: Colors.black,
|
||||
),
|
||||
),
|
||||
SizedBox(
|
||||
height: 50, //height of button
|
||||
//width of button
|
||||
child: IconButton(
|
||||
icon: Image.asset('assets/images/Login.png'),
|
||||
onPressed: () {},
|
||||
),
|
||||
),
|
||||
]),
|
||||
const SizedBox(height: 10),
|
||||
Row(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
children: <Widget>[
|
||||
SizedBox(
|
||||
height: 50, //height of button
|
||||
//width of button
|
||||
child: IconButton(
|
||||
icon: Image.asset('assets/images/logo.png'),
|
||||
onPressed: () {},
|
||||
),
|
||||
),
|
||||
const SizedBox(
|
||||
//width of button
|
||||
width: 10,
|
||||
),
|
||||
SizedBox(
|
||||
height: 10, //height of button
|
||||
width: 20, //width of button
|
||||
child: Icon(Icons.keyboard_arrow_down),
|
||||
),
|
||||
const SizedBox(
|
||||
//width of button
|
||||
width: 10,
|
||||
),
|
||||
SizedBox(
|
||||
width: 100.0,
|
||||
child: TextField(
|
||||
controller: TextEditingController(text: "Ingolstadt"),
|
||||
decoration: InputDecoration(
|
||||
border: UnderlineInputBorder(),
|
||||
),
|
||||
),
|
||||
),
|
||||
// const SizedBox(
|
||||
// //width of button
|
||||
// width: 40,
|
||||
// ),
|
||||
Spacer(),
|
||||
SizedBox(
|
||||
height: 41, //height of button
|
||||
//width of button
|
||||
child: IconButton(
|
||||
icon: const Icon(Icons.search),
|
||||
onPressed: () {},
|
||||
),
|
||||
),
|
||||
const SizedBox(
|
||||
height: 40,
|
||||
child: VerticalDivider(
|
||||
thickness: 1,
|
||||
width: 20,
|
||||
color: Colors.black,
|
||||
),
|
||||
),
|
||||
SizedBox(
|
||||
height: 50, //height of button
|
||||
//width of button
|
||||
child: IconButton(
|
||||
icon: Image.asset('assets/images/Login.png'),
|
||||
onPressed: () {},
|
||||
),
|
||||
),
|
||||
]),
|
||||
const Divider(
|
||||
height: 10,
|
||||
thickness: 1,
|
||||
|
|
|
|||
|
|
@ -103,46 +103,6 @@ class Data {
|
|||
'2 shots espresso (a double shot)',
|
||||
'4 ounces milk'
|
||||
]),
|
||||
Recipe(
|
||||
id: '4',
|
||||
title: 'Essen & Trinken',
|
||||
imageUrl: 'assets/images/Essen.png',
|
||||
nutrients: [
|
||||
Nutrients(name: 'Calories', weight: '200', percent: 0.7),
|
||||
Nutrients(name: 'Protein', weight: '10gm', percent: 0.5),
|
||||
Nutrients(name: 'Carb', weight: '50gm', percent: 0.9),
|
||||
],
|
||||
steps: [
|
||||
'Gather the ingredients.',
|
||||
'Pull a double shot of espresso into a cappuccino cup.',
|
||||
'Foam the milk to double its original volume.'
|
||||
'Top the espresso with foamed milk right after foaming. When initially poured, cappuccinos are only espresso and foam, but the liquid milk quickly settles out of the foam to create the (roughly) equal parts foam, steamed milk, and espresso for which cappuccino is known.',
|
||||
'Serve immediately.'
|
||||
],
|
||||
ingredients: [
|
||||
'2 shots espresso (a double shot)',
|
||||
'4 ounces milk'
|
||||
]),
|
||||
Recipe(
|
||||
id: '4',
|
||||
title: 'Gesundheit',
|
||||
imageUrl: 'assets/images/Gesundheit.png',
|
||||
nutrients: [
|
||||
Nutrients(name: 'Calories', weight: '200', percent: 0.7),
|
||||
Nutrients(name: 'Protein', weight: '10gm', percent: 0.5),
|
||||
Nutrients(name: 'Carb', weight: '50gm', percent: 0.9),
|
||||
],
|
||||
steps: [
|
||||
'Gather the ingredients.',
|
||||
'Pull a double shot of espresso into a cappuccino cup.',
|
||||
'Foam the milk to double its original volume.'
|
||||
'Top the espresso with foamed milk right after foaming. When initially poured, cappuccinos are only espresso and foam, but the liquid milk quickly settles out of the foam to create the (roughly) equal parts foam, steamed milk, and espresso for which cappuccino is known.',
|
||||
'Serve immediately.'
|
||||
],
|
||||
ingredients: [
|
||||
'2 shots espresso (a double shot)',
|
||||
'4 ounces milk'
|
||||
]),
|
||||
Recipe(
|
||||
id: '4',
|
||||
title: 'Essen & Trinken',
|
||||
|
|
|
|||
Loading…
Reference in New Issue