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("/"),
|
||||
|
@ -1,6 +1,4 @@
|
||||
|
||||
import 'dart:developer';
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:marianum_mobile/data/timetable/timetableProps.dart';
|
||||
import 'package:marianum_mobile/screen/pages/timetable/weekView.dart';
|
||||
@ -44,11 +42,10 @@ class _TimetableState extends State<Timetable> {
|
||||
builder: (context, value, child) {
|
||||
|
||||
if(value.hasError) {
|
||||
return ErrorView(icon: Icons.error, text: value.error?.message ?? "Unbekannt?");
|
||||
return ErrorView(icon: Icons.error, text: value.error?.message ?? "Unbekannter Fehler");
|
||||
}
|
||||
|
||||
if(value.primaryLoading()) {
|
||||
log("LOADING");
|
||||
return const Center(child: CircularProgressIndicator());
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user