Skip to content
Snippets Groups Projects
Commit 737a5ec2 authored by benedikts's avatar benedikts
Browse files

Improved look of ProfileEntry class

parent c0305201
No related branches found
No related tags found
2 merge requests!1Profile benedikt,!2Home page chaitanya
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
class Profile extends StatefulWidget { class Profile extends StatefulWidget {
const Profile({Key? key}) : super(key: key); const Profile({Key? key}) : super(key: key);
...@@ -90,16 +89,23 @@ class _ProfileEntryState extends State<ProfileEntry> { ...@@ -90,16 +89,23 @@ class _ProfileEntryState extends State<ProfileEntry> {
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Row( return Row(
children: [ children: [
Padding( Expanded(
padding: const EdgeInsets.fromLTRB(0, 5, 70, 5), flex: 30,
child: Text( child: Container(
widget.category, padding: EdgeInsets.fromLTRB(0, 5, 10, 5),
textAlign: TextAlign.center, child: Text(
widget.category + ":",
textAlign: TextAlign.right,
),
), ),
), ),
Padding( Expanded(
padding: const EdgeInsets.fromLTRB(10, 5, 0, 5), flex: 70,
child: Text(widget.description, textAlign: TextAlign.center), child: Container(
padding: const EdgeInsets.fromLTRB(10, 5, 0, 5),
child: Text(widget.description),
),
) )
], ],
); );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment