We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0323ba0 commit 77e5287Copy full SHA for 77e5287
lib/src/widget/asset_picker.dart
@@ -136,7 +136,7 @@ class AssetPicker extends StatelessWidget {
136
137
/// [ThemeData] for picker.
138
/// 选择器使用的主题
139
- ThemeData get theme => ThemeData.dark().copyWith(
+ static ThemeData themeData(Color themeColor) => ThemeData.dark().copyWith(
140
buttonColor: themeColor,
141
brightness: Brightness.dark,
142
primaryColor: Colors.grey[900],
@@ -161,6 +161,8 @@ class AssetPicker extends StatelessWidget {
161
),
162
);
163
164
+ ThemeData get theme => themeData(themeColor);
165
+
166
/// Path entity select widget.
167
/// 路径选择部件
168
Widget get pathEntitySelector => UnconstrainedBox(
0 commit comments