Skip to content
Snippets Groups Projects
Commit 188196ac authored by Benoît Harrault's avatar Benoît Harrault
Browse files

Merge branch '22-fix-images' into 'master'

Resolve "Fix images"

Closes #22

See merge request !20
parents c17c723b d1415eec
No related branches found
No related tags found
1 merge request!20Resolve "Fix images"
Pipeline #1281 passed
Showing
with 14 additions and 17 deletions
assets/images/61f957831ae29d16fd9f9d1bd5e1108e.png

117 KiB | W: | H:

assets/images/61f957831ae29d16fd9f9d1bd5e1108e.png

117 KiB | W: | H:

assets/images/61f957831ae29d16fd9f9d1bd5e1108e.png
assets/images/61f957831ae29d16fd9f9d1bd5e1108e.png
assets/images/61f957831ae29d16fd9f9d1bd5e1108e.png
assets/images/61f957831ae29d16fd9f9d1bd5e1108e.png
  • 2-up
  • Swipe
  • Onion skin
assets/images/6230e89eeec906d71055ddcdddd4b10a.png

120 KiB | W: | H:

assets/images/6230e89eeec906d71055ddcdddd4b10a.png

120 KiB | W: | H:

assets/images/6230e89eeec906d71055ddcdddd4b10a.png
assets/images/6230e89eeec906d71055ddcdddd4b10a.png
assets/images/6230e89eeec906d71055ddcdddd4b10a.png
assets/images/6230e89eeec906d71055ddcdddd4b10a.png
  • 2-up
  • Swipe
  • Onion skin
assets/images/69be9405fd985a1fbcbc81ea73295deb.png

41.8 KiB | W: | H:

assets/images/69be9405fd985a1fbcbc81ea73295deb.png

41.8 KiB | W: | H:

assets/images/69be9405fd985a1fbcbc81ea73295deb.png
assets/images/69be9405fd985a1fbcbc81ea73295deb.png
assets/images/69be9405fd985a1fbcbc81ea73295deb.png
assets/images/69be9405fd985a1fbcbc81ea73295deb.png
  • 2-up
  • Swipe
  • Onion skin
assets/images/6d90d40d4e01accf90e74f84444cd7cc.png

128 KiB | W: | H:

assets/images/6d90d40d4e01accf90e74f84444cd7cc.png

128 KiB | W: | H:

assets/images/6d90d40d4e01accf90e74f84444cd7cc.png
assets/images/6d90d40d4e01accf90e74f84444cd7cc.png
assets/images/6d90d40d4e01accf90e74f84444cd7cc.png
assets/images/6d90d40d4e01accf90e74f84444cd7cc.png
  • 2-up
  • Swipe
  • Onion skin
assets/images/9512a6948b3f4df8bd315d99ddc4f632.png

53.5 KiB | W: | H:

assets/images/9512a6948b3f4df8bd315d99ddc4f632.png

53.5 KiB | W: | H:

assets/images/9512a6948b3f4df8bd315d99ddc4f632.png
assets/images/9512a6948b3f4df8bd315d99ddc4f632.png
assets/images/9512a6948b3f4df8bd315d99ddc4f632.png
assets/images/9512a6948b3f4df8bd315d99ddc4f632.png
  • 2-up
  • Swipe
  • Onion skin
assets/images/9ce4da1ed6679a03068942102e8227a8.png

89.2 KiB | W: | H:

assets/images/9ce4da1ed6679a03068942102e8227a8.png

88.4 KiB | W: | H:

assets/images/9ce4da1ed6679a03068942102e8227a8.png
assets/images/9ce4da1ed6679a03068942102e8227a8.png
assets/images/9ce4da1ed6679a03068942102e8227a8.png
assets/images/9ce4da1ed6679a03068942102e8227a8.png
  • 2-up
  • Swipe
  • Onion skin
assets/images/a770090c788f9e02f4bd5fc3b988f00e.png

51.4 KiB | W: | H:

assets/images/a770090c788f9e02f4bd5fc3b988f00e.png

50.4 KiB | W: | H:

assets/images/a770090c788f9e02f4bd5fc3b988f00e.png
assets/images/a770090c788f9e02f4bd5fc3b988f00e.png
assets/images/a770090c788f9e02f4bd5fc3b988f00e.png
assets/images/a770090c788f9e02f4bd5fc3b988f00e.png
  • 2-up
  • Swipe
  • Onion skin
