Add background images for hero images to assets

This commit is contained in:
Roland Geider
2021-03-11 11:17:06 +01:00
parent ef0f3e2fd8
commit 3618746667
7 changed files with 12 additions and 11 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 326 KiB

View File

@@ -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

Binary file not shown.

After

Width:  |  Height:  |  Size: 184 KiB

View File

@@ -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

View File

@@ -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,
),
),

View File

@@ -131,10 +131,8 @@ class _WorkoutPlanScreenState extends State<WorkoutPlanScreen> {
],
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,
),
),

View File

@@ -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.