texteditingcontroller in flutter code example
Example 1: TextFormFiel text update
TextFormField(
key: Key(_total.toString()), // <- Magic!
initialValue: _total.toString(),
keyboardType: TextInputType.number,
decoration: InputDecoration(
labelText: 'Total',
),
),
Example 2: flutter textfield controller
dependencies:
flutter_spinkit: "^4.1.2"