Commit 369f2a56 authored by Luca Braun's avatar Luca Braun

started preparing new querying structure

parent e9b9ad1f
{"net":{"http_server_properties":{"servers":[{"alternative_service":[{"advertised_versions":[50],"expiration":"13261074203896683","port":443,"protocol_str":"quic"}],"isolation":[],"server":"https://redirector.gvt1.com","supports_spdy":true},{"isolation":[],"server":"https://unpkg.com","supports_spdy":true},{"alternative_service":[{"advertised_versions":[50],"expiration":"13261074213175336","port":443,"protocol_str":"quic"}],"isolation":[],"server":"https://content-autofill.googleapis.com","supports_spdy":true},{"alternative_service":[{"advertised_versions":[50],"expiration":"13261074203956243","port":443,"protocol_str":"quic"}],"isolation":[],"network_stats":{"srtt":38348},"server":"https://accounts.google.com","supports_spdy":true},{"alternative_service":[{"advertised_versions":[50],"expiration":"13261074211590571","port":443,"protocol_str":"quic"}],"isolation":[],"network_stats":{"srtt":27840},"server":"https://fonts.gstatic.com","supports_spdy":true},{"alternative_service":[{"advertised_versions":[50],"expiration":"13261074210812984","port":443,"protocol_str":"quic"}],"isolation":[],"network_stats":{"srtt":27840},"server":"https://ssl.gstatic.com","supports_spdy":true},{"isolation":[],"network_stats":{"srtt":10689},"server":"https://r4---sn-5jvoxu-8pxe.gvt1.com"}],"supports_quic":{"address":"143.205.122.129","used_quic":true},"version":5},"network_qualities":{"CAESABiAgICA+P////8B":"4G"}}}
\ No newline at end of file
<<<<<<< Updated upstream
=======
2021/02/22-16:43:33.327 1820 Reusing MANIFEST C:\Users\Luca\AppData\Local\Temp\flutter_tools.773e7b99\flutter_tools_chrome_device.15d72c43\Default\AutofillStrikeDatabase/MANIFEST-000001
2021/02/22-16:43:33.328 1820 Recovering log #3
2021/02/22-16:43:33.328 1820 Reusing old log C:\Users\Luca\AppData\Local\Temp\flutter_tools.773e7b99\flutter_tools_chrome_device.15d72c43\Default\AutofillStrikeDatabase/000003.log
>>>>>>> Stashed changes
<<<<<<< Updated upstream
=======
2021/02/22-16:43:33.323 1820 Reusing MANIFEST C:\Users\Luca\AppData\Local\Temp\flutter_tools.773e7b99\flutter_tools_chrome_device.15d72c43\Default\AutofillStrikeDatabase/MANIFEST-000001
2021/02/22-16:43:33.323 1820 Recovering log #3
2021/02/22-16:43:33.324 1820 Reusing old log C:\Users\Luca\AppData\Local\Temp\flutter_tools.773e7b99\flutter_tools_chrome_device.15d72c43\Default\AutofillStrikeDatabase/000003.log
>>>>>>> Stashed changes
<<<<<<< Updated upstream
=======
2021/02/22-16:43:33.200 1820 Reusing MANIFEST C:\Users\Luca\AppData\Local\Temp\flutter_tools.773e7b99\flutter_tools_chrome_device.15d72c43\Default\BudgetDatabase/MANIFEST-000001
2021/02/22-16:43:33.201 1820 Recovering log #3
2021/02/22-16:43:33.201 1820 Reusing old log C:\Users\Luca\AppData\Local\Temp\flutter_tools.773e7b99\flutter_tools_chrome_device.15d72c43\Default\BudgetDatabase/000003.log
>>>>>>> Stashed changes
<<<<<<< Updated upstream
2021/02/22-16:13:19.040 a84 Reusing MANIFEST C:\Users\Luca\AppData\Local\Temp\flutter_tools.b98f9f63\flutter_tools_chrome_device.aee691c1\Default\BudgetDatabase/MANIFEST-000001
2021/02/22-16:13:19.040 a84 Recovering log #3
2021/02/22-16:13:19.040 a84 Reusing old log C:\Users\Luca\AppData\Local\Temp\flutter_tools.b98f9f63\flutter_tools_chrome_device.aee691c1\Default\BudgetDatabase/000003.log
=======
2021/02/22-16:42:19.883 3a78 Reusing MANIFEST C:\Users\Luca\AppData\Local\Temp\flutter_tools.bbfbb053\flutter_tools_chrome_device.aad645a1\Default\BudgetDatabase/MANIFEST-000001
2021/02/22-16:42:19.884 3a78 Recovering log #3
2021/02/22-16:42:19.884 3a78 Reusing old log C:\Users\Luca\AppData\Local\Temp\flutter_tools.bbfbb053\flutter_tools_chrome_device.aad645a1\Default\BudgetDatabase/000003.log
>>>>>>> Stashed changes
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -43,6 +43,12 @@
"packageUri": "lib/",
"languageVersion": "2.12"
},
{
"name": "circlegraph",
"rootUri": "file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/.pub-cache/hosted/pub.dartlang.org/circlegraph-0.0.1",
"packageUri": "lib/",
"languageVersion": "2.7"
},
{
"name": "clock",
"rootUri": "file:///C:/_libs/flutter/.pub-cache/hosted/pub.dartlang.org/clock-1.1.0",
......@@ -260,7 +266,11 @@
"languageVersion": "2.7"
}
],
<<<<<<< Updated upstream
"generated": "2021-02-22T16:02:49.964838Z",
=======
"generated": "2021-02-22T15:39:29.311099Z",
>>>>>>> Stashed changes
"generator": "pub",
"generatorVersion": "2.12.0-259.12.beta"
}
......@@ -24,8 +24,17 @@ file:///C:/_libs/flutter/.pub-cache/hosted/pub.dartlang.org/characters-1.1.0/
file:///C:/_libs/flutter/.pub-cache/hosted/pub.dartlang.org/characters-1.1.0/lib/
charcode
2.12
<<<<<<< Updated upstream
file:///C:/_libs/flutter/.pub-cache/hosted/pub.dartlang.org/charcode-1.2.0/
file:///C:/_libs/flutter/.pub-cache/hosted/pub.dartlang.org/charcode-1.2.0/lib/
=======
file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/.pub-cache/hosted/pub.dartlang.org/charcode-1.2.0/
file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/.pub-cache/hosted/pub.dartlang.org/charcode-1.2.0/lib/
circlegraph
2.7
file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/.pub-cache/hosted/pub.dartlang.org/circlegraph-0.0.1/
file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/.pub-cache/hosted/pub.dartlang.org/circlegraph-0.0.1/lib/
>>>>>>> Stashed changes
clock
2.12
file:///C:/_libs/flutter/.pub-cache/hosted/pub.dartlang.org/clock-1.1.0/
......
<<<<<<< Updated upstream
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"integration_test","path":"C:\\\\_libs\\\\flutter\\\\packages\\\\integration_test\\\\","dependencies":[]}],"android":[{"name":"integration_test","path":"C:\\\\_libs\\\\flutter\\\\packages\\\\integration_test\\\\","dependencies":[]}],"macos":[],"linux":[],"windows":[],"web":[]},"dependencyGraph":[{"name":"integration_test","dependencies":[]}],"date_created":"2021-02-22 17:04:43.865743","version":"1.26.0-17.6.pre"}
=======
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"integration_test","path":"C:\\\\Users\\\\Luca\\\\Documents\\\\flutter\\\\flutter_windows_1.22.5-stable\\\\flutter\\\\packages\\\\integration_test\\\\","dependencies":[]}],"android":[{"name":"integration_test","path":"C:\\\\Users\\\\Luca\\\\Documents\\\\flutter\\\\flutter_windows_1.22.5-stable\\\\flutter\\\\packages\\\\integration_test\\\\","dependencies":[]}],"macos":[],"linux":[],"windows":[],"web":[]},"dependencyGraph":[{"name":"integration_test","dependencies":[]}],"date_created":"2021-02-22 16:43:43.484892","version":"1.26.0-17.5.pre"}
>>>>>>> Stashed changes
......@@ -3,6 +3,7 @@
#
# For more info see: https://dart.dev/go/dot-packages-deprecation
#
<<<<<<< Updated upstream
# Generated by pub on 2021-02-22 17:02:49.944838.
apex_flutter_sdk:file:///C:/_libs/flutter/.pub-cache/hosted/pub.dartlang.org/apex_flutter_sdk-1.1.1+1/lib/
archive:file:///C:/_libs/flutter/.pub-cache/hosted/pub.dartlang.org/archive-2.0.13/lib/
......@@ -46,4 +47,50 @@ typed_data:file:///C:/_libs/flutter/.pub-cache/hosted/pub.dartlang.org/typed_dat
vector_math:file:///C:/_libs/flutter/.pub-cache/hosted/pub.dartlang.org/vector_math-2.1.0/lib/
vm_service:file:///C:/_libs/flutter/.pub-cache/hosted/pub.dartlang.org/vm_service-5.5.0/lib/
webdriver:file:///C:/_libs/flutter/.pub-cache/hosted/pub.dartlang.org/webdriver-2.1.2/lib/
=======
# Generated by pub on 2021-02-22 16:39:29.283117.
apex_flutter_sdk:file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/.pub-cache/hosted/pub.dartlang.org/apex_flutter_sdk-1.1.1+1/lib/
archive:file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/.pub-cache/hosted/pub.dartlang.org/archive-2.0.13/lib/
args:file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/.pub-cache/hosted/pub.dartlang.org/args-1.6.0/lib/
async:file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/.pub-cache/hosted/pub.dartlang.org/async-2.5.0/lib/
boolean_selector:file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/.pub-cache/hosted/pub.dartlang.org/boolean_selector-2.1.0/lib/
characters:file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/.pub-cache/hosted/pub.dartlang.org/characters-1.1.0/lib/
charcode:file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/.pub-cache/hosted/pub.dartlang.org/charcode-1.2.0/lib/
circlegraph:file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/.pub-cache/hosted/pub.dartlang.org/circlegraph-0.0.1/lib/
clock:file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/.pub-cache/hosted/pub.dartlang.org/clock-1.1.0/lib/
collection:file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/.pub-cache/hosted/pub.dartlang.org/collection-1.15.0/lib/
convert:file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/.pub-cache/hosted/pub.dartlang.org/convert-2.1.1/lib/
crypto:file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/.pub-cache/hosted/pub.dartlang.org/crypto-2.1.5/lib/
cupertino_icons:file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/.pub-cache/hosted/pub.dartlang.org/cupertino_icons-1.0.2/lib/
enhanced_future_builder:file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/.pub-cache/hosted/pub.dartlang.org/enhanced_future_builder-1.0.3/lib/
fake_async:file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/.pub-cache/hosted/pub.dartlang.org/fake_async-1.2.0/lib/
file:file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/.pub-cache/hosted/pub.dartlang.org/file-6.0.0/lib/
flutter:file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/packages/flutter/lib/
flutter_driver:file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/packages/flutter_driver/lib/
flutter_test:file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/packages/flutter_test/lib/
fuchsia_remote_debug_protocol:file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/packages/fuchsia_remote_debug_protocol/lib/
graphview:file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/.pub-cache/hosted/pub.dartlang.org/graphview-0.6.6/lib/
http:file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/.pub-cache/hosted/pub.dartlang.org/http-0.12.2/lib/
http_parser:file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/.pub-cache/hosted/pub.dartlang.org/http_parser-3.1.4/lib/
integration_test:file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/packages/integration_test/lib/
matcher:file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/.pub-cache/hosted/pub.dartlang.org/matcher-0.12.10/lib/
meta:file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/.pub-cache/hosted/pub.dartlang.org/meta-1.3.0/lib/
path:file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/.pub-cache/hosted/pub.dartlang.org/path-1.8.0/lib/
pedantic:file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/.pub-cache/hosted/pub.dartlang.org/pedantic-1.10.0/lib/
platform:file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/.pub-cache/hosted/pub.dartlang.org/platform-3.0.0/lib/
process:file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/.pub-cache/hosted/pub.dartlang.org/process-4.0.0/lib/
shamsi_date:file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/.pub-cache/hosted/pub.dartlang.org/shamsi_date-0.8.1/lib/
sky_engine:file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/bin/cache/pkg/sky_engine/lib/
source_span:file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/.pub-cache/hosted/pub.dartlang.org/source_span-1.8.0/lib/
stack_trace:file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/.pub-cache/hosted/pub.dartlang.org/stack_trace-1.10.0/lib/
stream_channel:file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/.pub-cache/hosted/pub.dartlang.org/stream_channel-2.1.0/lib/
string_scanner:file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/.pub-cache/hosted/pub.dartlang.org/string_scanner-1.1.0/lib/
sync_http:file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/.pub-cache/hosted/pub.dartlang.org/sync_http-0.2.0/lib/
term_glyph:file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/.pub-cache/hosted/pub.dartlang.org/term_glyph-1.2.0/lib/
test_api:file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/.pub-cache/hosted/pub.dartlang.org/test_api-0.2.19/lib/
typed_data:file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/.pub-cache/hosted/pub.dartlang.org/typed_data-1.3.0/lib/
vector_math:file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/.pub-cache/hosted/pub.dartlang.org/vector_math-2.1.0/lib/
vm_service:file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/.pub-cache/hosted/pub.dartlang.org/vm_service-5.5.0/lib/
webdriver:file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/.pub-cache/hosted/pub.dartlang.org/webdriver-2.1.2/lib/
>>>>>>> Stashed changes
dashboard:lib/
......@@ -4826,6 +4826,20 @@ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
--------------------------------------------------------------------------------
circlegraph
circlegraph
Copyright 2021 Herry <herrytco@gmail.com>
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
--------------------------------------------------------------------------------
clock
fake_async
......
import 'post.dart';
class Community {
Community(this.name, this.trust, this.posts);
final String name;
final double trust;
final List<Post> posts;
}
import 'package:flutter/material.dart';
import 'package:circlegraph/circlegraph.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
theme: ThemeData(
primarySwatch: Colors.blue,
),
home: MyHomePage(title: 'Flutter Demo Home Page'),
);
}
}
class MyHomePage extends StatefulWidget {
MyHomePage({Key key, this.title}) : super(key: key);
final String title;
@override
_MyHomePageState createState() => _MyHomePageState();
}
class _MyHomePageState extends State<MyHomePage> {
int numberOfChildren = 5;
void onAdd() {
setState(() {
numberOfChildren += 1;
});
}
///
/// generate a simple node that holds an integer with a text inside that
/// contains its index
///
TreeNodeData _nodeWithIndex(int i) {
return TreeNodeData<int>(
child: Text(
"child $i",
style: TextStyle(color: color3),
),
data: i,
onNodeClick: _onNodeClick,
color: color2);
}
///
/// Build the tooltip based on the node that is currently hovered
///
Widget buildTooltip(TreeNodeData node, int data) {
return Container(
padding: EdgeInsets.all(10),
alignment: Alignment.center,
decoration: BoxDecoration(
borderRadius: BorderRadius.all(
Radius.circular(10),
),
color: color4,
),
child: Text(
"Hovering over node $data",
),
);
}
///
/// callback when a node is clicked
///
void _onNodeClick(TreeNodeData node, int data) {
print("clicked on node $data");
}
Color get color1 => Color.fromRGBO(154, 212, 214, 1); // powder blue
Color get color2 => Color.fromRGBO(139, 30, 63, 1); // claret (red-ish)
Color get color3 =>
Color.fromRGBO(240, 201, 135, 1); // gold crayola (yellow-ish)
Color get color4 => Color.fromRGBO(71, 170, 174, 1); // verdigris
Color get color5 => Color.fromRGBO(16, 37, 66, 1); // oxford blue
@override
Widget build(BuildContext context) {
return Scaffold(
floatingActionButton: FloatingActionButton(
child: Icon(Icons.add),
onPressed: onAdd,
),
body: Center(
child: Container(
padding: EdgeInsets.all(160),
decoration: BoxDecoration(
color: color1,
shape: BoxShape.circle,
),
child: CircleTree(
root: _nodeWithIndex(0),
children: [
for (int i = 0; i < numberOfChildren; i++) _nodeWithIndex(i + 1),
],
tooltipBuilder: buildTooltip,
),
),
),
);
}
}
class Post {
Post(this.title, this.content, this.author, this.community, this.trust,
this.comments);
final String title;
final String content;
final String author;
final String community;
final double trust;
final int comments;
}
import 'post.dart';
class User {
User(this.username, this.id, this.trustScores, this.posts);
final String username;
final int id;
final Map<String, double> trustScores;
final List<Post> posts;
}
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
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