Skip to content

Commit 8613fb8

Browse files
committed
🚑️ Fixes the breaking ColorScheme.background implementation on older Flutter SDKs
1 parent be58cf7 commit 8613fb8

File tree

4 files changed

+11
-2
lines changed

4 files changed

+11
-2
lines changed

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ that can be found in the LICENSE file. -->
66

77
See the [Migration Guide](guides/migration_guide.md) for breaking changes between versions.
88

9+
## 4.3.0+1
10+
11+
### Fixes
12+
13+
- Fixes the breaking `ColorScheme.background` implementation on older Flutter SDKs.
14+
915
## 4.3.0
1016

1117
### Improvements

example/pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: wechat_camera_picker_demo
22
description: A new Flutter project.
3-
version: 4.3.0+35
3+
version: 4.3.0+36
44
publish_to: none
55

66
environment:

lib/src/widgets/camera_picker.dart

+3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Copyright 2019 The FlutterCandies author. All rights reserved.
22
// Use of this source code is governed by an Apache license that can be found
33
// in the LICENSE file.
4+
// ignore_for_file: deprecated_member_use
45

56
import 'dart:async';
67

@@ -92,12 +93,14 @@ class CameraPicker extends StatefulWidget {
9293
primaryContainer: Colors.grey[900],
9394
secondary: themeColor,
9495
secondaryContainer: themeColor,
96+
background: Colors.grey[900]!,
9597
surface: Colors.grey[900]!,
9698
brightness: Brightness.dark,
9799
error: const Color(0xffcf6679),
98100
onPrimary: Colors.black,
99101
onSecondary: Colors.black,
100102
onSurface: Colors.white,
103+
onBackground: Colors.white,
101104
onError: Colors.black,
102105
),
103106
);

pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: wechat_camera_picker
2-
version: 4.3.0
2+
version: 4.3.0+1
33
description: |
44
A camera picker for Flutter projects based on WeChat's UI,
55
which is also a separate runnable extension to the

0 commit comments

Comments
 (0)