Add a copy of the InteractiveViewer

The one in the current stable branch is buggy and the scaling doesn't
work reliably.

This is from the beta branch.

This breaks selecting a node and being able to move it easily.
This commit is contained in:
Vishesh Handa
2020-09-26 05:53:31 +02:00
parent 475fbcbc00
commit 1b1e49902b
2 changed files with 1267 additions and 15 deletions

File diff suppressed because it is too large Load Diff

View File

@ -3,6 +3,7 @@ import 'package:flutter/material.dart';
import 'package:provider/provider.dart';
import 'package:gitjournal/core/graph.dart';
import 'package:gitjournal/core/interactive_viewer.dart';
import 'package:gitjournal/core/notes_folder_fs.dart';
class GraphViewScreen extends StatefulWidget {
@ -121,23 +122,11 @@ class _GraphViewState extends State<GraphView> {
),
);
return InteractiveViewer(
return InteractiveViewerCopy(
child: view,
panEnabled: true,
constrained: false,
);
/*
return Scrollbar(
child: SingleChildScrollView(
child: Scrollbar(
child: SingleChildScrollView(
child: view,
scrollDirection: Axis.horizontal,
),
),
scrollDirection: Axis.vertical,
),
);
*/
}
}