|
2 | 2 | /// [Author] Alex (https://github.com/Alex525)
|
3 | 3 | /// [Date] 2020/3/31 15:39
|
4 | 4 | ///
|
5 |
| -
|
| 5 | +// ignore_for_file: deprecated_member_use |
6 | 6 | import 'package:flutter/material.dart';
|
7 | 7 | import 'package:flutter/services.dart';
|
8 | 8 | import 'package:photo_manager/photo_manager.dart';
|
@@ -229,7 +229,9 @@ class AssetPicker<Asset, Path> extends StatefulWidget {
|
229 | 229 | buttonTheme: ButtonThemeData(buttonColor: themeColor),
|
230 | 230 | colorScheme: ColorScheme(
|
231 | 231 | primary: Colors.grey[50]!,
|
| 232 | + primaryVariant: Colors.grey[50]!, |
232 | 233 | secondary: themeColor,
|
| 234 | + secondaryVariant: themeColor, |
233 | 235 | background: Colors.grey[50]!,
|
234 | 236 | surface: Colors.grey[50]!,
|
235 | 237 | brightness: Brightness.light,
|
@@ -268,7 +270,9 @@ class AssetPicker<Asset, Path> extends StatefulWidget {
|
268 | 270 | buttonTheme: ButtonThemeData(buttonColor: themeColor),
|
269 | 271 | colorScheme: ColorScheme(
|
270 | 272 | primary: Colors.grey[900]!,
|
| 273 | + primaryVariant: Colors.grey[900]!, |
271 | 274 | secondary: themeColor,
|
| 275 | + secondaryVariant: themeColor, |
272 | 276 | background: Colors.grey[900]!,
|
273 | 277 | surface: Colors.grey[900]!,
|
274 | 278 | brightness: Brightness.dark,
|
|
0 commit comments