diff --git a/assets/images/backgrounds/nutritional_plans.jpg b/assets/images/backgrounds/nutritional_plans.jpg new file mode 100644 index 00000000..b7066d06 Binary files /dev/null and b/assets/images/backgrounds/nutritional_plans.jpg differ diff --git a/assets/images/backgrounds/nutritional_plans.txt.txt b/assets/images/backgrounds/nutritional_plans.txt.txt new file mode 100644 index 00000000..63971919 --- /dev/null +++ b/assets/images/backgrounds/nutritional_plans.txt.txt @@ -0,0 +1,3 @@ +https://thenounproject.com/photo/tomatoes-chilies-and-dill-leaves-on-table-0JoGn5/ + +Tomatoes, chilies and dill leaves on table by Jacob Lund from Noun Project \ No newline at end of file diff --git a/assets/images/backgrounds/workout_plans.jpg b/assets/images/backgrounds/workout_plans.jpg new file mode 100644 index 00000000..d37417fd Binary files /dev/null and b/assets/images/backgrounds/workout_plans.jpg differ diff --git a/assets/images/backgrounds/workout_plans.txt.txt b/assets/images/backgrounds/workout_plans.txt.txt new file mode 100644 index 00000000..1bd69171 --- /dev/null +++ b/assets/images/backgrounds/workout_plans.txt.txt @@ -0,0 +1,3 @@ +https://thenounproject.com/photo/athlete-working-out-with-battle-ropes-outdoors-on-grass-field-0LrJR4/ + +Athlete working out with battle ropes outdoors on grass field by Jacob Lund from Noun Project \ No newline at end of file diff --git a/lib/screens/nutritional_plan_screen.dart b/lib/screens/nutritional_plan_screen.dart index d4153a68..66734680 100644 --- a/lib/screens/nutritional_plan_screen.dart +++ b/lib/screens/nutritional_plan_screen.dart @@ -83,10 +83,8 @@ class NutritionalPlanScreen extends StatelessWidget { ], flexibleSpace: FlexibleSpaceBar( title: Text(_nutritionalPlan.description), - background: Image.network( - 'https://thumbnails.production.thenounproject.com/NsyUiJkHgkfnnNt3bKw3DCtewXE=/fit-in/1000x1000/photos.production.thenounproject.com/photos/6905F43B-2816-4286-8696-5B7AEA8FE908.jpg', - // --> https://thenounproject.com/photo/tomatoes-chilies-and-dill-leaves-on-table-0JoGn5/ - + background: Image( + image: AssetImage('assets/images/backgrounds/nutritional_plans.jpg'), fit: BoxFit.cover, ), ), diff --git a/lib/screens/workout_plan_screen.dart b/lib/screens/workout_plan_screen.dart index d087ec98..aca2a51f 100644 --- a/lib/screens/workout_plan_screen.dart +++ b/lib/screens/workout_plan_screen.dart @@ -131,10 +131,8 @@ class _WorkoutPlanScreenState extends State { ], flexibleSpace: FlexibleSpaceBar( title: Text(workoutPlan.description), - background: Image.network( - 'https://thumbnails.production.thenounproject.com/GS2Ct-A74O23cwQ-FYCpzlN9Bdc=/fit-in/1000x1000/photos.production.thenounproject.com/photos/1F45191D-AE0E-425D-90E3-95A23B762B95.jpg', - // --> https://thenounproject.com/photo/athlete-working-out-with-battle-ropes-outdoors-on-grass-field-0LrJR4/ - + background: Image( + image: AssetImage('assets/images/backgrounds/workout_plans.jpg'), fit: BoxFit.cover, ), ), diff --git a/pubspec.yaml b/pubspec.yaml index 6fd2ac15..c530756f 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -75,9 +75,8 @@ flutter: # To add assets to your application, add an assets section, like this: assets: - - assets/images/logo.png - - assets/images/logo-white.png - - assets/images/placeholder.png + - assets/images/ + - assets/images/backgrounds/ # An image asset can refer to one or more resolution-specific "variants", see # https://flutter.dev/assets-and-images/#resolution-aware.