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

avant que je parte

parent a77608e6
......@@ -32,7 +32,10 @@ class _Exo2 extends State<Exo2> {
child: LayoutBuilder(
builder: (context, constraints) {
return Transform(
transform: Matrix4.skewY(ry)
alignment: Alignment.center,
transform: Matrix4.zero()
..rotateX(rx)
..rotateY(ry)
..rotateZ(rz),
child: Center(child: Image.network('https://picsum.photos/512/1024',
width: constraints.maxHeight,
......@@ -44,6 +47,8 @@ class _Exo2 extends State<Exo2> {
),
),
Slider(
min: 0,
max: 2 * math.pi,
value: rx,
label: rx.round().toString(),
onChanged: (double value) {
......@@ -53,6 +58,8 @@ class _Exo2 extends State<Exo2> {
},
),
Slider(
min: 0,
max: 2 * math.pi,
value: ry,
label: ry.round().toString(),
onChanged: (double value) {
......@@ -61,6 +68,8 @@ class _Exo2 extends State<Exo2> {
});
},
),Slider(
min: 0,
max: 2 * math.pi,
value: rz,
label: rz.round().toString(),
onChanged: (double value) {
......
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