assets/images/b0f3a0498db5898d680c0975a5eb91c2.png

186 KiB | W: | H:

assets/images/b0f3a0498db5898d680c0975a5eb91c2.png

186 KiB | W: | H:

assets/images/b0f3a0498db5898d680c0975a5eb91c2.png
assets/images/b0f3a0498db5898d680c0975a5eb91c2.png
assets/images/b0f3a0498db5898d680c0975a5eb91c2.png
assets/images/b0f3a0498db5898d680c0975a5eb91c2.png
  • 2-up
  • Swipe
  • Onion skin
assets/images/b94b03336c3bb1bb020ab101b81ade1d.png

128 KiB | W: | H:

assets/images/b94b03336c3bb1bb020ab101b81ade1d.png

128 KiB | W: | H:

assets/images/b94b03336c3bb1bb020ab101b81ade1d.png
assets/images/b94b03336c3bb1bb020ab101b81ade1d.png
assets/images/b94b03336c3bb1bb020ab101b81ade1d.png
assets/images/b94b03336c3bb1bb020ab101b81ade1d.png
  • 2-up
  • Swipe
  • Onion skin
assets/images/bd34b42fcd92099b348c537e4f089652.png

109 KiB | W: | H:

assets/images/bd34b42fcd92099b348c537e4f089652.png

109 KiB | W: | H:

assets/images/bd34b42fcd92099b348c537e4f089652.png
assets/images/bd34b42fcd92099b348c537e4f089652.png
assets/images/bd34b42fcd92099b348c537e4f089652.png
assets/images/bd34b42fcd92099b348c537e4f089652.png
  • 2-up
  • Swipe
  • Onion skin
assets/images/c1857547d6c219a883cab7a3b9f7d5d6.png

190 KiB | W: | H:

assets/images/c1857547d6c219a883cab7a3b9f7d5d6.png

190 KiB | W: | H:

assets/images/c1857547d6c219a883cab7a3b9f7d5d6.png
assets/images/c1857547d6c219a883cab7a3b9f7d5d6.png
assets/images/c1857547d6c219a883cab7a3b9f7d5d6.png
assets/images/c1857547d6c219a883cab7a3b9f7d5d6.png
  • 2-up
  • Swipe
  • Onion skin
assets/images/c8f8b9734ace9be430ccd16e0f1b4aa4.png

37.4 KiB | W: | H:

assets/images/c8f8b9734ace9be430ccd16e0f1b4aa4.png

36.9 KiB | W: | H:

assets/images/c8f8b9734ace9be430ccd16e0f1b4aa4.png
assets/images/c8f8b9734ace9be430ccd16e0f1b4aa4.png
assets/images/c8f8b9734ace9be430ccd16e0f1b4aa4.png
assets/images/c8f8b9734ace9be430ccd16e0f1b4aa4.png
  • 2-up
  • Swipe
  • Onion skin
assets/images/d370d2eeb6bb1445fdfbeb48734a3c43.png

101 KiB | W: | H:

assets/images/d370d2eeb6bb1445fdfbeb48734a3c43.png

101 KiB | W: | H:

assets/images/d370d2eeb6bb1445fdfbeb48734a3c43.png
assets/images/d370d2eeb6bb1445fdfbeb48734a3c43.png
assets/images/d370d2eeb6bb1445fdfbeb48734a3c43.png
assets/images/d370d2eeb6bb1445fdfbeb48734a3c43.png
  • 2-up
  • Swipe
  • Onion skin
assets/images/d476505cf1c1eb67d88e39751ea125bb.png

47.2 KiB | W: | H:

assets/images/d476505cf1c1eb67d88e39751ea125bb.png

46.8 KiB | W: | H:

assets/images/d476505cf1c1eb67d88e39751ea125bb.png
assets/images/d476505cf1c1eb67d88e39751ea125bb.png
assets/images/d476505cf1c1eb67d88e39751ea125bb.png
assets/images/d476505cf1c1eb67d88e39751ea125bb.png
  • 2-up
  • Swipe
  • Onion skin
assets/images/db4ae886aed6e54fb47dc5b81d04cfa7.png

141 KiB | W: | H:

assets/images/db4ae886aed6e54fb47dc5b81d04cfa7.png

141 KiB | W: | H:

