From 09be6bc87de41f69e5be074aa1e7ab6b3d8f7249 Mon Sep 17 00:00:00 2001 From: Eggmac Date: Sun, 25 Feb 2024 23:15:59 +0100 Subject: [PATCH 1/2] changed some design in the header. => Textfield and spacer --- lib/screens/home.dart | 123 ++++++++++++++++++++++-------------------- 1 file changed, 64 insertions(+), 59 deletions(-) diff --git a/lib/screens/home.dart b/lib/screens/home.dart index 5110410..f9411e9 100644 --- a/lib/screens/home.dart +++ b/lib/screens/home.dart @@ -19,65 +19,70 @@ class HomePage extends StatelessWidget { child: Column( crossAxisAlignment: CrossAxisAlignment.start, children: [ - const SizedBox(height: 20), - Row(children: [ - 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: [ + 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, From 9524cb9738e63b8ba67d1bfe37ec44f193eb089d Mon Sep 17 00:00:00 2001 From: Eggmac Date: Sun, 25 Feb 2024 23:18:59 +0100 Subject: [PATCH 2/2] Changed Text of Gesundheit and Wellness to fit at the moment the card --- lib/utils/data.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/utils/data.dart b/lib/utils/data.dart index 45b9a42..a2ef953 100644 --- a/lib/utils/data.dart +++ b/lib/utils/data.dart @@ -85,7 +85,7 @@ class Data { ]), Recipe( id: '4', - title: 'Gesundheit & Wellness', + title: 'Gesundheit', imageUrl: 'assets/images/Gesundheit.png', nutrients: [ Nutrients(name: 'Calories', weight: '200', percent: 0.7),