You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
63 lines
1.9 KiB
63 lines
1.9 KiB
2 years ago
|
library neon_files;
|
||
2 years ago
|
|
||
|
import 'dart:async';
|
||
|
import 'dart:io';
|
||
|
import 'dart:math';
|
||
|
import 'dart:typed_data';
|
||
|
|
||
|
import 'package:collection/collection.dart';
|
||
|
import 'package:file_icons/file_icons.dart';
|
||
|
import 'package:file_picker/file_picker.dart';
|
||
|
import 'package:filesize/filesize.dart';
|
||
|
import 'package:flutter/material.dart';
|
||
2 years ago
|
import 'package:image_picker/image_picker.dart';
|
||
2 years ago
|
import 'package:intersperse/intersperse.dart';
|
||
|
import 'package:material_design_icons_flutter/material_design_icons_flutter.dart';
|
||
2 years ago
|
import 'package:neon/neon.dart';
|
||
2 years ago
|
import 'package:nextcloud/nextcloud.dart';
|
||
2 years ago
|
import 'package:open_file/open_file.dart';
|
||
2 years ago
|
import 'package:path/path.dart' as p;
|
||
2 years ago
|
import 'package:provider/provider.dart';
|
||
2 years ago
|
import 'package:queue/queue.dart';
|
||
2 years ago
|
import 'package:rxdart/rxdart.dart';
|
||
|
import 'package:settings/settings.dart';
|
||
|
|
||
2 years ago
|
part 'blocs/browser.dart';
|
||
|
part 'blocs/files.dart';
|
||
2 years ago
|
part 'dialogs/choose_create.dart';
|
||
|
part 'dialogs/choose_folder.dart';
|
||
|
part 'dialogs/create_folder.dart';
|
||
|
part 'models/file_details.dart';
|
||
|
part 'options.dart';
|
||
|
part 'pages/details.dart';
|
||
|
part 'pages/main.dart';
|
||
|
part 'utils/download_task.dart';
|
||
|
part 'utils/upload_task.dart';
|
||
|
part 'widgets/browser_view.dart';
|
||
|
part 'widgets/file_preview.dart';
|
||
|
|
||
|
class FilesApp extends AppImplementation<FilesBloc, FilesAppSpecificOptions> {
|
||
2 years ago
|
FilesApp(super.sharedPreferences, super.requestManager, super.platform);
|
||
|
|
||
|
@override
|
||
|
String id = 'files';
|
||
|
|
||
|
@override
|
||
2 years ago
|
FilesAppSpecificOptions buildOptions(final AppStorage storage) => FilesAppSpecificOptions(storage);
|
||
2 years ago
|
|
||
|
@override
|
||
2 years ago
|
FilesBloc buildBloc(final NextcloudClient client) => FilesBloc(
|
||
2 years ago
|
options,
|
||
|
client,
|
||
|
platform,
|
||
|
);
|
||
|
|
||
|
@override
|
||
2 years ago
|
Widget buildPage(final BuildContext context, final AppsBloc appsBloc) => FilesMainPage(
|
||
2 years ago
|
bloc: appsBloc.getAppBloc(this),
|
||
2 years ago
|
);
|
||
2 years ago
|
|
||
|
@override
|
||
2 years ago
|
BehaviorSubject<int>? getUnreadCounter(final AppsBloc appsBloc) => null;
|
||
2 years ago
|
}
|