mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-26 16:46:51 +08:00
Remove fork of InteractiveViewer
The fixes are in flutter stable
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@ -3,7 +3,6 @@ import 'package:flutter/material.dart';
|
|||||||
import 'package:provider/provider.dart';
|
import 'package:provider/provider.dart';
|
||||||
|
|
||||||
import 'package:gitjournal/core/graph.dart';
|
import 'package:gitjournal/core/graph.dart';
|
||||||
import 'package:gitjournal/core/interactive_viewer.dart' as fork;
|
|
||||||
import 'package:gitjournal/core/notes_folder_fs.dart';
|
import 'package:gitjournal/core/notes_folder_fs.dart';
|
||||||
|
|
||||||
class GraphViewScreen extends StatefulWidget {
|
class GraphViewScreen extends StatefulWidget {
|
||||||
@ -56,7 +55,7 @@ class GraphView extends StatefulWidget {
|
|||||||
|
|
||||||
class _GraphViewState extends State<GraphView> {
|
class _GraphViewState extends State<GraphView> {
|
||||||
final nodeSize = 50.0;
|
final nodeSize = 50.0;
|
||||||
fork.TransformationController transformationController;
|
TransformationController transformationController;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
void initState() {
|
void initState() {
|
||||||
@ -67,7 +66,7 @@ class _GraphViewState extends State<GraphView> {
|
|||||||
setState(() {});
|
setState(() {});
|
||||||
});
|
});
|
||||||
|
|
||||||
transformationController = fork.TransformationController();
|
transformationController = TransformationController();
|
||||||
}
|
}
|
||||||
|
|
||||||
Offset _getLocationPosition(Offset globalPos) {
|
Offset _getLocationPosition(Offset globalPos) {
|
||||||
@ -143,7 +142,7 @@ class _GraphViewState extends State<GraphView> {
|
|||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
||||||
return fork.InteractiveViewer(
|
return InteractiveViewer(
|
||||||
child: view,
|
child: view,
|
||||||
panEnabled: true,
|
panEnabled: true,
|
||||||
constrained: false,
|
constrained: false,
|
||||||
|
Reference in New Issue
Block a user