When I Type String In Textediter In Flutter It Shows

[Solved] When I Type String In Textediter In Flutter It Shows | Dart - Code Explorer | yomemimo.com
Question : when i type string in textediter in flutter it shows intger

Answered by : depressed-dotterel-0713brdktavl

TextField(controller: _section_id, keyboardType: TextInputType.number,)

Source : https://stackoverflow.com/questions/56207275/how-can-i-get-int-data-from-texteditingcontroller-in-flutter | Last Update : Thu, 27 Aug 20

Question : when i type string in textediter in flutter it shows intger

Answered by : depressed-dotterel-0713brdktavl

Repository().placeAddApiProvider(_section_id.text)

Source : https://stackoverflow.com/questions/56207275/how-can-i-get-int-data-from-texteditingcontroller-in-flutter | Last Update : Thu, 27 Aug 20

Question : when i type string in textediter in flutter it shows intger

Answered by : depressed-dotterel-0713brdktavl

Repository().placeAddApiProvider(_section_id.text as int) but it is not work show me this error:
Unhandled Exception: type 'String' is not a subtype of type 'int' in type cast
E/flutter ( 6950): #0 AddPlaceState.build.<anonymous closure> (package:mosul/src/ui/users/add_place.dart:93:50)
E/flutter ( 6950): <asynchronous suspension>
E/flutter ( 6950): #1 _InkResponseState._handleTap (package:flutter/src/material/ink_well.dart:513:14)
E/flutter ( 6950): #2 _InkResponseState.build.<anonymous closure> (package:flutter/src/material/ink_well.dart:568:30)
E/flutter ( 6950): #3 GestureRecognizer.invokeCallback (package:flutter/src/gestu...

Source : https://stackoverflow.com/questions/56207275/how-can-i-get-int-data-from-texteditingcontroller-in-flutter | Last Update : Thu, 27 Aug 20

Answers related to when i type string in textediter in flutter it shows intger

Code Explorer Popular Question For Dart