You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-2Lines changed: 5 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -39,8 +39,8 @@ An **assets picker** which looks like the one in WeChat, based on `photo_manager
39
39
-[ ] Single asset mode
40
40
-[x] i18n support
41
41
-[x] Custom text delegate support
42
-
-[] Custom theming entirely
43
-
-[ ] Flutter For Web support
42
+
-[x] Custom theme entirely
43
+
-[x] MacOS support
44
44
45
45
## Screenshots 📸
46
46
@@ -97,6 +97,7 @@ Add following content to `info.plist`.
97
97
| requestType |`RequestType`| Request type for picker. | RequestType.image |
98
98
| selectedAssets |`List<AssetEntity>`| Selected assets. Prevent duplicate selection. If you don't need to prevent duplicate selection, just don't pass it. |`null`|
99
99
| themeColor |`Color`| Main theme color for the picker |`Color(0xff00bc56)`|
100
+
| pickerTheme |`ThemeData`| Theme data provider for the picker and the viewer. |`null`|
100
101
| textDelegate |`TextDelegate`| Text delegate for the picker, for customize the texts. |`DefaultTextDelegate()`|
101
102
| routeCurve |`Curve`| The curve which the picker use to build page route transition. |`Curves.easeIn`|
102
103
| routeDuration |`Duration`| The duration which the picker use to build page route transition. |`const Duration(milliseconds: 500)`|
@@ -128,6 +129,7 @@ final List<AssetEntity> result = await AssetPicker.pickAssets(
128
129
requestType: RequestType.image,
129
130
selectedAssets: assets,
130
131
themeColor: Colors.cyan,
132
+
pickerTheme: ThemeData.dark(), // This cannot be set when the `themeColor` was provided.
131
133
textDelegate: DefaultTextDelegate(),
132
134
routeCurve: Curves.easeIn,
133
135
routeDuration: const Duration(milliseconds: 500),
@@ -148,6 +150,7 @@ AssetPicker.pickAssets(
148
150
requestType: RequestType.image,
149
151
selectedAssets: assets,
150
152
themeColor: Colors.cyan,
153
+
pickerTheme: ThemeData.dark(), // This cannot be set when the `themeColor` was provided.
0 commit comments