1

I can not use text fields of a flutter but buttons can work if I give any defined values.

Output Image with Input Field: screenshot

children: <Widget>[
    Text(
        'Output : $sum',
        style: TextStyle(fontSize: 20.0, fontWeight: FontWeight.bold),
    ),
    TextField(
        keyboardType: TextInputType.number,
        decoration: InputDecoration(hintText: 'Enter 1st number'),
        controller: t1,
    ),
    TextField(
        keyboardType: TextInputType.number,
        decoration: InputDecoration(hintText: 'Enter 2nd number'),
        controller: t2,
    ),
Chandresh Khambhayata
  • 1,748
  • 2
  • 31
  • 60
Mayur Barot
  • 21
  • 1
  • 3
  • 1
    Hello Mayur, I think you should see flutter doc for further web developement.Because nowadays flutter web is not for a production use. so after first release of web you can use flutter web. till please bear with us. – Hardik Kumbhani Sep 25 '19 at 06:44
  • Hi Mayur, I am quite sure text inputs work in flutter web. I even posted a working code in another issue. You can check this [here](https://stackoverflow.com/questions/57914542/is-there-a-number-input-field-in-flutter-with-increment-decrement-buttons-attach). Can you explain what is not working..? – Abhilash Chandran Sep 25 '19 at 13:01
  • So, it doesn't exist eny input field? – shinriyo May 31 '20 at 16:42

0 Answers0