Skip to content

Commit a6fbc44

Browse files
committed
⚡️ Continue support Flutter 2.8
1 parent 27766e6 commit a6fbc44

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/src/widget/asset_picker.dart

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/// [Author] Alex (https://github.com/Alex525)
33
/// [Date] 2020/3/31 15:39
44
///
5-
5+
// ignore_for_file: deprecated_member_use
66
import 'package:flutter/material.dart';
77
import 'package:flutter/services.dart';
88
import 'package:photo_manager/photo_manager.dart';
@@ -229,7 +229,9 @@ class AssetPicker<Asset, Path> extends StatefulWidget {
229229
buttonTheme: ButtonThemeData(buttonColor: themeColor),
230230
colorScheme: ColorScheme(
231231
primary: Colors.grey[50]!,
232+
primaryVariant: Colors.grey[50]!,
232233
secondary: themeColor,
234+
secondaryVariant: themeColor,
233235
background: Colors.grey[50]!,
234236
surface: Colors.grey[50]!,
235237
brightness: Brightness.light,
@@ -268,7 +270,9 @@ class AssetPicker<Asset, Path> extends StatefulWidget {
268270
buttonTheme: ButtonThemeData(buttonColor: themeColor),
269271
colorScheme: ColorScheme(
270272
primary: Colors.grey[900]!,
273+
primaryVariant: Colors.grey[900]!,
271274
secondary: themeColor,
275+
secondaryVariant: themeColor,
272276
background: Colors.grey[900]!,
273277
surface: Colors.grey[900]!,
274278
brightness: Brightness.dark,

0 commit comments

Comments
 (0)