Commit 36006b0a authored by Herry's avatar Herry

adaped enhancedfuturebuilder

parent c79c463a
...@@ -75,10 +75,11 @@ class UserGraphViewPage extends StatelessWidget { ...@@ -75,10 +75,11 @@ class UserGraphViewPage extends StatelessWidget {
Wrap( Wrap(
children: [], children: [],
), ),
EnhancedFutureBuilder( EnhancedFutureBuilder<User>(
future: DataGetter.getJson( future: DataGetter.getUser(username),
"http://live.nope-api.systems:81/users/" + // future: DataGetter.getJson(
username.toString()), // "http://live.nope-api.systems:81/users/" +
// username.toString()),
rememberFutureResult: false, rememberFutureResult: false,
whenDone: (result) => UserGraph(result), whenDone: (result) => UserGraph(result),
whenNotDone: Container( whenNotDone: Container(
......
...@@ -56,7 +56,7 @@ packages: ...@@ -56,7 +56,7 @@ packages:
name: circlegraph name: circlegraph
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "0.0.1" version: "0.0.2"
clock: clock:
dependency: transitive dependency: transitive
description: description:
......
...@@ -12,17 +12,12 @@ environment: ...@@ -12,17 +12,12 @@ environment:
dependencies: dependencies:
flutter: flutter:
sdk: flutter sdk: flutter
graphview: ^0.6.6 graphview: ^0.6.6
apex_flutter_sdk: ^1.1.1+1 apex_flutter_sdk: ^1.1.1+1
enhanced_future_builder: ^1.0.3 enhanced_future_builder: ^1.0.3
http: ^0.12.2 http: ^0.12.2
circlegraph: ^0.0.2
circlegraph: ^0.0.1
cupertino_icons: ^1.0.1 cupertino_icons: ^1.0.1
logger: ^0.9.4 logger: ^0.9.4
dev_dependencies: dev_dependencies:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment