From 86235b736be5bd3141a1a2755a5603b9c97eb3aa Mon Sep 17 00:00:00 2001 From: benedikts <sosnowskybene@gmail.com> Date: Tue, 5 Apr 2022 15:56:06 +0200 Subject: [PATCH] finished up --- .../profile/profile.dart | 45 ++++++++++--------- 1 file changed, 25 insertions(+), 20 deletions(-) diff --git a/lib/bottom_navigation_bar_buttons/profile/profile.dart b/lib/bottom_navigation_bar_buttons/profile/profile.dart index d78637b..c0005dd 100644 --- a/lib/bottom_navigation_bar_buttons/profile/profile.dart +++ b/lib/bottom_navigation_bar_buttons/profile/profile.dart @@ -1,3 +1,4 @@ + import 'package:flutter/material.dart'; class Profile extends StatefulWidget { @@ -61,7 +62,7 @@ class _ProfilePage extends State<Profile> { ProfileEntry( category: "Name", description: "Very long example Name"), ProfileEntry(category: "Age", description: "123"), - ProfileEntry(category: "Birthday", description: "30.02.") + ProfileEntry(category: "Birthday", description: "12.34.") ], ), ) @@ -87,27 +88,31 @@ class ProfileEntry extends StatefulWidget { class _ProfileEntryState extends State<ProfileEntry> { @override Widget build(BuildContext context) { - return Row( - children: [ - Expanded( - flex: 30, - child: Container( - padding: EdgeInsets.fromLTRB(0, 5, 10, 5), - child: Text( - widget.category + ":", - textAlign: TextAlign.right, - + return TextButton( + onPressed: () { }, + style: TextButton.styleFrom(primary: Colors.brown), + child: Row( + children: [ + Expanded( + flex: 30, + child: Container( + padding: EdgeInsets.fromLTRB(0, 5, 10, 5), + child: Text( + widget.category + ":", + textAlign: TextAlign.right, + + ), ), ), - ), - Expanded( - flex: 70, - child: Container( - padding: const EdgeInsets.fromLTRB(10, 5, 0, 5), - child: Text(widget.description), - ), - ) - ], + Expanded( + flex: 70, + child: Container( + padding: const EdgeInsets.fromLTRB(10, 5, 0, 5), + child: Text(widget.description), + ), + ) + ], + ), ); } } -- GitLab