Commit 186c8cde authored by Administrator's avatar Administrator

color scheme of list app bars

parent 2daa33ce
......@@ -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,
......
......@@ -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,
),
),
),
......
......@@ -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,
......
......@@ -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,
),
),
),
......
......@@ -59,6 +59,6 @@ class MyColor {
static Color navigate = white;
static Color athlete = brightGoldenYellow;
static Color activity = mintAccent;
static Color activity = aquaAccent;
static Color lap = grassAccent;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment