Skip to content

Commit

Permalink
fix: Compatible with Flutter3.22.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
xuelongqy committed May 14, 2024
1 parent 222cec3 commit ab5ecb4
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 9 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
## Next
## 3.4.0
- breaking: Flutter >=3.7.0, dart >=2.19.0. Remove some unnecessary compatibility, please update the Flutter version in time, or use the previous version.
- fix: Scroll bar adaptation for unknown platforms [#825](https://github.com/xuelongqy/flutter_easy_refresh/issues/825).
- feat: Add BoxDecoration to ClassicHeader and ClassicFooter, Thanks GiampaoloGabba for [PR#822](https://github.com/xuelongqy/flutter_easy_refresh/pull/822).
- fix: Compatible with Flutter3.22.0.

## 3.3.5+1
- fix: Indicator properties cannot be updated [#818](https://github.com/xuelongqy/flutter_easy_refresh/issues/818).
Expand Down
2 changes: 1 addition & 1 deletion example/lib/page/more/cryptocurrency_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ class _CryptocurrencyPageState extends State<CryptocurrencyPage>
elevation: 0,
clipBehavior: Clip.hardEdge,
margin: const EdgeInsets.only(left: 32, right: 32, bottom: 32),
color: themeData.colorScheme.surfaceVariant,
color: themeData.colorScheme.surfaceContainerHighest,
child: InkWell(
onTap: () {
Clipboard.setData(ClipboardData(text: info.address));
Expand Down
2 changes: 1 addition & 1 deletion example/lib/page/sample/carousel_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ class _CarouselPageState extends State<CarouselPage> {
for (int i = 0; i < _carouselCount; i++)
Card(
elevation: 0,
color: themeData.colorScheme.surfaceVariant,
color: themeData.colorScheme.surfaceContainerHighest,
child: Center(
child: Text((i + 1).toString()),
),
Expand Down
3 changes: 2 additions & 1 deletion example/lib/page/sample/chat_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,8 @@ class _ChatPageState extends State<ChatPage> {
borderSide: BorderSide.none,
),
filled: true,
fillColor: themeData.colorScheme.surfaceVariant,
fillColor:
themeData.colorScheme.surfaceContainerHighest,
prefixIcon: const Icon(Icons.abc),
suffixIcon: IconButton(
onPressed: () {
Expand Down
4 changes: 2 additions & 2 deletions example/lib/page/style/classical_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class _ClassicPageState extends State<ClassicPage> {
header: ClassicHeader(
clamping: _headerProperties.clamping,
backgroundColor: _headerProperties.background
? Theme.of(context).colorScheme.surfaceVariant
? Theme.of(context).colorScheme.surfaceContainerHighest
: null,
mainAxisAlignment: _headerProperties.alignment,
showMessage: _headerProperties.message,
Expand All @@ -76,7 +76,7 @@ class _ClassicPageState extends State<ClassicPage> {
footer: ClassicFooter(
clamping: _footerProperties.clamping,
backgroundColor: _footerProperties.background
? Theme.of(context).colorScheme.surfaceVariant
? Theme.of(context).colorScheme.surfaceContainerHighest
: null,
mainAxisAlignment: _footerProperties.alignment,
showMessage: _footerProperties.message,
Expand Down
2 changes: 1 addition & 1 deletion example/lib/widget/skeleton_item.dart
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class SkeletonItem extends StatelessWidget {
@override
Widget build(BuildContext context) {
final themeData = Theme.of(context);
final backgroundColor = themeData.colorScheme.surfaceVariant;
final backgroundColor = themeData.colorScheme.surfaceContainerHighest;
final foregroundColor = themeData.colorScheme.surface;
if (direction == Axis.vertical) {
return Card(
Expand Down
2 changes: 1 addition & 1 deletion example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ dependencies:
dev_dependencies:
flutter_test:
sdk: flutter
flutter_lints: ^3.0.2
flutter_lints: ^4.0.0

module:
androidX: true
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: easy_refresh
description: A flutter widget that provides pull-down refresh and pull-up load.
version: 3.3.5+1
version: 3.4.0
homepage: https://xuelongqy.github.io/flutter_easy_refresh
repository: https://github.com/xuelongqy/flutter_easy_refresh
issue_tracker: https://github.com/xuelongqy/flutter_easy_refresh/issues
Expand Down

0 comments on commit ab5ecb4

Please sign in to comment.