-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
always show parant button ..
#18
Comments
@mabDc What is the purpose? What should happen when the ".." in the root is pressed? |
i'm confused for that in you plugin sometimes show |
@mabDc Please provide screenshots of these situations. |
test_for_filepicker.2021-04-16.18-26-21_x264.mp4import 'dart:io';
import 'package:flutter/material.dart';
import 'package:filesystem_picker/filesystem_picker.dart';
import 'package:path_provider/path_provider.dart';
void main() {
runApp(MaterialApp(home: Material(child: FHome())));
}
class FHome extends StatefulWidget {
FHome({Key key}) : super(key: key);
@override
_FHomeState createState() => _FHomeState();
}
class _FHomeState extends State<FHome> {
Map<String, Directory> map;
@override
void initState() {
map = {};
init();
super.initState();
}
init() async {
map = {
"ApplicationDocuments": await getApplicationDocumentsDirectory(),
/// change here to another exist path
r"C:\Users\mo\Documents\eso\font\": Directory(r"C:\Users\mo\Documents\eso\font\"),
};
setState(() {});
}
buildOne(String name, Directory d) {
return ListTile(
title: Text(name),
onTap: () => FilesystemPicker.open(
title: 'Save to folder',
context: context,
rootDirectory: d,
rootName: d.path,
fsType: FilesystemType.file,
allowedExtensions: [".testfornothing"],
pickText: 'Save file to this folder',
folderIconColor: Colors.teal,
fileTileSelectMode: FileTileSelectMode.wholeTile,
),
);
}
@override
Widget build(BuildContext context) {
return ListView(
children: [
for (var k in map.keys) buildOne(k, map[k]),
],
);
}
} |
@mabDc Thank you. I'll see what the problem is. |
@mabDc Try to specify the path |
what is the difference between them |
@mabDc This will help identify the problem. I don't have access to Flutter for Windows right now. |
this is useful ui in desktop with |
show
..
inrootDirectory
The text was updated successfully, but these errors were encountered: