Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
org.benoitharrault.wordguessing
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
android
org.benoitharrault.wordguessing
Commits
1d2bc462
Commit
1d2bc462
authored
Apr 21, 2021
by
Benoît Harrault
Browse files
Options
Downloads
Patches
Plain Diff
Add placeholder image asset
parent
f5a80707
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!12
Resolve "Add image placeholder asset"
Pipeline
#960
passed
Apr 21, 2021
Stage: update
Stage: build-debug
Changes
4
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
android/gradle.properties
+2
-2
2 additions, 2 deletions
android/gradle.properties
assets/placeholder.png
+0
-0
0 additions, 0 deletions
assets/placeholder.png
lib/screens/game_pick_word.dart
+6
-3
6 additions, 3 deletions
lib/screens/game_pick_word.dart
pubspec.yaml
+1
-0
1 addition, 0 deletions
pubspec.yaml
with
9 additions
and
5 deletions
android/gradle.properties
+
2
−
2
View file @
1d2bc462
org.gradle.jvmargs
=
-Xmx1536M
org.gradle.jvmargs
=
-Xmx1536M
android.useAndroidX
=
true
android.useAndroidX
=
true
android.enableJetifier
=
true
android.enableJetifier
=
true
app.versionName
=
0.0.1
0
app.versionName
=
0.0.1
1
app.versionCode
=
1
0
app.versionCode
=
1
1
This diff is collapsed.
Click to expand it.
assets/placeholder.png
0 → 100644
+
0
−
0
View file @
1d2bc462
2.45 KiB
This diff is collapsed.
Click to expand it.
lib/screens/game_pick_word.dart
+
6
−
3
View file @
1d2bc462
...
@@ -51,13 +51,16 @@ class GamePickWordPage extends StatelessWidget {
...
@@ -51,13 +51,16 @@ class GamePickWordPage extends StatelessWidget {
}
}
Container
_buildImageContainer
(
String
image
,
Color
color
)
{
Container
_buildImageContainer
(
String
image
,
Color
color
)
{
String
imageAsset
=
'assets/placeholder.png'
;
if
(
image
!=
null
)
{
imageAsset
=
'assets/images/'
+
image
;
}
return
Container
(
return
Container
(
padding:
EdgeInsets
.
all
(
10
),
padding:
EdgeInsets
.
all
(
10
),
child:
FlatButton
(
child:
FlatButton
(
color:
Colors
.
teal
,
color:
Colors
.
teal
,
child:
image
==
null
?
child:
Image
(
image:
AssetImage
(
imageAsset
)),
Text
(
''
)
:
Image
(
image:
AssetImage
(
'assets/images/'
+
image
)),
),
),
);
);
}
}
...
...
This diff is collapsed.
Click to expand it.
pubspec.yaml
+
1
−
0
View file @
1d2bc462
...
@@ -22,3 +22,4 @@ flutter:
...
@@ -22,3 +22,4 @@ flutter:
-
assets/assets_images.json
-
assets/assets_images.json
-
assets/files/
-
assets/files/
-
assets/images/
-
assets/images/
-
assets/placeholder.png
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
sign in
to comment