feat: Further migrations to go_router, add onclick to document previews

This commit is contained in:
Anton Stubenbord
2023-07-31 02:51:00 +02:00
parent f1398e6d4c
commit f3e660e91d
33 changed files with 868 additions and 845 deletions

View File

@@ -124,19 +124,22 @@ class _ScanState extends State<Scan> {
imagePath = filePath;
});
EdgeDetectionResult result = await EdgeDetector().detectEdgesFromFile(filePath);
EdgeDetectionResult result =
await EdgeDetector().detectEdgesFromFile(filePath);
setState(() {
edgeDetectionResult = result;
});
}
Future _processImage(String filePath, EdgeDetectionResult edgeDetectionResult) async {
Future _processImage(
String filePath, EdgeDetectionResult edgeDetectionResult) async {
if (!mounted) {
return;
}
bool result = await EdgeDetector().processImageFromFile(filePath, edgeDetectionResult);
bool result = await EdgeDetector()
.processImageFromFile(filePath, edgeDetectionResult);
if (result == false) {
return;