mirror of
https://github.com/wger-project/flutter.git
synced 2026-02-18 00:17:48 +01:00
Add background images for hero images to assets
This commit is contained in:
BIN
assets/images/backgrounds/nutritional_plans.jpg
Normal file
BIN
assets/images/backgrounds/nutritional_plans.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 326 KiB |
3
assets/images/backgrounds/nutritional_plans.txt.txt
Normal file
3
assets/images/backgrounds/nutritional_plans.txt.txt
Normal 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
|
||||
BIN
assets/images/backgrounds/workout_plans.jpg
Normal file
BIN
assets/images/backgrounds/workout_plans.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 184 KiB |
3
assets/images/backgrounds/workout_plans.txt.txt
Normal file
3
assets/images/backgrounds/workout_plans.txt.txt
Normal 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
|
||||
@@ -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,
|
||||
),
|
||||
),
|
||||
|
||||
@@ -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,
|
||||
),
|
||||
),
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user