关闭键盘时如何让AnimatedContainer恢复到之前的状态(1)?目前通过 onTap 改变容器的位置
Widget _formAuth(String labelForm, String labelButton, void func()) {
return AnimatedContainer(
duration: Duration(seconds: 1),
curve: Curves.ease,
margin: EdgeInsets.fromLTRB(13, _marginFormAuth, 13, 50),
Widget _inputLoginOrPassword(
Icon icon, String hint, TextEditingController controller, bool obscure) {
return Container(
margin: EdgeInsets.fromLTRB(10, 35, 10, 0),
child: TextField(
onTap: () {
setState(() {
_marginFormAuth = 20;
});
},