Created
July 9, 2018 09:12
-
-
Save xrnd/dd557e926bbbb1bb72bc3fabe87b5685 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| return new FutureBuilder<SavedModel>( | |
| future: getDataFromSP(), | |
| builder: (context, snapshot) { | |
| if (snapshot.hasData) { | |
| SavedModel model = snapshot.data; | |
| return new Column( | |
| mainAxisAlignment: MainAxisAlignment.start, | |
| crossAxisAlignment: CrossAxisAlignment.stretch, | |
| children: <Widget>[ | |
| new Text('Vegetable Name: $model.vegetables'), | |
| new Text('Vegetable Name: $model.fruits'), | |
| new Text('Vegetable Name: $model.flowers'), | |
| ], | |
| ); | |
| } else if (snapshot.hasError) { | |
| return new Text("${snapshot.error}"); | |
| } | |
| return new CircularProgressIndicator(); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment