Logging cleanup
This commit is contained in:
@ -10,15 +10,13 @@ import 'package:jiffy/jiffy.dart';
|
||||
import 'package:marianum_mobile/api/marianumcloud/webdav/queries/listFiles/cacheableFile.dart';
|
||||
import 'package:marianum_mobile/screen/pages/files/files.dart';
|
||||
import 'package:path_provider/path_provider.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
|
||||
import '../../../api/marianumcloud/webdav/webdavApi.dart';
|
||||
import '../../../data/files/filesProps.dart';
|
||||
|
||||
class FileElement extends StatefulWidget {
|
||||
CacheableFile file;
|
||||
List<String> path;
|
||||
FileElement(this.file, this.path, {Key? key}) : super(key: key);
|
||||
final CacheableFile file;
|
||||
final List<String> path;
|
||||
const FileElement(this.file, this.path, {Key? key}) : super(key: key);
|
||||
|
||||
static void download(String remotePath, String name, Function(double) onProgress, Function(OpenResult) onDone) async {
|
||||
Directory paths = await getApplicationDocumentsDirectory();
|
||||
@ -42,8 +40,6 @@ class FileElement extends StatefulWidget {
|
||||
},
|
||||
);
|
||||
|
||||
log(local);
|
||||
|
||||
await Flowder.download(
|
||||
"${await WebdavApi.webdavConnectString}$remotePath",
|
||||
options,
|
||||
|
@ -1,6 +1,4 @@
|
||||
|
||||
import 'dart:developer';
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:marianum_mobile/api/marianumcloud/webdav/queries/listFiles/cacheableFile.dart';
|
||||
import 'package:marianum_mobile/widget/errorView.dart';
|
||||
@ -25,7 +23,6 @@ class _FilesState extends State<Files> {
|
||||
@override
|
||||
void initState() {
|
||||
super.initState();
|
||||
log("Init files: ${widget.path.toString()}");
|
||||
|
||||
ListFilesCache(
|
||||
path: widget.path.isEmpty ? "/" : widget.path.join("/"),
|
||||
|
Reference in New Issue
Block a user