revamp on bloc approach
This commit is contained in:
@ -99,7 +99,7 @@ class _FileElementState extends State<FileElement> {
|
||||
onTap: () {
|
||||
if(widget.file.isDirectory) {
|
||||
Navigator.of(context).push(MaterialPageRoute(
|
||||
builder: (context) => Files(widget.path.toList()..add(widget.file.name)),
|
||||
builder: (context) => Files(path: widget.path.toList()..add(widget.file.name)),
|
||||
));
|
||||
} else {
|
||||
if(EndpointData().getEndpointMode() == EndpointMode.stage) {
|
||||
|
@ -21,7 +21,7 @@ import 'filesUploadDialog.dart';
|
||||
|
||||
class Files extends StatefulWidget {
|
||||
final List<String> path;
|
||||
const Files(this.path, {super.key});
|
||||
Files({List<String>? path, super.key}) : path = path ?? [];
|
||||
|
||||
@override
|
||||
State<Files> createState() => _FilesState();
|
||||
|
Reference in New Issue
Block a user