Commit ada25cad authored by Herry's avatar Herry

polishing

parent bbd9bbf2
import 'package:flutter/cupertino.dart';
import 'community.dart'; import 'community.dart';
import 'post.dart'; import 'post.dart';
......
...@@ -9,7 +9,6 @@ import '../data/communityGraphNodeData.dart'; ...@@ -9,7 +9,6 @@ import '../data/communityGraphNodeData.dart';
import '../querying/datagetter.dart'; import '../querying/datagetter.dart';
import '../data/post.dart'; import '../data/post.dart';
import 'postnode.dart'; import 'postnode.dart';
import 'postnode.dart';
import 'communitymetagraph.dart'; import 'communitymetagraph.dart';
class CommunityGraph extends StatefulWidget { class CommunityGraph extends StatefulWidget {
...@@ -98,7 +97,9 @@ class _CommunityGraphState extends State<CommunityGraph> { ...@@ -98,7 +97,9 @@ class _CommunityGraphState extends State<CommunityGraph> {
class CommunityGraphViewPage extends StatelessWidget { class CommunityGraphViewPage extends StatelessWidget {
final String communityname; final String communityname;
CommunityGraphViewPage(this.communityname); CommunityGraphViewPage(this.communityname);
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Scaffold( return Scaffold(
backgroundColor: Colors.white, backgroundColor: Colors.white,
......
import 'package:apex_flutter_sdk/apex_flutter_sdk.dart';
import 'package:dashboard/main.dart';
import 'package:dashboard/graphing/usergraph.dart'; import 'package:dashboard/graphing/usergraph.dart';
import 'package:dashboard/data/post.dart'; import 'package:dashboard/data/post.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
...@@ -50,8 +48,7 @@ class PostNodeTooltip extends StatelessWidget { ...@@ -50,8 +48,7 @@ class PostNodeTooltip extends StatelessWidget {
final Post post; final Post post;
final Color trustColor; final Color trustColor;
final double titleSize = 22;
double titleSize = 22;
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Scaffold( return Scaffold(
......
...@@ -12,7 +12,7 @@ import '../data/user.dart'; ...@@ -12,7 +12,7 @@ import '../data/user.dart';
class UserGraph extends StatefulWidget { class UserGraph extends StatefulWidget {
UserGraph(this.user); UserGraph(this.user);
User user; final User user;
@override @override
_UserGraphState createState() => _UserGraphState(user); _UserGraphState createState() => _UserGraphState(user);
......
...@@ -3,7 +3,7 @@ import 'package:apex_flutter_sdk/apex_flutter_sdk.dart'; ...@@ -3,7 +3,7 @@ import 'package:apex_flutter_sdk/apex_flutter_sdk.dart';
import 'trustcolorcalculator.dart'; import 'trustcolorcalculator.dart';
class UserNode extends StatelessWidget { class UserNode extends StatelessWidget {
List<Widget> communities = []; final List<Widget> communities = [];
final Map<String, dynamic> trustScores; final Map<String, dynamic> trustScores;
UserNode(this.trustScores); UserNode(this.trustScores);
......
import 'datagetter.dart';
import 'package:http/http.dart' as http;
import 'datagetter.dart';
class ClusterGetter { class ClusterGetter {
Future<Map<String, dynamic>> getClusters(String layerName) async { Future<Map<String, dynamic>> getClusters(String layerName) async {
String url = String url =
......
import 'package:dashboard/graphing/communitymetagraph.dart';
import 'package:dashboard/sign_in/credentials.dart';
import 'package:dashboard/querying/datagetter.dart';
import 'package:dashboard/sign_in/login_form.dart'; import 'package:dashboard/sign_in/login_form.dart';
import 'package:flutter/cupertino.dart'; import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
......
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