idle
This commit is contained in:
@@ -731,18 +731,9 @@ class _FileExplorerState extends State<FileExplorer> {
|
|||||||
children: [
|
children: [
|
||||||
ModernGlassButton(
|
ModernGlassButton(
|
||||||
onPressed: () async {
|
onPressed: () async {
|
||||||
print(
|
|
||||||
'[FileExplorer-Empty] Upload clicked, currentPath=${state.currentPath}',
|
|
||||||
);
|
|
||||||
final result = await FilePicker.platform
|
final result = await FilePicker.platform
|
||||||
.pickFiles(withData: true);
|
.pickFiles(withData: true);
|
||||||
if (result != null && result.files.isNotEmpty) {
|
if (result != null && result.files.isNotEmpty) {
|
||||||
print(
|
|
||||||
'[FileExplorer-Empty] Selected ${result.files.length} files',
|
|
||||||
);
|
|
||||||
print(
|
|
||||||
'[FileExplorer-Empty] Will upload to: ${state.currentPath}',
|
|
||||||
);
|
|
||||||
final files = result.files
|
final files = result.files
|
||||||
.map(
|
.map(
|
||||||
(file) => FileItem(
|
(file) => FileItem(
|
||||||
|
|||||||
Reference in New Issue
Block a user