Skip to content

Instantly share code, notes, and snippets.

@plateaukao
Created July 23, 2019 14:56
Show Gist options
  • Save plateaukao/0e66fb2ec5a4520b2bf769cd215588d3 to your computer and use it in GitHub Desktop.
Save plateaukao/0e66fb2ec5a4520b2bf769cd215588d3 to your computer and use it in GitHub Desktop.
flickr_request_token.dart
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