Created
July 23, 2019 14:56
-
-
Save plateaukao/0e66fb2ec5a4520b2bf769cd215588d3 to your computer and use it in GitHub Desktop.
flickr_request_token.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TextEditingController _textFieldController = TextEditingController(); | |
@override | |
Widget build(BuildContext context) { | |
... | |
... | |
AlertDialog( | |
title: Text('Input verification code'), | |
content: TextField( | |
controller: _textFieldController, | |
), | |
actions: <Widget>[ | |
new FlatButton( | |
child: Text('OK'), | |
onPressed: () { | |
client.requestToken(_textFieldController.text).then((authClient) => | |
client.search() | |
); | |
}, | |
) | |
], | |
) | |
... | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment