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