Commit 3f3710ed authored by Administrator's avatar Administrator

color scheme applied to app bars

parent 887e2fc2
import 'package:encrateia/utils/icon_utils.dart';
import 'package:encrateia/utils/my_button.dart';
import 'package:encrateia/utils/my_color.dart';
import 'package:flutter/material.dart';
import 'package:encrateia/models/heart_rate_zone_schema.dart';
import 'package:encrateia/models/heart_rate_zone.dart';
......@@ -35,6 +36,7 @@ class _AddHeartRateZoneSchemaScreenState extends State<AddHeartRateZoneSchemaScr
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
backgroundColor: MyColor.settings,
title: Text('Add Heart Rate Zone Schema'),
),
body: ListView(
......
import 'package:encrateia/utils/my_button.dart';
import 'package:encrateia/utils/my_color.dart';
import 'package:flutter/material.dart';
import 'package:encrateia/models/heart_rate_zone.dart';
import 'package:flutter_material_color_picker/flutter_material_color_picker.dart';
......@@ -68,6 +69,7 @@ class _AddHeartRateZoneScreenState extends State<AddHeartRateZoneScreen> {
return Scaffold(
appBar: AppBar(
title: Text('Add your HeartRateZone'),
backgroundColor: MyColor.settings,
),
body: ListView(
padding: EdgeInsets.all(20),
......
import 'package:encrateia/utils/icon_utils.dart';
import 'package:encrateia/utils/my_button.dart';
import 'package:encrateia/utils/my_color.dart';
import 'package:flutter/material.dart';
import 'package:encrateia/models/power_zone_schema.dart';
import 'package:encrateia/models/power_zone.dart';
......@@ -35,6 +36,7 @@ class _AddPowerZoneSchemaScreenState extends State<AddPowerZoneSchemaScreen> {
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
backgroundColor: MyColor.settings,
title: Text('Add Power Zone Schema'),
),
body: ListView(
......
import 'package:encrateia/utils/my_button.dart';
import 'package:encrateia/utils/my_color.dart';
import 'package:flutter/material.dart';
import 'package:encrateia/models/power_zone.dart';
import 'package:flutter_material_color_picker/flutter_material_color_picker.dart';
......@@ -68,6 +69,7 @@ class _AddPowerZoneScreenState extends State<AddPowerZoneScreen> {
return Scaffold(
appBar: AppBar(
title: Text('Add your PowerZone'),
backgroundColor: MyColor.settings,
),
body: ListView(
padding: EdgeInsets.all(20),
......
import 'package:encrateia/utils/my_button.dart';
import 'package:encrateia/utils/my_color.dart';
import 'package:flutter/material.dart';
import 'package:encrateia/models/weight.dart';
import 'package:intl/intl.dart';
......@@ -16,6 +17,7 @@ class AddWeightScreen extends StatelessWidget {
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
backgroundColor: MyColor.settings,
title: Text('Add your Weight'),
),
body: ListView(
......
......@@ -27,6 +27,7 @@ class _DashboardState extends State<Dashboard> {
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
backgroundColor: MyColor.primary,
title: Text("Encrateia Dashboard"),
),
body: dashboardBody(),
......
import 'package:encrateia/utils/my_button.dart';
import 'package:encrateia/utils/my_color.dart';
import 'package:flutter/material.dart';
import 'package:encrateia/models/athlete.dart';
import 'package:provider/provider.dart';
......@@ -17,6 +18,7 @@ class EditAthleteScreen extends StatelessWidget {
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
backgroundColor: MyColor.athlete,
title: Text('Create Athlete'),
),
body: ChangeNotifierProvider.value(
......
import 'package:encrateia/utils/my_color.dart';
import 'package:flutter/material.dart';
class IntroductionScreen extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(title: Text("Introduction")),
appBar: AppBar(
title: Text("Introduction"),
backgroundColor: MyColor.primary,
),
body: SingleChildScrollView(
child: Card(
margin: EdgeInsets.all(10),
......
import 'package:encrateia/utils/my_color.dart';
import 'package:flutter/material.dart';
import 'package:encrateia/models/activity.dart';
......@@ -17,6 +18,7 @@ class ShowActivityDetailScreen extends StatelessWidget {
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
backgroundColor: MyColor.activity,
title: Text(
'$title: ${activity.db.name}',
overflow: TextOverflow.ellipsis,
......
......@@ -36,6 +36,7 @@ class ShowActivityScreen extends StatelessWidget {
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
backgroundColor: MyColor.activity,
title: Text(
'${activity.db.name}',
overflow: TextOverflow.ellipsis,
......
import 'package:encrateia/utils/my_color.dart';
import 'package:flutter/material.dart';
import 'package:encrateia/models/athlete.dart';
......@@ -17,6 +18,7 @@ class ShowAthleteDetailScreen extends StatelessWidget {
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
backgroundColor: MyColor.athlete,
title: Text(
'$title: ${athlete.db.firstName} ${athlete.db.lastName}',
overflow: TextOverflow.ellipsis,
......
......@@ -44,6 +44,7 @@ class _ShowAthleteScreenState extends State<ShowAthleteScreen> {
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
backgroundColor: MyColor.athlete,
title: Text(
'${widget.athlete.db.firstName} ${widget.athlete.db.lastName}',
overflow: TextOverflow.ellipsis,
......
import 'package:encrateia/models/lap.dart';
import 'package:encrateia/utils/my_color.dart';
import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';
......@@ -34,6 +35,7 @@ class _ShowLapDetailScreenState extends State<ShowLapDetailScreen> {
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
backgroundColor: MyColor.lap,
title: Text(
'Lap ${currentLap.index.toString()}: ${widget.title}',
overflow: TextOverflow.ellipsis,
......
......@@ -28,7 +28,7 @@ class ShowLapScreen extends StatelessWidget {
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
backgroundColor: Colors.green,
backgroundColor: MyColor.lap,
title: Text(
'Lap ${lap.index}',
overflow: TextOverflow.ellipsis,
......
import 'package:encrateia/utils/my_color.dart';
import 'package:flutter/material.dart';
import 'package:encrateia/secrets/secrets.dart';
import 'package:strava_flutter/strava.dart';
......@@ -16,7 +17,10 @@ class StravaGetUser extends StatelessWidget {
return ChangeNotifierProvider.value(
value: athlete,
child: Scaffold(
appBar: AppBar(title: Text('Create Athlete')),
appBar: AppBar(
title: Text('Create Athlete'),
backgroundColor: MyColor.primary,
),
body: Consumer<Athlete>(
builder: (context, athlete, _child) {
if (athlete.db.firstName == null) loginToStrava();
......
......@@ -57,4 +57,8 @@ class MyColor {
static Color cancel = warning;
static Color delete = danger;
static Color navigate = white;
static Color athlete = ecstasy;
static Color activity = bitterSweetAccent;
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