Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
3 Schweinehunde
Encrateia
Commits
186c8cde
Commit
186c8cde
authored
May 08, 2020
by
Administrator
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
color scheme of list app bars
parent
2daa33ce
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
3 deletions
+13
-3
lib/screens/show_activity_detail_screen.dart
lib/screens/show_activity_detail_screen.dart
+3
-1
lib/screens/show_activity_screen.dart
lib/screens/show_activity_screen.dart
+3
-0
lib/screens/show_athlete_detail_screen.dart
lib/screens/show_athlete_detail_screen.dart
+3
-1
lib/screens/show_athlete_screen.dart
lib/screens/show_athlete_screen.dart
+3
-0
lib/utils/my_color.dart
lib/utils/my_color.dart
+1
-1
No files found.
lib/screens/show_activity_detail_screen.dart
View file @
186c8cde
...
...
@@ -6,19 +6,21 @@ class ShowActivityDetailScreen extends StatelessWidget {
final
Activity
activity
;
final
Widget
widget
;
final
String
title
;
final
Color
backgroundColor
;
const
ShowActivityDetailScreen
({
Key
key
,
this
.
activity
,
this
.
widget
,
this
.
title
,
this
.
backgroundColor
,
})
:
super
(
key:
key
);
@override
Widget
build
(
BuildContext
context
)
{
return
Scaffold
(
appBar:
AppBar
(
backgroundColor:
MyColor
.
activity
,
backgroundColor:
backgroundColor
??
MyColor
.
activity
,
title:
Text
(
'
$title
:
${activity.db.name}
'
,
overflow:
TextOverflow
.
ellipsis
,
...
...
lib/screens/show_activity_screen.dart
View file @
186c8cde
...
...
@@ -63,6 +63,7 @@ class ShowActivityScreen extends StatelessWidget {
navigationButton
(
title:
'Laps List'
,
color:
MyColor
.
lap
,
backgroundColor:
MyColor
.
lap
,
icon:
MyIcon
.
laps
,
context:
context
,
nextWidget:
LapsListWidget
(
activity:
activity
),
...
...
@@ -219,6 +220,7 @@ class ShowActivityScreen extends StatelessWidget {
@required
Widget
icon
,
@required
String
title
,
@required
Color
color
,
Color
backgroundColor
,
Color
textColor
,
})
{
return
RaisedButton
.
icon
(
...
...
@@ -233,6 +235,7 @@ class ShowActivityScreen extends StatelessWidget {
activity:
activity
,
widget:
nextWidget
,
title:
title
,
backgroundColor:
backgroundColor
,
),
),
),
...
...
lib/screens/show_athlete_detail_screen.dart
View file @
186c8cde
...
...
@@ -6,19 +6,21 @@ class ShowAthleteDetailScreen extends StatelessWidget {
final
Athlete
athlete
;
final
Widget
widget
;
final
String
title
;
final
Color
backgroundColor
;
const
ShowAthleteDetailScreen
({
Key
key
,
this
.
athlete
,
this
.
widget
,
this
.
title
,
this
.
backgroundColor
,
})
:
super
(
key:
key
);
@override
Widget
build
(
BuildContext
context
)
{
return
Scaffold
(
appBar:
AppBar
(
backgroundColor:
MyColor
.
athlete
,
backgroundColor:
backgroundColor
??
MyColor
.
athlete
,
title:
Text
(
'
$title
:
${athlete.db.firstName}
${athlete.db.lastName}
'
,
overflow:
TextOverflow
.
ellipsis
,
...
...
lib/screens/show_athlete_screen.dart
View file @
186c8cde
...
...
@@ -70,6 +70,7 @@ class _ShowAthleteScreenState extends State<ShowAthleteScreen> {
color:
MyColor
.
activity
,
title:
"Activities List"
,
icon:
MyIcon
.
activities
,
backgroundColor:
MyColor
.
activity
,
nextWidget:
ActivitiesListWidget
(
athlete:
widget
.
athlete
),
),
navigationButton
(
...
...
@@ -158,6 +159,7 @@ class _ShowAthleteScreenState extends State<ShowAthleteScreen> {
@required
Widget
icon
,
@required
String
title
,
@required
Color
color
,
Color
backgroundColor
,
Color
textColor
,
})
{
return
RaisedButton
.
icon
(
...
...
@@ -172,6 +174,7 @@ class _ShowAthleteScreenState extends State<ShowAthleteScreen> {
athlete:
widget
.
athlete
,
widget:
nextWidget
,
title:
title
,
backgroundColor:
backgroundColor
,
),
),
),
...
...
lib/utils/my_color.dart
View file @
186c8cde
...
...
@@ -59,6 +59,6 @@ class MyColor {
static
Color
navigate
=
white
;
static
Color
athlete
=
brightGoldenYellow
;
static
Color
activity
=
mint
Accent
;
static
Color
activity
=
aqua
Accent
;
static
Color
lap
=
grassAccent
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment