Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AppDeggendorf_Flutter
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Chaitanya Mangra
AppDeggendorf_Flutter
Commits
a81cb7cb
Commit
a81cb7cb
authored
2 years ago
by
benedikts
Committed by
Anager
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Improved look of ProfileEntry class
parent
d6c30587
No related branches found
Branches containing commit
No related tags found
1 merge request
!2
Home page chaitanya
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/bottom_navigation_bar_buttons/profile/profile.dart
+22
-33
22 additions, 33 deletions
lib/bottom_navigation_bar_buttons/profile/profile.dart
with
22 additions
and
33 deletions
lib/bottom_navigation_bar_buttons/profile/profile.dart
+
22
−
33
View file @
a81cb7cb
import
'package:flutter/material.dart'
;
import
'package:flutter/material.dart'
;
import
'package:deggendorf_app/bottom_navigation_bar_buttons/settings/settings.dart'
;
class
Profile
extends
StatefulWidget
{
class
Profile
extends
StatefulWidget
{
const
Profile
({
Key
?
key
})
:
super
(
key:
key
);
const
Profile
({
Key
?
key
})
:
super
(
key:
key
);
...
@@ -20,12 +18,7 @@ class _ProfilePage extends State<Profile> {
...
@@ -20,12 +18,7 @@ class _ProfilePage extends State<Profile> {
appBar:
AppBar
(
appBar:
AppBar
(
title:
const
Text
(
'Konto'
),
title:
const
Text
(
'Konto'
),
actions:
<
Widget
>[
actions:
<
Widget
>[
IconButton
(
onPressed:
(){
IconButton
(
onPressed:
null
,
icon:
Icon
(
Icons
.
settings
))
Navigator
.
push
(
context
,
MaterialPageRoute
(
builder:
(
context
)
=
>
const
SettingScreen
()),
);
},
icon:
Icon
(
Icons
.
settings
))
],
],
backgroundColor:
Colors
.
brown
,
backgroundColor:
Colors
.
brown
,
),
),
...
@@ -66,9 +59,9 @@ class _ProfilePage extends State<Profile> {
...
@@ -66,9 +59,9 @@ class _ProfilePage extends State<Profile> {
mainAxisAlignment:
MainAxisAlignment
.
center
,
mainAxisAlignment:
MainAxisAlignment
.
center
,
children:
[
children:
[
ProfileEntry
(
ProfileEntry
(
category:
"Name"
,
description:
"
V
ery long example Name"
),
category:
"Name"
,
description:
"
A v
ery long example Name"
),
ProfileEntry
(
category:
"Age"
,
description:
"123"
),
ProfileEntry
(
category:
"Age"
,
description:
"123"
),
ProfileEntry
(
category:
"Birthday"
,
description:
"
12.34
."
)
ProfileEntry
(
category:
"Birthday"
,
description:
"
30.02
."
)
],
],
),
),
)
)
...
@@ -94,31 +87,27 @@ class ProfileEntry extends StatefulWidget {
...
@@ -94,31 +87,27 @@ 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
TextButton
(
return
Row
(
onPressed:
()
{
},
children:
[
style:
TextButton
.
styleFrom
(
primary:
Colors
.
brown
),
Expanded
(
child:
Row
(
flex:
30
,
children:
[
child:
Container
(
Expanded
(
padding:
EdgeInsets
.
fromLTRB
(
0
,
5
,
10
,
5
),
flex:
30
,
child:
Text
(
child:
Container
(
widget
.
category
+
":"
,
padding:
EdgeInsets
.
fromLTRB
(
0
,
5
,
10
,
5
),
textAlign:
TextAlign
.
right
,
child:
Text
(
widget
.
category
+
":"
,
textAlign:
TextAlign
.
right
,
),
),
),
),
),
Expanded
(
),
flex:
70
,
Expanded
(
child:
Container
(
flex:
70
,
padding
:
c
on
st
EdgeInsets
.
fromLTRB
(
10
,
5
,
0
,
5
),
child
:
C
on
tainer
(
child:
Text
(
widget
.
description
),
padding:
const
EdgeInsets
.
fromLTRB
(
10
,
5
,
0
,
5
),
),
child:
Text
(
widget
.
description
),
)
)
,
],
)
)
,
]
,
);
);
}
}
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment