-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Amit/create poll model #6
Conversation
lib/create_poll.dart
Outdated
@@ -108,6 +126,9 @@ class _OptionsList extends State<OptionsList> { | |||
child: Column( | |||
children: <Widget>[ | |||
TextFormField( | |||
onChanged: (value) { | |||
print('Value for field option as "$value"' + value); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Aren't you printing value twice? $value would print the value right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
lib/create_poll.dart
Outdated
@@ -80,10 +90,18 @@ class _CreatePollState extends State<CreatePoll> { | |||
|
|||
Widget textFormField() { | |||
return TextFormField( | |||
controller: _textEditingController, | |||
//controller: _textEditingController, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why commented out code?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cleaned
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
using onchanged callback, instead of controller
added model class, fetch text field value -> initial commit, need iteration review comments fix
a4646ba
to
742a71c
Compare
fetch textfield value
added model class
first commit, needs iteration
pending- 1> populating model class