Commit 36006b0a authored by Herry's avatar Herry

adaped enhancedfuturebuilder

parent c79c463a
......@@ -75,10 +75,11 @@ class UserGraphViewPage extends StatelessWidget {
Wrap(
children: [],
),
EnhancedFutureBuilder(
future: DataGetter.getJson(
"http://live.nope-api.systems:81/users/" +
username.toString()),
EnhancedFutureBuilder<User>(
future: DataGetter.getUser(username),
// future: DataGetter.getJson(
// "http://live.nope-api.systems:81/users/" +
// username.toString()),
rememberFutureResult: false,
whenDone: (result) => UserGraph(result),
whenNotDone: Container(
......
......@@ -56,7 +56,7 @@ packages:
name: circlegraph
url: "https://pub.dartlang.org"
source: hosted
version: "0.0.1"
version: "0.0.2"
clock:
dependency: transitive
description:
......
......@@ -12,17 +12,12 @@ environment:
dependencies:
flutter:
sdk: flutter
graphview: ^0.6.6
apex_flutter_sdk: ^1.1.1+1
enhanced_future_builder: ^1.0.3
http: ^0.12.2
circlegraph: ^0.0.1
circlegraph: ^0.0.2
cupertino_icons: ^1.0.1
logger: ^0.9.4
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