You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
WASM not working with Animated Container when using code transform: Matrix4.identity()..scale(visible?1:0.7,) But instead of 1 using any other number work with WASM.
Steps to reproduce
import 'package:flutter/material.dart';
class TestAnimatedContainer extends StatefulWidget {
const TestAnimatedContainer({super.key});
@OverRide
State createState() => _TestAnimatedContainerState();
}
class _TestAnimatedContainerState extends State {
bool zoom = false;
On pressing the zoom button repeatedly the AnimatedContainer should zoomin and zoomout
Actual behavior
Normally work fine. but when running with flutter run --wasm then it doesn't work.
Environment
flutter 3.24.3
Additional details
transform: Matrix4.identity()..scale(zoom ? 1 : .7), here instead of 1 using any other number work in WASM. Such as transform: Matrix4.identity()..scale(zoom ? 0.99 : .7), work in WASM.
The text was updated successfully, but these errors were encountered:
Problem description
WASM not working with Animated Container when using code transform: Matrix4.identity()..scale(visible?1:0.7,) But instead of 1 using any other number work with WASM.
Steps to reproduce
import 'package:flutter/material.dart';
class TestAnimatedContainer extends StatefulWidget {
const TestAnimatedContainer({super.key});
@OverRide
State createState() => _TestAnimatedContainerState();
}
class _TestAnimatedContainerState extends State {
bool zoom = false;
@OverRide
Widget build(BuildContext context) {
return Scaffold(
body: Column(
children: [
AnimatedContainer(
duration: Duration(milliseconds: 400),
width: 400,
height: 300,
color: Colors.purple,
transform: Matrix4.identity()..scale(zoom ? 1 : .7),
),
TextButton(
onPressed: () {
setState(() {
zoom = !zoom;
});
},
child: Text(
'Zoom',
style: TextStyle(fontSize: 24,color: Colors.black),
))
],
),
);
}
}
Expected behavior
On pressing the zoom button repeatedly the AnimatedContainer should zoomin and zoomout
Actual behavior
Normally work fine. but when running with flutter run --wasm then it doesn't work.
Environment
flutter 3.24.3
Additional details
transform: Matrix4.identity()..scale(zoom ? 1 : .7), here instead of 1 using any other number work in WASM. Such as transform: Matrix4.identity()..scale(zoom ? 0.99 : .7), work in WASM.
The text was updated successfully, but these errors were encountered: