Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
amse
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Matis SPINELLI
amse
Commits
e7154c6a
Commit
e7154c6a
authored
Feb 26, 2024
by
Timothé KOBAK
Browse files
Options
Browse Files
Download
Plain Diff
f
parents
0778a3e0
e9931cef
Changes
13
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
66 additions
and
34542 deletions
+66
-34542
.gitignore
.gitignore
+4
-0
web_plugin_registrant.dart
tp2/.dart_tool/dartpad/web_plugin_registrant.dart
+0
-16
README.md
tp2/.dart_tool/extension_discovery/README.md
+0
-31
vs_code.json
tp2/.dart_tool/extension_discovery/vs_code.json
+0
-1
package_config.json
tp2/.dart_tool/package_config.json
+0
-248
package_config_subset
tp2/.dart_tool/package_config_subset
+0
-161
version
tp2/.dart_tool/version
+0
-1
.flutter-plugins
tp2/.flutter-plugins
+5
-5
.flutter-plugins-dependencies
tp2/.flutter-plugins-dependencies
+1
-1
ebbe37bbdbae954559adaa7d65e2e763.cache.dill.track.dill
...ld/ebbe37bbdbae954559adaa7d65e2e763.cache.dill.track.dill
+0
-0
NOTICES
tp2/build/flutter_assets/NOTICES
+0
-33734
exo6.dart
tp2/lib/exo6.dart
+56
-38
pubspec.lock
tp2/pubspec.lock
+0
-306
No files found.
.gitignore
0 → 100644
View file @
e7154c6a
*/pubspec.lock
*/build/
*/.dart_tool/
tp2/.dart_tool/dartpad/web_plugin_registrant.dart
deleted
100644 → 0
View file @
0778a3e0
// 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
();
}
tp2/.dart_tool/extension_discovery/README.md
deleted
100644 → 0
View file @
0778a3e0
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.
tp2/.dart_tool/extension_discovery/vs_code.json
deleted
100644 → 0
View file @
0778a3e0
{
"version"
:
2
,
"entries"
:[{
"package"
:
"tp2"
,
"rootUri"
:
"../"
,
"packageUri"
:
"lib/"
}]}
\ No newline at end of file
tp2/.dart_tool/package_config.json
deleted
100644 → 0
View file @
0778a3e0
{
"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"
}
tp2/.dart_tool/package_config_subset
deleted
100644 → 0
View file @
0778a3e0
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
tp2/.dart_tool/version
deleted
100644 → 0
View file @
0778a3e0
3.20.0-2.0.pre.7
\ No newline at end of file
tp2/.flutter-plugins
View file @
e7154c6a
# 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/
tp2/.flutter-plugins-dependencies
View file @
e7154c6a
tp2/build/ebbe37bbdbae954559adaa7d65e2e763.cache.dill.track.dill
View file @
e7154c6a
No preview for this file type
tp2/build/flutter_assets/NOTICES
deleted
100644 → 0
View file @
0778a3e0
This diff is collapsed.
Click to expand it.
tp2/lib/exo6.dart
View file @
e7154c6a
...
...
@@ -44,19 +44,19 @@ 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
=
i
ndex
;
int
indexcopy
=
i
mageCount
;
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
))
...
...
@@ -64,9 +64,9 @@ class _Exo6 extends State<Exo6> {
Key
k
=
UniqueKey
();
til
es
.
add
(
r
es
.
add
(
Flexible
(
key:
k
,
child:
Container
(
margin:
EdgeInsets
.
all
(
10.0
/
colNb
),
margin:
EdgeInsets
.
all
(
2
),
child:
InkWell
(
child:
tile
.
croppedImageTile
(
1
/
colNb
),
onTap:
()
{
...
...
@@ -77,18 +77,33 @@ class _Exo6 extends State<Exo6> {
)
))
);
}
i
ndex
++;
i
mageCount
++;
}
}
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
);
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
[
tiles
.
indexOf
(
t
)]
=
Flexible
(
child:
Container
(
margin:
EdgeInsets
.
all
(
10.0
/
colNb
)));
emptyTileIndex
=
tiles
.
indexOf
(
t
);
tiles
[
i
]
=
Flexible
(
child:
Container
(
margin:
EdgeInsets
.
all
(
2
)));
emptyTileIndex
=
i
;
}
}
@override
...
...
@@ -120,10 +135,13 @@ class _Exo6 extends State<Exo6> {
min:
2
,
max:
6
,
onChanged:
(
double
value
)
{
if
(
value
.
toInt
()
!=
colNb
){
setState
(()
{
colNb
=
value
.
toInt
();
tiles
=
buildImage
();
});
}
}
),
]),
);
...
...
tp2/pubspec.lock
deleted
100644 → 0
View file @
0778a3e0
# 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"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment