mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-28 09:47:35 +08:00
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:
1263
lib/core/interactive_viewer.dart
Normal file
1263
lib/core/interactive_viewer.dart
Normal file
File diff suppressed because it is too large
Load Diff
@ -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,
|
||||
),
|
||||
);
|
||||
*/
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user