Skip to content

Commit

Permalink
🚑️ Fixes the breaking ColorScheme.background implementation on olde…
Browse files Browse the repository at this point in the history
…r Flutter SDKs
  • Loading branch information
AlexV525 committed Jun 21, 2024
1 parent be58cf7 commit 8613fb8
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ that can be found in the LICENSE file. -->

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

## 4.3.0+1

### Fixes

- Fixes the breaking `ColorScheme.background` implementation on older Flutter SDKs.

## 4.3.0

### Improvements
Expand Down
2 changes: 1 addition & 1 deletion example/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: wechat_camera_picker_demo
description: A new Flutter project.
version: 4.3.0+35
version: 4.3.0+36
publish_to: none

environment:
Expand Down
3 changes: 3 additions & 0 deletions lib/src/widgets/camera_picker.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// Copyright 2019 The FlutterCandies author. All rights reserved.
// Use of this source code is governed by an Apache license that can be found
// in the LICENSE file.
// ignore_for_file: deprecated_member_use

import 'dart:async';

Expand Down Expand Up @@ -92,12 +93,14 @@ class CameraPicker extends StatefulWidget {
primaryContainer: Colors.grey[900],
secondary: themeColor,
secondaryContainer: themeColor,
background: Colors.grey[900]!,
surface: Colors.grey[900]!,
brightness: Brightness.dark,
error: const Color(0xffcf6679),
onPrimary: Colors.black,
onSecondary: Colors.black,
onSurface: Colors.white,
onBackground: Colors.white,
onError: Colors.black,
),
);
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: wechat_camera_picker
version: 4.3.0
version: 4.3.0+1
description: |
A camera picker for Flutter projects based on WeChat's UI,
which is also a separate runnable extension to the
Expand Down

0 comments on commit 8613fb8

Please sign in to comment.