Commit 46b79fb5 authored by Timothé KOBAK's avatar Timothé KOBAK

session lundi aprem #malade

parent 1a719333
...@@ -3,6 +3,14 @@ ...@@ -3,6 +3,14 @@
// Generated file. Do not edit. // Generated file. Do not edit.
// //
// @dart = 2.13
// ignore_for_file: type=lint // ignore_for_file: type=lint
void registerPlugins() {} 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
This diff is collapsed.
async async
2.18 2.18
file:///home/spinelli/.pub-cache/hosted/pub.dev/async-2.11.0/ file:///home/timothe/.pub-cache/hosted/pub.dev/async-2.11.0/
file:///home/spinelli/.pub-cache/hosted/pub.dev/async-2.11.0/lib/ file:///home/timothe/.pub-cache/hosted/pub.dev/async-2.11.0/lib/
boolean_selector boolean_selector
2.17 2.17
file:///home/spinelli/.pub-cache/hosted/pub.dev/boolean_selector-2.1.1/ file:///home/timothe/.pub-cache/hosted/pub.dev/boolean_selector-2.1.1/
file:///home/spinelli/.pub-cache/hosted/pub.dev/boolean_selector-2.1.1/lib/ 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 characters
2.12 2.12
file:///home/spinelli/.pub-cache/hosted/pub.dev/characters-1.3.0/ file:///home/timothe/.pub-cache/hosted/pub.dev/characters-1.3.0/
file:///home/spinelli/.pub-cache/hosted/pub.dev/characters-1.3.0/lib/ file:///home/timothe/.pub-cache/hosted/pub.dev/characters-1.3.0/lib/
clock clock
2.12 2.12
file:///home/spinelli/.pub-cache/hosted/pub.dev/clock-1.1.1/ file:///home/timothe/.pub-cache/hosted/pub.dev/clock-1.1.1/
file:///home/spinelli/.pub-cache/hosted/pub.dev/clock-1.1.1/lib/ file:///home/timothe/.pub-cache/hosted/pub.dev/clock-1.1.1/lib/
collection collection
2.18 2.18
file:///home/spinelli/.pub-cache/hosted/pub.dev/collection-1.18.0/ file:///home/timothe/.pub-cache/hosted/pub.dev/collection-1.18.0/
file:///home/spinelli/.pub-cache/hosted/pub.dev/collection-1.18.0/lib/ 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 cupertino_icons
2.19 2.19
file:///home/spinelli/.pub-cache/hosted/pub.dev/cupertino_icons-1.0.6/ file:///home/timothe/.pub-cache/hosted/pub.dev/cupertino_icons-1.0.6/
file:///home/spinelli/.pub-cache/hosted/pub.dev/cupertino_icons-1.0.6/lib/ file:///home/timothe/.pub-cache/hosted/pub.dev/cupertino_icons-1.0.6/lib/
fake_async fake_async
2.12 2.12
file:///home/spinelli/.pub-cache/hosted/pub.dev/fake_async-1.3.1/ file:///home/timothe/.pub-cache/hosted/pub.dev/fake_async-1.3.1/
file:///home/spinelli/.pub-cache/hosted/pub.dev/fake_async-1.3.1/lib/ file:///home/timothe/.pub-cache/hosted/pub.dev/fake_async-1.3.1/lib/
flutter_lints flutter_lints
3.0 3.0
file:///home/spinelli/.pub-cache/hosted/pub.dev/flutter_lints-3.0.1/ file:///home/timothe/.pub-cache/hosted/pub.dev/flutter_lints-3.0.1/
file:///home/spinelli/.pub-cache/hosted/pub.dev/flutter_lints-3.0.1/lib/ 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 leak_tracker
3.2 3.2
file:///home/spinelli/.pub-cache/hosted/pub.dev/leak_tracker-10.0.4/ file:///home/timothe/.pub-cache/hosted/pub.dev/leak_tracker-10.0.3/
file:///home/spinelli/.pub-cache/hosted/pub.dev/leak_tracker-10.0.4/lib/ file:///home/timothe/.pub-cache/hosted/pub.dev/leak_tracker-10.0.3/lib/
leak_tracker_flutter_testing leak_tracker_flutter_testing
3.2 3.2
file:///home/spinelli/.pub-cache/hosted/pub.dev/leak_tracker_flutter_testing-3.0.3/ file:///home/timothe/.pub-cache/hosted/pub.dev/leak_tracker_flutter_testing-3.0.2/
file:///home/spinelli/.pub-cache/hosted/pub.dev/leak_tracker_flutter_testing-3.0.3/lib/ file:///home/timothe/.pub-cache/hosted/pub.dev/leak_tracker_flutter_testing-3.0.2/lib/
leak_tracker_testing leak_tracker_testing
3.2 3.2
file:///home/spinelli/.pub-cache/hosted/pub.dev/leak_tracker_testing-3.0.1/ file:///home/timothe/.pub-cache/hosted/pub.dev/leak_tracker_testing-3.0.0/
file:///home/spinelli/.pub-cache/hosted/pub.dev/leak_tracker_testing-3.0.1/lib/ file:///home/timothe/.pub-cache/hosted/pub.dev/leak_tracker_testing-3.0.0/lib/
lints lints
3.0 3.0
file:///home/spinelli/.pub-cache/hosted/pub.dev/lints-3.0.0/ file:///home/timothe/.pub-cache/hosted/pub.dev/lints-3.0.0/
file:///home/spinelli/.pub-cache/hosted/pub.dev/lints-3.0.0/lib/ file:///home/timothe/.pub-cache/hosted/pub.dev/lints-3.0.0/lib/
matcher matcher
3.0 3.0
file:///home/spinelli/.pub-cache/hosted/pub.dev/matcher-0.12.16+1/ file:///home/timothe/.pub-cache/hosted/pub.dev/matcher-0.12.16+1/
file:///home/spinelli/.pub-cache/hosted/pub.dev/matcher-0.12.16+1/lib/ file:///home/timothe/.pub-cache/hosted/pub.dev/matcher-0.12.16+1/lib/
material_color_utilities material_color_utilities
2.17 2.17
file:///home/spinelli/.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/
file:///home/spinelli/.pub-cache/hosted/pub.dev/material_color_utilities-0.8.0/lib/ file:///home/timothe/.pub-cache/hosted/pub.dev/material_color_utilities-0.8.0/lib/
meta meta
2.12 2.12
file:///home/spinelli/.pub-cache/hosted/pub.dev/meta-1.12.0/ file:///home/timothe/.pub-cache/hosted/pub.dev/meta-1.11.0/
file:///home/spinelli/.pub-cache/hosted/pub.dev/meta-1.12.0/lib/ file:///home/timothe/.pub-cache/hosted/pub.dev/meta-1.11.0/lib/
path path
3.0 3.0
file:///home/spinelli/.pub-cache/hosted/pub.dev/path-1.9.0/ file:///home/timothe/.pub-cache/hosted/pub.dev/path-1.9.0/
file:///home/spinelli/.pub-cache/hosted/pub.dev/path-1.9.0/lib/ 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 source_span
2.18 2.18
file:///home/spinelli/.pub-cache/hosted/pub.dev/source_span-1.10.0/ file:///home/timothe/.pub-cache/hosted/pub.dev/source_span-1.10.0/
file:///home/spinelli/.pub-cache/hosted/pub.dev/source_span-1.10.0/lib/ file:///home/timothe/.pub-cache/hosted/pub.dev/source_span-1.10.0/lib/
stack_trace stack_trace
2.18 2.18
file:///home/spinelli/.pub-cache/hosted/pub.dev/stack_trace-1.11.1/ file:///home/timothe/.pub-cache/hosted/pub.dev/stack_trace-1.11.1/
file:///home/spinelli/.pub-cache/hosted/pub.dev/stack_trace-1.11.1/lib/ file:///home/timothe/.pub-cache/hosted/pub.dev/stack_trace-1.11.1/lib/
stream_channel stream_channel
2.19 2.19
file:///home/spinelli/.pub-cache/hosted/pub.dev/stream_channel-2.1.2/ file:///home/timothe/.pub-cache/hosted/pub.dev/stream_channel-2.1.2/
file:///home/spinelli/.pub-cache/hosted/pub.dev/stream_channel-2.1.2/lib/ 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 string_scanner
2.18 2.18
file:///home/spinelli/.pub-cache/hosted/pub.dev/string_scanner-1.2.0/ file:///home/timothe/.pub-cache/hosted/pub.dev/string_scanner-1.2.0/
file:///home/spinelli/.pub-cache/hosted/pub.dev/string_scanner-1.2.0/lib/ file:///home/timothe/.pub-cache/hosted/pub.dev/string_scanner-1.2.0/lib/
term_glyph term_glyph
2.12 2.12
file:///home/spinelli/.pub-cache/hosted/pub.dev/term_glyph-1.2.1/ file:///home/timothe/.pub-cache/hosted/pub.dev/term_glyph-1.2.1/
file:///home/spinelli/.pub-cache/hosted/pub.dev/term_glyph-1.2.1/lib/ file:///home/timothe/.pub-cache/hosted/pub.dev/term_glyph-1.2.1/lib/
test_api test_api
3.0 3.0
file:///home/spinelli/.pub-cache/hosted/pub.dev/test_api-0.7.0/ file:///home/timothe/.pub-cache/hosted/pub.dev/test_api-0.7.0/
file:///home/spinelli/.pub-cache/hosted/pub.dev/test_api-0.7.0/lib/ file:///home/timothe/.pub-cache/hosted/pub.dev/test_api-0.7.0/lib/
vector_math vector_math
2.14 2.14
file:///home/spinelli/.pub-cache/hosted/pub.dev/vector_math-2.1.4/ file:///home/timothe/.pub-cache/hosted/pub.dev/vector_math-2.1.4/
file:///home/spinelli/.pub-cache/hosted/pub.dev/vector_math-2.1.4/lib/ file:///home/timothe/.pub-cache/hosted/pub.dev/vector_math-2.1.4/lib/
vm_service vm_service
3.0 3.0
file:///home/spinelli/.pub-cache/hosted/pub.dev/vm_service-14.0.0/ file:///home/timothe/.pub-cache/hosted/pub.dev/vm_service-14.0.0/
file:///home/spinelli/.pub-cache/hosted/pub.dev/vm_service-14.0.0/lib/ 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 tp2
3.4 3.4
file:///home/spinelli/IMT/M1/AMSE/amse/tp2/ file:///home/timothe/amse/tp2/
file:///home/spinelli/IMT/M1/AMSE/amse/tp2/lib/ file:///home/timothe/amse/tp2/lib/
sky_engine sky_engine
3.2 3.2
file:///home/spinelli/IMT/M1/AMSE/flutter/bin/cache/pkg/sky_engine/ file:///home/timothe/flutter/bin/cache/pkg/sky_engine/
file:///home/spinelli/IMT/M1/AMSE/flutter/bin/cache/pkg/sky_engine/lib/ file:///home/timothe/flutter/bin/cache/pkg/sky_engine/lib/
flutter flutter
3.3 3.2
file:///home/spinelli/IMT/M1/AMSE/flutter/packages/flutter/ file:///home/timothe/flutter/packages/flutter/
file:///home/spinelli/IMT/M1/AMSE/flutter/packages/flutter/lib/ file:///home/timothe/flutter/packages/flutter/lib/
flutter_test flutter_test
3.2 3.2
file:///home/spinelli/IMT/M1/AMSE/flutter/packages/flutter_test/ file:///home/timothe/flutter/packages/flutter_test/
file:///home/spinelli/IMT/M1/AMSE/flutter/packages/flutter_test/lib/ 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 2
3.20.0-10.0.pre.44 3.20.0-2.0.pre.7
\ No newline at end of file \ 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/
{"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:43:04.572215","version":"3.20.0-2.0.pre.7"}
\ No newline at end of file
{"inputs":[],"outputs":[]}
\ No newline at end of file
{"inputs":[],"outputs":[]}
\ No newline at end of file
{"inputs":[],"outputs":[]}
\ No newline at end of file
This diff is collapsed.
import 'dart:io';
import 'package:flutter/material.dart';
import 'package:camera/camera.dart';
List<CameraDescription> cameras = [];
Future<void> main() async {
WidgetsFlutterBinding.ensureInitialized();
cameras = await availableCameras();
runApp(Exo10());
}
class Exo10 extends StatefulWidget {
const Exo10({Key? key}) : super(key: key);
@override
_Exo10State createState() => _Exo10State();
}
class _Exo10State extends State<Exo10> {
late CameraController _controller;
late Future<void> _initializeControllerFuture;
@override
void initState() {
super.initState();
_initializeControllerFuture = _initializeCamera();
}
Future<void> _initializeCamera() async {
final CameraDescription camera = cameras.first;
_controller = CameraController(camera, ResolutionPreset.medium);
return _controller.initialize();
}
@override
void dispose() {
_controller.dispose();
super.dispose();
}
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(
title: Text('Take a Picture and Display'),
),
body: FutureBuilder<void>(
future: _initializeControllerFuture,
builder: (context, snapshot) {
if (snapshot.connectionState == ConnectionState.done) {
if (_controller != null && _controller.value.isInitialized) {
return CameraPreview(_controller);
} else {
return Center(child: Text('Camera initialization failed'));
}
} else {
return Center(child: CircularProgressIndicator());
}
},
),
floatingActionButton: FloatingActionButton(
onPressed: () async {
try {
await _initializeControllerFuture;
final XFile picture = await _controller.takePicture();
// Display the picture using a new page
Navigator.push(
context,
MaterialPageRoute(
builder: (context) => DisplayPictureScreen(imagePath: picture.path),
),
);
} catch (e) {
print("Error taking picture: $e");
}
},
child: Icon(Icons.camera),
),
),
);
}
}
class DisplayPictureScreen extends StatelessWidget {
final String imagePath;
const DisplayPictureScreen({Key? key, required this.imagePath}) : super(key: key);
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(title: Text('Display the Picture')),
body: Center(
child: Image.file(File(imagePath)),
),
);
}
}
...@@ -39,8 +39,6 @@ class _Exo5 extends State<Exo5> { ...@@ -39,8 +39,6 @@ class _Exo5 extends State<Exo5> {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
print("building state");
int i = 0; int i = 0;
int j = 0; int j = 0;
...@@ -103,27 +101,4 @@ class _Exo5 extends State<Exo5> { ...@@ -103,27 +101,4 @@ class _Exo5 extends State<Exo5> {
]), ]),
); );
} }
List<Widget> createTilesFromImage(int colNb) {
print("creating tiles");
Tile tile;
List<Widget> res = <Widget>[];
for(int i=0; i<colNb; i++){
for(int j=0; j<colNb; j++){
tile = Tile(image: image, alignment:
Alignment(-1 + 2 * j.toDouble() / (colNb.toDouble() - 1),
-1 + 2 * i.toDouble() / (colNb.toDouble() - 1))
);
res.add(InkWell(
child: tile.croppedImageTile(1 / colNb),
));
}
}
print("finished creating tiles");
print(res);
return res
;
}
} }
import 'package:flutter/material.dart';
import 'dart:math' as math;
class Tile {
Image image;
Alignment alignment;
Tile({required this.image, required this.alignment});
Widget croppedImageTile(double widthFactor) {
return FittedBox(
fit: BoxFit.fill,
child: ClipRect(
child: Container(
child: Align(
alignment: this.alignment,
widthFactor: widthFactor,
heightFactor: widthFactor,
child: image,
),
),
),
);
}
}
class Exo6 extends StatefulWidget {
const Exo6({super.key});
@override
State<Exo6> createState() => _Exo6();
}
class _Exo6 extends State<Exo6> {
var image = Image.network('https://picsum.photos/512');
List<Widget> tiles = <Widget>[];
double? size = 300;
int colNb = 3;
int emptyTileIndex = 0;
@override
void initState(){
super.initState();
image = Image.network('https://picsum.photos/512');
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))
);
tiles.add(
Flexible(child: Container(
margin: EdgeInsets.all(10.0 / colNb),
child: InkWell(
child: tile.croppedImageTile(1 / colNb),
onTap: () {
setState(() {
print(indexcopy);
tiles.insert(emptyTileIndex, tiles.removeAt(indexcopy));
emptyTileIndex = indexcopy;
});
}
)
))
);
}
index++;
}
}
}
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: const Text('Display a Tile as a Cropped Image'),
centerTitle: true,
),
body: Column(children: [
Container(
margin: const EdgeInsets.all(10.0),
child: SizedBox(
height: MediaQuery.of(context).size.height * 0.7,
width: MediaQuery.of(context).size.height * 0.7,
child: GridView.builder(
gridDelegate: SliverGridDelegateWithFixedCrossAxisCount(
crossAxisCount: colNb,
),
itemCount: colNb * colNb,
itemBuilder: (BuildContext context, int index) {
return tiles.elementAt(index);
}
)
)
),
Slider(
value: colNb.toDouble(),
min: 2,
max: 6,
onChanged: (double value) {
setState(() {
colNb = value.toInt();
});
}
),
]),
);
}
}
...@@ -3,6 +3,9 @@ import 'package:tp2/exo1.dart'; ...@@ -3,6 +3,9 @@ import 'package:tp2/exo1.dart';
import 'package:tp2/exo2.dart'; import 'package:tp2/exo2.dart';
import 'package:tp2/exo4.dart'; import 'package:tp2/exo4.dart';
import 'package:tp2/exo5.dart'; import 'package:tp2/exo5.dart';
import 'package:tp2/exo6.dart';
import 'package:tp2/exo10.dart';
class Exos { class Exos {
...@@ -34,15 +37,25 @@ void main() { ...@@ -34,15 +37,25 @@ void main() {
'Exercice 4', 'Exercice 4',
'desc', 'desc',
Exo4() Exo4()
),Exos( ),
Exos(
'Exercice 5', 'Exercice 5',
'aaaaa', 'aaaaa',
Exo5() Exo5()
),
Exos(
'Exercice 6',
'desc',
Exo6()
),Exos(
'Exercice 6',
'desc',
Exo10()
) )
// Next exo // Next exo
], ],
), ),
), )
); );
} }
......
...@@ -17,6 +17,46 @@ packages: ...@@ -17,6 +17,46 @@ packages:
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "2.1.1" 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: characters:
dependency: transitive dependency: transitive
description: description:
...@@ -41,6 +81,14 @@ packages: ...@@ -41,6 +81,14 @@ packages:
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "1.18.0" 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: cupertino_icons:
dependency: "direct main" dependency: "direct main"
description: description:
...@@ -70,35 +118,48 @@ packages: ...@@ -70,35 +118,48 @@ packages:
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "3.0.1" 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: flutter_test:
dependency: "direct dev" dependency: "direct dev"
description: flutter description: flutter
source: sdk source: sdk
version: "0.0.0" version: "0.0.0"
flutter_web_plugins:
dependency: transitive
description: flutter
source: sdk
version: "0.0.0"
leak_tracker: leak_tracker:
dependency: transitive dependency: transitive
description: description:
name: leak_tracker name: leak_tracker
sha256: "7f0df31977cb2c0b88585095d168e689669a2cc9b97c309665e3386f3e9d341a" sha256: cdd14e3836065a1f6302a236ec8b5f700695c803c57ae11a1c84df31e6bcf831
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "10.0.4" version: "10.0.3"
leak_tracker_flutter_testing: leak_tracker_flutter_testing:
dependency: transitive dependency: transitive
description: description:
name: leak_tracker_flutter_testing name: leak_tracker_flutter_testing
sha256: "06e98f569d004c1315b991ded39924b21af84cf14cc94791b8aea337d25b57f8" sha256: "9b2ef90589911d665277464e0482b209d39882dffaaf4ef69a3561a3354b2ebc"
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "3.0.3" version: "3.0.2"
leak_tracker_testing: leak_tracker_testing:
dependency: transitive dependency: transitive
description: description:
name: leak_tracker_testing name: leak_tracker_testing
sha256: "6ba465d5d76e67ddf503e1161d1f4a6bc42306f9d66ca1e8f079a47290fb06d3" sha256: fd3cd66cb2bcd7b50dcd3b413af49d78051f809c8b3f6e047962765c15a0d23d
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "3.0.1" version: "3.0.0"
lints: lints:
dependency: transitive dependency: transitive
description: description:
...@@ -127,10 +188,10 @@ packages: ...@@ -127,10 +188,10 @@ packages:
dependency: transitive dependency: transitive
description: description:
name: meta name: meta
sha256: "7687075e408b093f36e6bbf6c91878cc0d4cd10f409506f7bc996f68220b9136" sha256: d584fa6707a52763a52446f02cc621b077888fb63b93bbcb1143a7be5a0c0c04
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "1.12.0" version: "1.11.0"
path: path:
dependency: transitive dependency: transitive
description: description:
...@@ -139,6 +200,22 @@ packages: ...@@ -139,6 +200,22 @@ packages:
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "1.9.0" 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: sky_engine:
dependency: transitive dependency: transitive
description: flutter description: flutter
...@@ -168,6 +245,14 @@ packages: ...@@ -168,6 +245,14 @@ packages:
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "2.1.2" 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: string_scanner:
dependency: transitive dependency: transitive
description: description:
...@@ -208,6 +293,14 @@ packages: ...@@ -208,6 +293,14 @@ packages:
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "14.0.0" version: "14.0.0"
web:
dependency: transitive
description:
name: web
sha256: "4188706108906f002b3a293509234588823c8c979dc83304e229ff400c996b05"
url: "https://pub.dev"
source: hosted
version: "0.4.2"
sdks: sdks:
dart: ">=3.4.0-99.0.dev <4.0.0" dart: ">=3.4.0-99.0.dev <4.0.0"
flutter: ">=3.18.0-18.0.pre.54" flutter: ">=3.18.0-18.0.pre.54"
...@@ -28,8 +28,13 @@ environment: ...@@ -28,8 +28,13 @@ environment:
# the latest version available on pub.dev. To see which dependencies have newer # the latest version available on pub.dev. To see which dependencies have newer
# versions available, run `flutter pub outdated`. # versions available, run `flutter pub outdated`.
dependencies: dependencies:
flutter: flutter:
sdk: flutter sdk: flutter
camera: ^0.9.4+5 # or the latest version available
# The following adds the Cupertino Icons font to your application. # The following adds the Cupertino Icons font to your application.
......
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