Created
June 12, 2019 10:31
-
-
Save ShivamGoyal1899/5add915e48c6e41bba5a4b928ee8ca61 to your computer and use it in GitHub Desktop.
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
Future<void> _createTrip(BuildContext context) async { | |
// Display the loading indicator. | |
setState(() => _isLoading = true); | |
await ScopedModel.of<PhotosLibraryApiModel>(context) | |
.createAlbum(tripNameFormController.text) | |
.then((Album album) { | |
// Hide the loading indicator. | |
setState(() => _isLoading = false); | |
Navigator.pop(context); | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment