using textcontroller in dialog flutter code example Example: flutter textfield controller dependencies: flutter_spinkit: "^4.1.2"