I am use AnimatedSwitcher for switch between 2 widget:
AnimatedSwitcher(
duration: const Duration(milliseconds: 200),
child:
toggle
? TextField()
: otherWidget(),
Problem is when AnimatedSwitcher switch away from Textfield it dismiss keyboard even if user have already click on it and open keyboard.
How to keep keyboard open even if widget is switch?
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…