Skip to content

Commit fac5056

Browse files
authored
Update README.md
1 parent ebecf1e commit fac5056

File tree

1 file changed

+25
-12
lines changed

1 file changed

+25
-12
lines changed

README.md

Lines changed: 25 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# File Manager
22

3+
<img src="https://i.imgur.com/NNaUK60.png"></img>
4+
5+
![GitHub](https://img.shields.io/github/license/DevsOnFlutter/file_manager?style=plastic) ![GitHub code size in bytes](https://img.shields.io/github/languages/code-size/DevsOnFlutter/file_manager?style=plastic) ![GitHub top language](https://img.shields.io/github/languages/top/DevsOnFlutter/file_manager?style=plastic) ![GitHub language count](https://img.shields.io/github/languages/count/DevsOnFlutter/file_manager?style=plastic) ![GitHub tag (latest by date)](https://img.shields.io/github/v/tag/DevsOnFlutter/file_manager?style=plastic) ![GitHub issues](https://img.shields.io/github/issues/DevsOnFlutter/file_manager?style=plastic)
6+
7+
![GitHub Repo stars](https://img.shields.io/github/stars/DevsOnFlutter/file_manager?style=social) ![GitHub forks](https://img.shields.io/github/forks/DevsOnFlutter/file_manager?style=social)
8+
39
FileManager is a wonderful widget that allows you to manage files and folders, pick files and folders, and do a lot more.
410
Designed to feel like part of the Flutter framework.
511

@@ -12,7 +18,7 @@ Make sure to check out [examples](https://github.com/DevsOnFlutter/file_manager/
1218

1319
Give storage permission to application
1420

15-
Beside needing to add WRITE_EXTERNAL_STORAGE and READ_EXTERNAL_STORAGE to your android/app/src/main/AndroidManifest.xml
21+
Beside needing to add **WRITE_EXTERNAL_STORAGE** and **READ_EXTERNAL_STORAGE** to your android/app/src/main/AndroidManifest.xml.
1622

1723
```xml
1824
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
@@ -26,7 +32,7 @@ Beside needing to add WRITE_EXTERNAL_STORAGE and READ_EXTERNAL_STORAGE to your a
2632
...
2733
</manifest>
2834
```
29-
also add f0r Android 10
35+
also add for Android 10
3036
```
3137
<application
3238
android:requestLegacyExternalStorage="true"
@@ -45,7 +51,7 @@ dependencies:
4551
4652
### Basic setup
4753
48-
*The complete example is available [here](https://github.com/4-alok/draggable_home/blob/main/example/lib/main.dart).*
54+
*The complete example is available [here](https://github.com/DevsOnFlutter/file_manager/blob/main/example/lib/main.dart).*
4955
5056
Required parameter for **FileManager** are `controller` and `builder`
5157
* `controller` The controller updates value and notifies its listeners, and FileManager updates itself appropriately whenever the user modifies the path or changes the sort-type with an associated FileManagerController.
@@ -61,19 +67,19 @@ Sample code
6167
FileManager(
6268
controller: controller,
6369
builder: (context, snapshot) {
64-
final List<FileSystemEntity> entitis = snapshot;
70+
final List<FileSystemEntity> entities = snapshot;
6571
return ListView.builder(
66-
itemCount: entitis.length,
72+
itemCount: entities.length,
6773
itemBuilder: (context, index) {
6874
return Card(
6975
child: ListTile(
70-
leading: isFile(entitis[index])
76+
leading: isFile(entities[index])
7177
? Icon(Icons.feed_outlined)
7278
: Icon(Icons.folder),
73-
title: Text(basename(entitis[index])),
79+
title: Text(basename(entities[index])),
7480
onTap: () {
75-
if (isDirectory(entitis[index])) {
76-
controller.openDirectory(entitis[index]); // open directory
81+
if (isDirectory(entities[index])) {
82+
controller.openDirectory(entities[index]); // open directory
7783
} else {
7884
// Perform file-related tasks.
7985
}
@@ -106,7 +112,7 @@ FileManager(
106112
| `goToParentDirectory` | `goToParentDirectory` returns `bool`, goes to the parent directory of currently opened directory if the parent is accessible, return true if current directory is the root. false, if the current directory not on root of the stogare.. |
107113
| `openDirectory` | Open directory by providing `Directory`. |
108114

109-
## Otheres
115+
## Others
110116
| Properties | Description |
111117
|--------------|-----------------|
112118
| `isFile` | check weather FileSystemEntity is File. |
@@ -119,8 +125,15 @@ FileManager(
119125

120126
## Show some :heart: and :star: the repo
121127

128+
## Project Created & Maintained By
129+
130+
### Alok Kumar
131+
122132
[![GitHub followers](https://img.shields.io/github/followers/4-alok?style=social)](https://github.com/4-alok/)
123-
[![GitHub followers](https://img.shields.io/github/stars/4-alok/draggable_home?style=social)](https://github.com/4-alok/)
133+
134+
### Arpit Sahu
135+
136+
[![GitHub followers](https://img.shields.io/github/followers/Arpit-Sahu?style=social)](https://github.com/Arpit-Sahu/)
124137

125138
## Contributions
126139

@@ -141,4 +154,4 @@ For a custom-hook to be merged, you will need to do the following:
141154
In the mean-time, feel free to publish your hook as a package on https://pub.dev.
142155

143156
- A hook will not be merged unles fully tested, to avoid breaking it inadvertendly
144-
in the future.
157+
in the future.

0 commit comments

Comments
 (0)