Skip to content
Snippets Groups Projects
Commit 86235b73 authored by benedikts's avatar benedikts
Browse files

finished up

parent 8beb9749
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 {
...@@ -61,7 +62,7 @@ class _ProfilePage extends State<Profile> { ...@@ -61,7 +62,7 @@ class _ProfilePage extends State<Profile> {
ProfileEntry( ProfileEntry(
category: "Name", description: "Very long example Name"), category: "Name", description: "Very long example Name"),
ProfileEntry(category: "Age", description: "123"), 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 { ...@@ -87,27 +88,31 @@ class ProfileEntry extends StatefulWidget {
class _ProfileEntryState extends State<ProfileEntry> { class _ProfileEntryState extends State<ProfileEntry> {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Row( return TextButton(
children: [ onPressed: () { },
Expanded( style: TextButton.styleFrom(primary: Colors.brown),
flex: 30, child: Row(
child: Container( children: [
padding: EdgeInsets.fromLTRB(0, 5, 10, 5), Expanded(
child: Text( flex: 30,
widget.category + ":", child: Container(
textAlign: TextAlign.right, padding: EdgeInsets.fromLTRB(0, 5, 10, 5),
child: Text(
widget.category + ":",
textAlign: TextAlign.right,
),
), ),
), ),
), Expanded(
Expanded( flex: 70,
flex: 70, child: Container(
child: Container( padding: const EdgeInsets.fromLTRB(10, 5, 0, 5),
padding: const EdgeInsets.fromLTRB(10, 5, 0, 5), child: Text(widget.description),
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