Commit e7154c6a authored by Timothé KOBAK's avatar Timothé KOBAK

f

parents 0778a3e0 e9931cef
*/pubspec.lock
*/build/
*/.dart_tool/
// Flutter web plugin registrant file.
//
// Generated file. Do not edit.
//
// @dart = 2.13
// ignore_for_file: type=lint
import 'package:camera_web/camera_web.dart';
import 'package:flutter_web_plugins/flutter_web_plugins.dart';
void registerPlugins([final Registrar? pluginRegistrar]) {
final Registrar registrar = pluginRegistrar ?? webPluginRegistrar;
CameraPlugin.registerWith(registrar);
registrar.registerMessageHandler();
}
Extension Discovery Cache
=========================
This folder is used by `package:extension_discovery` to cache lists of
packages that contains extensions for other packages.
DO NOT USE THIS FOLDER
----------------------
* Do not read (or rely) the contents of this folder.
* Do write to this folder.
If you're interested in the lists of extensions stored in this folder use the
API offered by package `extension_discovery` to get this information.
If this package doesn't work for your use-case, then don't try to read the
contents of this folder. It may change, and will not remain stable.
Use package `extension_discovery`
---------------------------------
If you want to access information from this folder.
Feel free to delete this folder
-------------------------------
Files in this folder act as a cache, and the cache is discarded if the files
are older than the modification time of `.dart_tool/package_config.json`.
Hence, it should never be necessary to clear this cache manually, if you find a
need to do please file a bug.
{"version":2,"entries":[{"package":"tp2","rootUri":"../","packageUri":"lib/"}]}
\ No newline at end of file
{
"configVersion": 2,
"packages": [
{
"name": "async",
"rootUri": "file:///home/timothe/.pub-cache/hosted/pub.dev/async-2.11.0",
"packageUri": "lib/",
"languageVersion": "2.18"
},
{
"name": "boolean_selector",
"rootUri": "file:///home/timothe/.pub-cache/hosted/pub.dev/boolean_selector-2.1.1",
"packageUri": "lib/",
"languageVersion": "2.17"
},
{
"name": "camera",
"rootUri": "file:///home/timothe/.pub-cache/hosted/pub.dev/camera-0.9.8+1",
"packageUri": "lib/",
"languageVersion": "2.14"
},
{
"name": "camera_android",
"rootUri": "file:///home/timothe/.pub-cache/hosted/pub.dev/camera_android-0.9.8+3",
"packageUri": "lib/",
"languageVersion": "2.14"
},
{
"name": "camera_avfoundation",
"rootUri": "file:///home/timothe/.pub-cache/hosted/pub.dev/camera_avfoundation-0.9.14",
"packageUri": "lib/",
"languageVersion": "3.2"
},
{
"name": "camera_platform_interface",
"rootUri": "file:///home/timothe/.pub-cache/hosted/pub.dev/camera_platform_interface-2.7.3",
"packageUri": "lib/",
"languageVersion": "3.0"
},
{
"name": "camera_web",
"rootUri": "file:///home/timothe/.pub-cache/hosted/pub.dev/camera_web-0.2.1+6",
"packageUri": "lib/",
"languageVersion": "2.12"
},
{
"name": "characters",
"rootUri": "file:///home/timothe/.pub-cache/hosted/pub.dev/characters-1.3.0",
"packageUri": "lib/",
"languageVersion": "2.12"
},
{
"name": "clock",
"rootUri": "file:///home/timothe/.pub-cache/hosted/pub.dev/clock-1.1.1",
"packageUri": "lib/",
"languageVersion": "2.12"
},
{
"name": "collection",
"rootUri": "file:///home/timothe/.pub-cache/hosted/pub.dev/collection-1.18.0",
"packageUri": "lib/",
"languageVersion": "2.18"
},
{
"name": "cross_file",
"rootUri": "file:///home/timothe/.pub-cache/hosted/pub.dev/cross_file-0.3.3+8",
"packageUri": "lib/",
"languageVersion": "3.2"
},
{
"name": "cupertino_icons",
"rootUri": "file:///home/timothe/.pub-cache/hosted/pub.dev/cupertino_icons-1.0.6",
"packageUri": "lib/",
"languageVersion": "2.19"
},
{
"name": "fake_async",
"rootUri": "file:///home/timothe/.pub-cache/hosted/pub.dev/fake_async-1.3.1",
"packageUri": "lib/",
"languageVersion": "2.12"
},
{
"name": "flutter",
"rootUri": "file:///home/timothe/flutter/packages/flutter",
"packageUri": "lib/",
"languageVersion": "3.2"
},
{
"name": "flutter_lints",
"rootUri": "file:///home/timothe/.pub-cache/hosted/pub.dev/flutter_lints-3.0.1",
"packageUri": "lib/",
"languageVersion": "3.0"
},
{
"name": "flutter_plugin_android_lifecycle",
"rootUri": "file:///home/timothe/.pub-cache/hosted/pub.dev/flutter_plugin_android_lifecycle-2.0.17",
"packageUri": "lib/",
"languageVersion": "2.19"
},
{
"name": "flutter_test",
"rootUri": "file:///home/timothe/flutter/packages/flutter_test",
"packageUri": "lib/",
"languageVersion": "3.2"
},
{
"name": "flutter_web_plugins",
"rootUri": "file:///home/timothe/flutter/packages/flutter_web_plugins",
"packageUri": "lib/",
"languageVersion": "3.2"
},
{
"name": "leak_tracker",
"rootUri": "file:///home/timothe/.pub-cache/hosted/pub.dev/leak_tracker-10.0.3",
"packageUri": "lib/",
"languageVersion": "3.2"
},
{
"name": "leak_tracker_flutter_testing",
"rootUri": "file:///home/timothe/.pub-cache/hosted/pub.dev/leak_tracker_flutter_testing-3.0.2",
"packageUri": "lib/",
"languageVersion": "3.2"
},
{
"name": "leak_tracker_testing",
"rootUri": "file:///home/timothe/.pub-cache/hosted/pub.dev/leak_tracker_testing-3.0.0",
"packageUri": "lib/",
"languageVersion": "3.2"
},
{
"name": "lints",
"rootUri": "file:///home/timothe/.pub-cache/hosted/pub.dev/lints-3.0.0",
"packageUri": "lib/",
"languageVersion": "3.0"
},
{
"name": "matcher",
"rootUri": "file:///home/timothe/.pub-cache/hosted/pub.dev/matcher-0.12.16+1",
"packageUri": "lib/",
"languageVersion": "3.0"
},
{
"name": "material_color_utilities",
"rootUri": "file:///home/timothe/.pub-cache/hosted/pub.dev/material_color_utilities-0.8.0",
"packageUri": "lib/",
"languageVersion": "2.17"
},
{
"name": "meta",
"rootUri": "file:///home/timothe/.pub-cache/hosted/pub.dev/meta-1.11.0",
"packageUri": "lib/",
"languageVersion": "2.12"
},
{
"name": "path",
"rootUri": "file:///home/timothe/.pub-cache/hosted/pub.dev/path-1.9.0",
"packageUri": "lib/",
"languageVersion": "3.0"
},
{
"name": "plugin_platform_interface",
"rootUri": "file:///home/timothe/.pub-cache/hosted/pub.dev/plugin_platform_interface-2.1.8",
"packageUri": "lib/",
"languageVersion": "3.0"
},
{
"name": "quiver",
"rootUri": "file:///home/timothe/.pub-cache/hosted/pub.dev/quiver-3.2.1",
"packageUri": "lib/",
"languageVersion": "2.17"
},
{
"name": "sky_engine",
"rootUri": "file:///home/timothe/flutter/bin/cache/pkg/sky_engine",
"packageUri": "lib/",
"languageVersion": "3.2"
},
{
"name": "source_span",
"rootUri": "file:///home/timothe/.pub-cache/hosted/pub.dev/source_span-1.10.0",
"packageUri": "lib/",
"languageVersion": "2.18"
},
{
"name": "stack_trace",
"rootUri": "file:///home/timothe/.pub-cache/hosted/pub.dev/stack_trace-1.11.1",
"packageUri": "lib/",
"languageVersion": "2.18"
},
{
"name": "stream_channel",
"rootUri": "file:///home/timothe/.pub-cache/hosted/pub.dev/stream_channel-2.1.2",
"packageUri": "lib/",
"languageVersion": "2.19"
},
{
"name": "stream_transform",
"rootUri": "file:///home/timothe/.pub-cache/hosted/pub.dev/stream_transform-2.1.0",
"packageUri": "lib/",
"languageVersion": "2.14"
},
{
"name": "string_scanner",
"rootUri": "file:///home/timothe/.pub-cache/hosted/pub.dev/string_scanner-1.2.0",
"packageUri": "lib/",
"languageVersion": "2.18"
},
{
"name": "term_glyph",
"rootUri": "file:///home/timothe/.pub-cache/hosted/pub.dev/term_glyph-1.2.1",
"packageUri": "lib/",
"languageVersion": "2.12"
},
{
"name": "test_api",
"rootUri": "file:///home/timothe/.pub-cache/hosted/pub.dev/test_api-0.7.0",
"packageUri": "lib/",
"languageVersion": "3.0"
},
{
"name": "vector_math",
"rootUri": "file:///home/timothe/.pub-cache/hosted/pub.dev/vector_math-2.1.4",
"packageUri": "lib/",
"languageVersion": "2.14"
},
{
"name": "vm_service",
"rootUri": "file:///home/timothe/.pub-cache/hosted/pub.dev/vm_service-14.0.0",
"packageUri": "lib/",
"languageVersion": "3.0"
},
{
"name": "web",
"rootUri": "file:///home/timothe/.pub-cache/hosted/pub.dev/web-0.4.2",
"packageUri": "lib/",
"languageVersion": "3.2"
},
{
"name": "tp2",
"rootUri": "../",
"packageUri": "lib/",
"languageVersion": "3.4"
}
],
"generated": "2024-02-20T04:43:04.208314Z",
"generator": "pub",
"generatorVersion": "3.4.0-99.0.dev"
}
async
2.18
file:///home/timothe/.pub-cache/hosted/pub.dev/async-2.11.0/
file:///home/timothe/.pub-cache/hosted/pub.dev/async-2.11.0/lib/
boolean_selector
2.17
file:///home/timothe/.pub-cache/hosted/pub.dev/boolean_selector-2.1.1/
file:///home/timothe/.pub-cache/hosted/pub.dev/boolean_selector-2.1.1/lib/
camera
2.14
file:///home/timothe/.pub-cache/hosted/pub.dev/camera-0.9.8+1/
file:///home/timothe/.pub-cache/hosted/pub.dev/camera-0.9.8+1/lib/
camera_android
2.14
file:///home/timothe/.pub-cache/hosted/pub.dev/camera_android-0.9.8+3/
file:///home/timothe/.pub-cache/hosted/pub.dev/camera_android-0.9.8+3/lib/
camera_avfoundation
3.2
file:///home/timothe/.pub-cache/hosted/pub.dev/camera_avfoundation-0.9.14/
file:///home/timothe/.pub-cache/hosted/pub.dev/camera_avfoundation-0.9.14/lib/
camera_platform_interface
3.0
file:///home/timothe/.pub-cache/hosted/pub.dev/camera_platform_interface-2.7.3/
file:///home/timothe/.pub-cache/hosted/pub.dev/camera_platform_interface-2.7.3/lib/
camera_web
2.12
file:///home/timothe/.pub-cache/hosted/pub.dev/camera_web-0.2.1+6/
file:///home/timothe/.pub-cache/hosted/pub.dev/camera_web-0.2.1+6/lib/
characters
2.12
file:///home/timothe/.pub-cache/hosted/pub.dev/characters-1.3.0/
file:///home/timothe/.pub-cache/hosted/pub.dev/characters-1.3.0/lib/
clock
2.12
file:///home/timothe/.pub-cache/hosted/pub.dev/clock-1.1.1/
file:///home/timothe/.pub-cache/hosted/pub.dev/clock-1.1.1/lib/
collection
2.18
file:///home/timothe/.pub-cache/hosted/pub.dev/collection-1.18.0/
file:///home/timothe/.pub-cache/hosted/pub.dev/collection-1.18.0/lib/
cross_file
3.2
file:///home/timothe/.pub-cache/hosted/pub.dev/cross_file-0.3.3+8/
file:///home/timothe/.pub-cache/hosted/pub.dev/cross_file-0.3.3+8/lib/
cupertino_icons
2.19
file:///home/timothe/.pub-cache/hosted/pub.dev/cupertino_icons-1.0.6/
file:///home/timothe/.pub-cache/hosted/pub.dev/cupertino_icons-1.0.6/lib/
fake_async
2.12
file:///home/timothe/.pub-cache/hosted/pub.dev/fake_async-1.3.1/
file:///home/timothe/.pub-cache/hosted/pub.dev/fake_async-1.3.1/lib/
flutter_lints
3.0
file:///home/timothe/.pub-cache/hosted/pub.dev/flutter_lints-3.0.1/
file:///home/timothe/.pub-cache/hosted/pub.dev/flutter_lints-3.0.1/lib/
flutter_plugin_android_lifecycle
2.19
file:///home/timothe/.pub-cache/hosted/pub.dev/flutter_plugin_android_lifecycle-2.0.17/
file:///home/timothe/.pub-cache/hosted/pub.dev/flutter_plugin_android_lifecycle-2.0.17/lib/
leak_tracker
3.2
file:///home/timothe/.pub-cache/hosted/pub.dev/leak_tracker-10.0.3/
file:///home/timothe/.pub-cache/hosted/pub.dev/leak_tracker-10.0.3/lib/
leak_tracker_flutter_testing
3.2
file:///home/timothe/.pub-cache/hosted/pub.dev/leak_tracker_flutter_testing-3.0.2/
file:///home/timothe/.pub-cache/hosted/pub.dev/leak_tracker_flutter_testing-3.0.2/lib/
leak_tracker_testing
3.2
file:///home/timothe/.pub-cache/hosted/pub.dev/leak_tracker_testing-3.0.0/
file:///home/timothe/.pub-cache/hosted/pub.dev/leak_tracker_testing-3.0.0/lib/
lints
3.0
file:///home/timothe/.pub-cache/hosted/pub.dev/lints-3.0.0/
file:///home/timothe/.pub-cache/hosted/pub.dev/lints-3.0.0/lib/
matcher
3.0
file:///home/timothe/.pub-cache/hosted/pub.dev/matcher-0.12.16+1/
file:///home/timothe/.pub-cache/hosted/pub.dev/matcher-0.12.16+1/lib/
material_color_utilities
2.17
file:///home/timothe/.pub-cache/hosted/pub.dev/material_color_utilities-0.8.0/
file:///home/timothe/.pub-cache/hosted/pub.dev/material_color_utilities-0.8.0/lib/
meta
2.12
file:///home/timothe/.pub-cache/hosted/pub.dev/meta-1.11.0/
file:///home/timothe/.pub-cache/hosted/pub.dev/meta-1.11.0/lib/
path
3.0
file:///home/timothe/.pub-cache/hosted/pub.dev/path-1.9.0/
file:///home/timothe/.pub-cache/hosted/pub.dev/path-1.9.0/lib/
plugin_platform_interface
3.0
file:///home/timothe/.pub-cache/hosted/pub.dev/plugin_platform_interface-2.1.8/
file:///home/timothe/.pub-cache/hosted/pub.dev/plugin_platform_interface-2.1.8/lib/
quiver
2.17
file:///home/timothe/.pub-cache/hosted/pub.dev/quiver-3.2.1/
file:///home/timothe/.pub-cache/hosted/pub.dev/quiver-3.2.1/lib/
source_span
2.18
file:///home/timothe/.pub-cache/hosted/pub.dev/source_span-1.10.0/
file:///home/timothe/.pub-cache/hosted/pub.dev/source_span-1.10.0/lib/
stack_trace
2.18
file:///home/timothe/.pub-cache/hosted/pub.dev/stack_trace-1.11.1/
file:///home/timothe/.pub-cache/hosted/pub.dev/stack_trace-1.11.1/lib/
stream_channel
2.19
file:///home/timothe/.pub-cache/hosted/pub.dev/stream_channel-2.1.2/
file:///home/timothe/.pub-cache/hosted/pub.dev/stream_channel-2.1.2/lib/
stream_transform
2.14
file:///home/timothe/.pub-cache/hosted/pub.dev/stream_transform-2.1.0/
file:///home/timothe/.pub-cache/hosted/pub.dev/stream_transform-2.1.0/lib/
string_scanner
2.18
file:///home/timothe/.pub-cache/hosted/pub.dev/string_scanner-1.2.0/
file:///home/timothe/.pub-cache/hosted/pub.dev/string_scanner-1.2.0/lib/
term_glyph
2.12
file:///home/timothe/.pub-cache/hosted/pub.dev/term_glyph-1.2.1/
file:///home/timothe/.pub-cache/hosted/pub.dev/term_glyph-1.2.1/lib/
test_api
3.0
file:///home/timothe/.pub-cache/hosted/pub.dev/test_api-0.7.0/
file:///home/timothe/.pub-cache/hosted/pub.dev/test_api-0.7.0/lib/
vector_math
2.14
file:///home/timothe/.pub-cache/hosted/pub.dev/vector_math-2.1.4/
file:///home/timothe/.pub-cache/hosted/pub.dev/vector_math-2.1.4/lib/
vm_service
3.0
file:///home/timothe/.pub-cache/hosted/pub.dev/vm_service-14.0.0/
file:///home/timothe/.pub-cache/hosted/pub.dev/vm_service-14.0.0/lib/
web
3.2
file:///home/timothe/.pub-cache/hosted/pub.dev/web-0.4.2/
file:///home/timothe/.pub-cache/hosted/pub.dev/web-0.4.2/lib/
tp2
3.4
file:///home/timothe/amse/tp2/
file:///home/timothe/amse/tp2/lib/
sky_engine
3.2
file:///home/timothe/flutter/bin/cache/pkg/sky_engine/
file:///home/timothe/flutter/bin/cache/pkg/sky_engine/lib/
flutter
3.2
file:///home/timothe/flutter/packages/flutter/
file:///home/timothe/flutter/packages/flutter/lib/
flutter_test
3.2
file:///home/timothe/flutter/packages/flutter_test/
file:///home/timothe/flutter/packages/flutter_test/lib/
flutter_web_plugins
3.2
file:///home/timothe/flutter/packages/flutter_web_plugins/
file:///home/timothe/flutter/packages/flutter_web_plugins/lib/
2
3.20.0-2.0.pre.7
\ No newline at end of file
# This is a generated file; do not edit or check into version control.
camera=/home/timothe/.pub-cache/hosted/pub.dev/camera-0.9.8+1/
camera_android=/home/timothe/.pub-cache/hosted/pub.dev/camera_android-0.9.8+3/
camera_avfoundation=/home/timothe/.pub-cache/hosted/pub.dev/camera_avfoundation-0.9.14/
camera_web=/home/timothe/.pub-cache/hosted/pub.dev/camera_web-0.2.1+6/
flutter_plugin_android_lifecycle=/home/timothe/.pub-cache/hosted/pub.dev/flutter_plugin_android_lifecycle-2.0.17/
camera=/home/spinelli/.pub-cache/hosted/pub.dev/camera-0.9.8+1/
camera_android=/home/spinelli/.pub-cache/hosted/pub.dev/camera_android-0.9.8+3/
camera_avfoundation=/home/spinelli/.pub-cache/hosted/pub.dev/camera_avfoundation-0.9.14/
camera_web=/home/spinelli/.pub-cache/hosted/pub.dev/camera_web-0.2.1+6/
flutter_plugin_android_lifecycle=/home/spinelli/.pub-cache/hosted/pub.dev/flutter_plugin_android_lifecycle-2.0.17/
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"camera_avfoundation","path":"/home/timothe/.pub-cache/hosted/pub.dev/camera_avfoundation-0.9.14/","native_build":true,"dependencies":[]}],"android":[{"name":"camera_android","path":"/home/timothe/.pub-cache/hosted/pub.dev/camera_android-0.9.8+3/","native_build":true,"dependencies":["flutter_plugin_android_lifecycle"]},{"name":"flutter_plugin_android_lifecycle","path":"/home/timothe/.pub-cache/hosted/pub.dev/flutter_plugin_android_lifecycle-2.0.17/","native_build":true,"dependencies":[]}],"macos":[],"linux":[],"windows":[],"web":[{"name":"camera_web","path":"/home/timothe/.pub-cache/hosted/pub.dev/camera_web-0.2.1+6/","dependencies":[]}]},"dependencyGraph":[{"name":"camera","dependencies":["camera_android","camera_avfoundation","camera_web","flutter_plugin_android_lifecycle"]},{"name":"camera_android","dependencies":["flutter_plugin_android_lifecycle"]},{"name":"camera_avfoundation","dependencies":[]},{"name":"camera_web","dependencies":[]},{"name":"flutter_plugin_android_lifecycle","dependencies":[]}],"date_created":"2024-02-20 05:55:40.136688","version":"3.20.0-2.0.pre.7"}
\ No newline at end of file
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"camera_avfoundation","path":"/home/timothe/.pub-cache/hosted/pub.dev/camera_avfoundation-0.9.14/","native_build":true,"dependencies":[]}],"android":[{"name":"camera_android","path":"/home/timothe/.pub-cache/hosted/pub.dev/camera_android-0.9.8+3/","native_build":true,"dependencies":["flutter_plugin_android_lifecycle"]},{"name":"flutter_plugin_android_lifecycle","path":"/home/timothe/.pub-cache/hosted/pub.dev/flutter_plugin_android_lifecycle-2.0.17/","native_build":true,"dependencies":[]}],"macos":[],"linux":[],"windows":[],"web":[{"name":"camera_web","path":"/home/timothe/.pub-cache/hosted/pub.dev/camera_web-0.2.1+6/","dependencies":[]}]},"dependencyGraph":[{"name":"camera","dependencies":["camera_android","camera_avfoundation","camera_web","flutter_plugin_android_lifecycle"]},{"name":"camera_android","dependencies":["flutter_plugin_android_lifecycle"]},{"name":"camera_avfoundation","dependencies":[]},{"name":"camera_web","dependencies":[]},{"name":"flutter_plugin_android_lifecycle","dependencies":[]}],"date_created":"2024-02-20 05:55:40.136688","version":"3.20.0-2.0.pre.7"}
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -44,51 +44,66 @@ class _Exo6 extends State<Exo6> {
super.initState();
image = Image.network('https://picsum.photos/512');
tiles = buildImage();
}
List<Widget> buildImage(){
int imageCount = 0;
List<Widget> res = <Widget>[];
int index = 0;
emptyTileIndex = math.Random().nextInt(colNb * colNb);
for(int i = 0; i < colNb; i++){
for(int j = 0; j < colNb; j++){
int indexcopy = index;
if(index == emptyTileIndex){
tiles.add(
Flexible(child: Container(margin: EdgeInsets.all(10.0 / colNb)))
);
}else{
Tile tile = Tile(image: image, alignment:
Alignment(-1 + 2 * j.toDouble() / (colNb.toDouble() - 1),
-1 + 2 * i.toDouble() / (colNb.toDouble() - 1))
);
Key k = UniqueKey();
tiles.add(
Flexible(key: k, child: Container(
margin: EdgeInsets.all(10.0 / colNb),
child: InkWell(
child: tile.croppedImageTile(1 / colNb),
onTap: () {
setState(() {
swapTiles(k);
});
}
)
))
);
}
index++;
int indexcopy = imageCount;
Tile tile = Tile(image: image, alignment:
Alignment(-1 + 2 * j.toDouble() / (colNb.toDouble() - 1),
-1 + 2 * i.toDouble() / (colNb.toDouble() - 1))
);
Key k = UniqueKey();
res.add(
Flexible(key: k, child: Container(
margin: EdgeInsets.all(2),
child: InkWell(
child: tile.croppedImageTile(1 / colNb),
onTap: () {
setState(() {
swapTiles(k);
});
}
)
))
);
imageCount++;
}
}
res.shuffle();
res[emptyTileIndex] = Flexible(child: Container(margin: EdgeInsets.all(2)));
return res;
}
void swapTiles(Key k){
var t = tiles.singleWhere((element) => element.key == k);
tiles[emptyTileIndex] = t;
tiles[tiles.indexOf(t)] = Flexible(child: Container(margin: EdgeInsets.all(10.0 / colNb)));
emptyTileIndex = tiles.indexOf(t);
Widget t = tiles.singleWhere((element) => element.key == k);
int i = tiles.indexOf(t);
// If tile is neighbor of empty tile => move
if(
i+1 == emptyTileIndex && i%colNb != colNb-1 ||
i-1 == emptyTileIndex && i%colNb != 0 ||
i-colNb == emptyTileIndex ||
i+colNb == emptyTileIndex
){
tiles[emptyTileIndex] = t;
tiles[i] = Flexible(child: Container(margin: EdgeInsets.all(2)));
emptyTileIndex = i;
}
}
@override
......@@ -120,9 +135,12 @@ class _Exo6 extends State<Exo6> {
min: 2,
max: 6,
onChanged: (double value) {
setState(() {
colNb = value.toInt();
});
if(value.toInt() != colNb){
setState(() {
colNb = value.toInt();
tiles = buildImage();
});
}
}
),
]),
......
# Generated by pub
# See https://dart.dev/tools/pub/glossary#lockfile
packages:
async:
dependency: transitive
description:
name: async
sha256: "947bfcf187f74dbc5e146c9eb9c0f10c9f8b30743e341481c1e2ed3ecc18c20c"
url: "https://pub.dev"
source: hosted
version: "2.11.0"
boolean_selector:
dependency: transitive
description:
name: boolean_selector
sha256: "6cfb5af12253eaf2b368f07bacc5a80d1301a071c73360d746b7f2e32d762c66"
url: "https://pub.dev"
source: hosted
version: "2.1.1"
camera:
dependency: "direct main"
description:
name: camera
sha256: "3ad71371b8168a4c8012c0b40a53c05afc75d46cc688b0f37b4611a841d47b25"
url: "https://pub.dev"
source: hosted
version: "0.9.8+1"
camera_android:
dependency: transitive
description:
name: camera_android
sha256: "665d62c1f334722c7519ca5d3b94ad68ecaa801691870602da5638a42c1fff67"
url: "https://pub.dev"
source: hosted
version: "0.9.8+3"
camera_avfoundation:
dependency: transitive
description:
name: camera_avfoundation
sha256: "7d0763dfcbf060f56aa254a68c103210280bee9e97bbe4fdef23e257a4f70ab9"
url: "https://pub.dev"
source: hosted
version: "0.9.14"
camera_platform_interface:
dependency: transitive
description:
name: camera_platform_interface
sha256: fceb2c36038b6392317b1d5790c6ba9e6ca9f1da3031181b8bea03882bf9387a
url: "https://pub.dev"
source: hosted
version: "2.7.3"
camera_web:
dependency: transitive
description:
name: camera_web
sha256: "18cdbee5441e9a6fb129fdd9b68a06d1b8c5236932ba97d5faeaefe80db2e5bd"
url: "https://pub.dev"
source: hosted
version: "0.2.1+6"
characters:
dependency: transitive
description:
name: characters
sha256: "04a925763edad70e8443c99234dc3328f442e811f1d8fd1a72f1c8ad0f69a605"
url: "https://pub.dev"
source: hosted
version: "1.3.0"
clock:
dependency: transitive
description:
name: clock
sha256: cb6d7f03e1de671e34607e909a7213e31d7752be4fb66a86d29fe1eb14bfb5cf
url: "https://pub.dev"
source: hosted
version: "1.1.1"
collection:
dependency: transitive
description:
name: collection
sha256: ee67cb0715911d28db6bf4af1026078bd6f0128b07a5f66fb2ed94ec6783c09a
url: "https://pub.dev"
source: hosted
version: "1.18.0"
cross_file:
dependency: transitive
description:
name: cross_file
sha256: fedaadfa3a6996f75211d835aaeb8fede285dae94262485698afd832371b9a5e
url: "https://pub.dev"
source: hosted
version: "0.3.3+8"
cupertino_icons:
dependency: "direct main"
description:
name: cupertino_icons
sha256: d57953e10f9f8327ce64a508a355f0b1ec902193f66288e8cb5070e7c47eeb2d
url: "https://pub.dev"
source: hosted
version: "1.0.6"
fake_async:
dependency: transitive
description:
name: fake_async
sha256: "511392330127add0b769b75a987850d136345d9227c6b94c96a04cf4a391bf78"
url: "https://pub.dev"
source: hosted
version: "1.3.1"
flutter:
dependency: "direct main"
description: flutter
source: sdk
version: "0.0.0"
flutter_lints:
dependency: "direct dev"
description:
name: flutter_lints
sha256: e2a421b7e59244faef694ba7b30562e489c2b489866e505074eb005cd7060db7
url: "https://pub.dev"
source: hosted
version: "3.0.1"
flutter_plugin_android_lifecycle:
dependency: transitive
description:
name: flutter_plugin_android_lifecycle
sha256: b068ffc46f82a55844acfa4fdbb61fad72fa2aef0905548419d97f0f95c456da
url: "https://pub.dev"
source: hosted
version: "2.0.17"
flutter_test:
dependency: "direct dev"
description: flutter
source: sdk
version: "0.0.0"
flutter_web_plugins:
dependency: transitive
description: flutter
source: sdk
version: "0.0.0"
leak_tracker:
dependency: transitive
description:
name: leak_tracker
sha256: cdd14e3836065a1f6302a236ec8b5f700695c803c57ae11a1c84df31e6bcf831
url: "https://pub.dev"
source: hosted
version: "10.0.3"
leak_tracker_flutter_testing:
dependency: transitive
description:
name: leak_tracker_flutter_testing
sha256: "9b2ef90589911d665277464e0482b209d39882dffaaf4ef69a3561a3354b2ebc"
url: "https://pub.dev"
source: hosted
version: "3.0.2"
leak_tracker_testing:
dependency: transitive
description:
name: leak_tracker_testing
sha256: fd3cd66cb2bcd7b50dcd3b413af49d78051f809c8b3f6e047962765c15a0d23d
url: "https://pub.dev"
source: hosted
version: "3.0.0"
lints:
dependency: transitive
description:
name: lints
sha256: cbf8d4b858bb0134ef3ef87841abdf8d63bfc255c266b7bf6b39daa1085c4290
url: "https://pub.dev"
source: hosted
version: "3.0.0"
matcher:
dependency: transitive
description:
name: matcher
sha256: d2323aa2060500f906aa31a895b4030b6da3ebdcc5619d14ce1aada65cd161cb
url: "https://pub.dev"
source: hosted
version: "0.12.16+1"
material_color_utilities:
dependency: transitive
description:
name: material_color_utilities
sha256: "0e0a020085b65b6083975e499759762399b4475f766c21668c4ecca34ea74e5a"
url: "https://pub.dev"
source: hosted
version: "0.8.0"
meta:
dependency: transitive
description:
name: meta
sha256: d584fa6707a52763a52446f02cc621b077888fb63b93bbcb1143a7be5a0c0c04
url: "https://pub.dev"
source: hosted
version: "1.11.0"
path:
dependency: transitive
description:
name: path
sha256: "087ce49c3f0dc39180befefc60fdb4acd8f8620e5682fe2476afd0b3688bb4af"
url: "https://pub.dev"
source: hosted
version: "1.9.0"
plugin_platform_interface:
dependency: transitive
description:
name: plugin_platform_interface
sha256: "4820fbfdb9478b1ebae27888254d445073732dae3d6ea81f0b7e06d5dedc3f02"
url: "https://pub.dev"
source: hosted
version: "2.1.8"
quiver:
dependency: transitive
description:
name: quiver
sha256: b1c1ac5ce6688d77f65f3375a9abb9319b3cb32486bdc7a1e0fdf004d7ba4e47
url: "https://pub.dev"
source: hosted
version: "3.2.1"
sky_engine:
dependency: transitive
description: flutter
source: sdk
version: "0.0.99"
source_span:
dependency: transitive
description:
name: source_span
sha256: "53e943d4206a5e30df338fd4c6e7a077e02254531b138a15aec3bd143c1a8b3c"
url: "https://pub.dev"
source: hosted
version: "1.10.0"
stack_trace:
dependency: transitive
description:
name: stack_trace
sha256: "73713990125a6d93122541237550ee3352a2d84baad52d375a4cad2eb9b7ce0b"
url: "https://pub.dev"
source: hosted
version: "1.11.1"
stream_channel:
dependency: transitive
description:
name: stream_channel
sha256: ba2aa5d8cc609d96bbb2899c28934f9e1af5cddbd60a827822ea467161eb54e7
url: "https://pub.dev"
source: hosted
version: "2.1.2"
stream_transform:
dependency: transitive
description:
name: stream_transform
sha256: "14a00e794c7c11aa145a170587321aedce29769c08d7f58b1d141da75e3b1c6f"
url: "https://pub.dev"
source: hosted
version: "2.1.0"
string_scanner:
dependency: transitive
description:
name: string_scanner
sha256: "556692adab6cfa87322a115640c11f13cb77b3f076ddcc5d6ae3c20242bedcde"
url: "https://pub.dev"
source: hosted
version: "1.2.0"
term_glyph:
dependency: transitive
description:
name: term_glyph
sha256: a29248a84fbb7c79282b40b8c72a1209db169a2e0542bce341da992fe1bc7e84
url: "https://pub.dev"
source: hosted
version: "1.2.1"
test_api:
dependency: transitive
description:
name: test_api
sha256: "9955ae474176f7ac8ee4e989dadfb411a58c30415bcfb648fa04b2b8a03afa7f"
url: "https://pub.dev"
source: hosted
version: "0.7.0"
vector_math:
dependency: "direct main"
description:
name: vector_math
sha256: "80b3257d1492ce4d091729e3a67a60407d227c27241d6927be0130c98e741803"
url: "https://pub.dev"
source: hosted
version: "2.1.4"
vm_service:
dependency: transitive
description:
name: vm_service
sha256: a2662fb1f114f4296cf3f5a50786a2d888268d7776cf681aa17d660ffa23b246
url: "https://pub.dev"
source: hosted
version: "14.0.0"
web:
dependency: transitive
description:
name: web
sha256: "4188706108906f002b3a293509234588823c8c979dc83304e229ff400c996b05"
url: "https://pub.dev"
source: hosted
version: "0.4.2"
sdks:
dart: ">=3.4.0-99.0.dev <4.0.0"
flutter: ">=3.18.0-18.0.pre.54"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment