Skip to content

Commit d2cea0f

Browse files
committed
🔥 Replace ColorScheme.background -> ColorScheme.surface
1 parent a4ed06a commit d2cea0f

File tree

5 files changed

+8
-7
lines changed

5 files changed

+8
-7
lines changed

analysis_options.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ include: package:flutter_lints/flutter.yaml
33
analyzer:
44
errors:
55
deprecated_member_use: ignore
6+
deprecated_member_use_from_same_package: ignore
67

78
linter:
89
rules:

example/lib/customs/pickers/directory_file_asset_picker.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -806,7 +806,7 @@ class FileAssetPickerBuilder
806806
borderRadius: isAppleOS(context)
807807
? const BorderRadius.vertical(bottom: Radius.circular(10.0))
808808
: null,
809-
color: theme.colorScheme.background,
809+
color: theme.colorScheme.surface,
810810
),
811811
child: w,
812812
),

example/lib/customs/pickers/insta_asset_picker.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -743,7 +743,7 @@ class InstaAssetPickerBuilder extends DefaultAssetPickerBuilderDelegate {
743743
padding: const EdgeInsets.all(4),
744744
color: isPreview
745745
? theme.unselectedWidgetColor.withOpacity(.5)
746-
: theme.colorScheme.background.withOpacity(.1),
746+
: theme.colorScheme.surface.withOpacity(.1),
747747
child: Align(
748748
alignment: AlignmentDirectional.topEnd,
749749
child: isSelected && !isSingleAssetMode

lib/src/delegates/asset_picker_builder_delegate.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -564,7 +564,7 @@ abstract class AssetPickerBuilderDelegate<Asset, Path> {
564564
builder: (_, AssetPickerProvider<Asset, Path> p, __) {
565565
if (!p.selectedAssets.contains(asset) && p.selectedMaximumAssets) {
566566
return Container(
567-
color: theme.colorScheme.background.withOpacity(.85),
567+
color: theme.colorScheme.surface.withOpacity(.85),
568568
);
569569
}
570570
return const SizedBox.shrink();
@@ -2006,7 +2006,7 @@ class DefaultAssetPickerBuilderDelegate
20062006
maxHeight: MediaQuery.sizeOf(context).height *
20072007
(isAppleOS(context) ? .6 : .8),
20082008
),
2009-
color: theme.colorScheme.background,
2009+
color: theme.colorScheme.surface,
20102010
child: child,
20112011
),
20122012
),
@@ -2343,7 +2343,7 @@ class DefaultAssetPickerBuilderDelegate
23432343
p.selectedAssets.isNotEmpty);
23442344
if (isDisabled) {
23452345
return Container(
2346-
color: theme.colorScheme.background.withOpacity(.85),
2346+
color: theme.colorScheme.surface.withOpacity(.85),
23472347
);
23482348
}
23492349
return const SizedBox.shrink();
@@ -2431,7 +2431,7 @@ class DefaultAssetPickerBuilderDelegate
24312431
padding: EdgeInsets.all(indicatorSize * .35),
24322432
color: selected
24332433
? theme.colorScheme.primary.withOpacity(.45)
2434-
: theme.colorScheme.background.withOpacity(.1),
2434+
: theme.colorScheme.surface.withOpacity(.1),
24352435
child: selected && !isSingleAssetMode
24362436
? Align(
24372437
alignment: AlignmentDirectional.topStart,

lib/src/widget/builder/audio_page_builder.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ class _AudioPageBuilderState extends State<AudioPageBuilder> {
201201
onLongPressHint:
202202
Singleton.textDelegate.semanticsTextDelegate.sActionPlayHint,
203203
child: ColoredBox(
204-
color: context.theme.colorScheme.background,
204+
color: context.theme.colorScheme.surface,
205205
child: isLoaded
206206
? Column(
207207
mainAxisAlignment: MainAxisAlignment.center,

0 commit comments

Comments
 (0)