From 737a5ec2ca32cbc7346e8ff9f55352d1d95ab324 Mon Sep 17 00:00:00 2001 From: benedikts <sosnowskybene@gmail.com> Date: Mon, 4 Apr 2022 13:42:31 +0200 Subject: [PATCH] Improved look of ProfileEntry class --- .../profile/profile.dart | 24 ++++++++++++------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/lib/bottom_navigation_bar_buttons/profile/profile.dart b/lib/bottom_navigation_bar_buttons/profile/profile.dart index 547bc8d..9b813db 100644 --- a/lib/bottom_navigation_bar_buttons/profile/profile.dart +++ b/lib/bottom_navigation_bar_buttons/profile/profile.dart @@ -1,6 +1,5 @@ import 'package:flutter/material.dart'; - class Profile extends StatefulWidget { const Profile({Key? key}) : super(key: key); @@ -90,16 +89,23 @@ class _ProfileEntryState extends State<ProfileEntry> { Widget build(BuildContext context) { return Row( children: [ - Padding( - padding: const EdgeInsets.fromLTRB(0, 5, 70, 5), - child: Text( - widget.category, - textAlign: TextAlign.center, + Expanded( + flex: 30, + child: Container( + padding: EdgeInsets.fromLTRB(0, 5, 10, 5), + child: Text( + widget.category + ":", + textAlign: TextAlign.right, + + ), ), ), - Padding( - padding: const EdgeInsets.fromLTRB(10, 5, 0, 5), - child: Text(widget.description, textAlign: TextAlign.center), + Expanded( + flex: 70, + child: Container( + padding: const EdgeInsets.fromLTRB(10, 5, 0, 5), + child: Text(widget.description), + ), ) ], ); -- GitLab