controller bug empty value flutter
That's a problem on your end. The issue is that you are persisting objects
inside a StatelessWidget.
You shouldn't.
Opening the keyboard tends to rebuild the whole screen (which is fine). But in
your case rebuilding cause your TextEditingController to be GCed because you
stored them inside a StatelessWidget