assets/images/db4ae886aed6e54fb47dc5b81d04cfa7.png
assets/images/db4ae886aed6e54fb47dc5b81d04cfa7.png
assets/images/db4ae886aed6e54fb47dc5b81d04cfa7.png
assets/images/db4ae886aed6e54fb47dc5b81d04cfa7.png
  • 2-up
  • Swipe
  • Onion skin
assets/images/fbe93b88bdb22bd80ad1cb6b211355c3.png

112 KiB | W: | H:

assets/images/fbe93b88bdb22bd80ad1cb6b211355c3.png

112 KiB | W: | H:

assets/images/fbe93b88bdb22bd80ad1cb6b211355c3.png
assets/images/fbe93b88bdb22bd80ad1cb6b211355c3.png
assets/images/fbe93b88bdb22bd80ad1cb6b211355c3.png
assets/images/fbe93b88bdb22bd80ad1cb6b211355c3.png
  • 2-up
  • Swipe
  • Onion skin
assets/images/fd8cc9ee56f7b0d1d598723385fabbb3.png

27.9 KiB | W: | H:

assets/images/fd8cc9ee56f7b0d1d598723385fabbb3.png

27.4 KiB | W: | H:

assets/images/fd8cc9ee56f7b0d1d598723385fabbb3.png
assets/images/fd8cc9ee56f7b0d1d598723385fabbb3.png
assets/images/fd8cc9ee56f7b0d1d598723385fabbb3.png
assets/images/fd8cc9ee56f7b0d1d598723385fabbb3.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -14,6 +14,7 @@ class Home extends StatelessWidget {
static const String id = 'home';
double _tipImageSize = 100;
int _selectImageColumnsCount = 2;
Future<void> resetGame(Data myProvider) async {
myProvider.updateImage = '';
......@@ -51,10 +52,10 @@ class Home extends StatelessWidget {
child: FlatButton(
child: Container(
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(8),
borderRadius: BorderRadius.circular(4),
border: Border.all(
color: Colors.blue[200],
width: 8,
width: 4,
),
),
margin: EdgeInsets.all(2),
......@@ -77,26 +78,22 @@ class Home extends StatelessWidget {
List images = myProvider.images;
return Container(
padding: EdgeInsets.all(5),
padding: EdgeInsets.all(2),
child: ListView(
children: [
Table(
defaultColumnWidth: IntrinsicColumnWidth(),
children: [
for (var imageIndex = 0; imageIndex < images.length; imageIndex+=2)
for (var imageIndex = 0; imageIndex < images.length; imageIndex += _selectImageColumnsCount)
TableRow(
children: [
Column(
children: [
_buildImageSelectorItem(myProvider, images[imageIndex], size, tileImageSize)
]
),
Column(
children: [
if (imageIndex+1 < images.length)
_buildImageSelectorItem(myProvider, images[imageIndex+1], size, tileImageSize)
]
),
for (var columnIndex = 0; columnIndex < _selectImageColumnsCount; columnIndex++)
Column(
children: [
if (imageIndex + columnIndex < images.length)
_buildImageSelectorItem(myProvider, images[imageIndex + columnIndex], size, tileImageSize)
]
),
]
),
],
......@@ -291,7 +288,7 @@ class Home extends StatelessWidget {
var content;
double _selectorImageSize = MediaQuery.of(context).size.width / 3;
double _selectorImageSize = (MediaQuery.of(context).size.width - 140) / _selectImageColumnsCount;
double _tileImageSize = (MediaQuery.of(context).size.width - 70) / _myProvider.tilesCount;
if (_myProvider.shuffling) {
......
......@@ -10,7 +10,7 @@ IMAGES_RAW_FOLDER="${IMAGES_CACHE_FOLDER}/01_raw_images"
IMAGES_OPTIMIZED_FOLDER="${IMAGES_CACHE_FOLDER}/02_optimized_images"
RESIZE_OPTION="640x640"
CROP_PARAMETERS="-auto-orient -trim +repage -gravity center -background white -extent ${RESIZE_OPTION}^"
CROP_PARAMETERS="-auto-orient +repage -gravity center -background white -extent ${RESIZE_OPTION}^"
CONVERT_OPTIONS="-alpha off +dither -colors 256 -depth 4"
OPTIPNG_OPTIONS="-preserve -quiet -o7"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment