Skip to content

Commit

Permalink
Version: 3.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
AmosHuKe committed Dec 13, 2024
1 parent 971dae0 commit 9c3441b
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 13 deletions.
12 changes: 4 additions & 8 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,16 @@
> [!IMPORTANT]
> See the [Migration Guide](guides/migration_guide.md) for the details of breaking changes between versions.
## 3.2.0 (Unreleased)
## 3.2.0

## 3.2.0-rc.2
### New features

- Add `Tilt.lightShadowMode` and configuration. ([#12](https://github.com/fluttercandies/flutter_tilt/pull/12))

### Improvements

- Migrate from `withOpacity` to `withAlpha`.

## 3.2.0-rc.1

### New features

- Add `Tilt.lightShadowMode` and configuration. ([#12](https://github.com/fluttercandies/flutter_tilt/pull/12))

## 3.1.0

### Improvements
Expand Down
2 changes: 1 addition & 1 deletion example/android/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-bin.zip
2 changes: 1 addition & 1 deletion example/android/settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ pluginManagement {
plugins {
id "dev.flutter.flutter-plugin-loader" version "1.0.0"
id "com.android.application" version "8.3.2" apply false
id "org.jetbrains.kotlin.android" version "1.7.10" apply false
id "org.jetbrains.kotlin.android" version "1.9.10" apply false
}

include ":app"
5 changes: 4 additions & 1 deletion lib/src/widget/tilt_light.dart
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,10 @@ class TiltLight extends StatelessWidget with TiltDecoration {
decoration: BoxDecoration(
gradient: RadialGradient(
colors: <Color>[
/// TODO: Flutter v3.27.0 之后需要迁移,在这之前暂时使用 withAlpha
/// TODO: Flutter v3.27.0 之后需要迁移,在这之前暂时使用 withAlpha,
/// (目前为了兼容更多低版本 Flutter 以及对于非主要 Tilt 效果的 P3 广色域优先级很低,未来再迁移为 withValues)
/// 以下 withAlpha 内的计算方式和 withOpacity 内部的计算方式一致,
/// 所以还不支持 P3 广色域,目前依旧是 sRGB。
/// https://docs.flutter.dev/release/breaking-changes/wide-gamut-framework
lightConfig.color.withAlpha((255.0 * showProgress).round()),
lightConfig.color.withAlpha(0),
Expand Down
5 changes: 4 additions & 1 deletion lib/src/widget/tilt_shadow.dart
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,10 @@ class TiltShadowBase extends TiltShadow {
boxShadow: <BoxShadow>[
if (!shadowDisable)
BoxShadow(
/// TODO: Flutter v3.27.0 之后需要迁移,在这之前暂时使用 withAlpha
/// TODO: Flutter v3.27.0 之后需要迁移,在这之前暂时使用 withAlpha,
/// (目前为了兼容更多低版本 Flutter 以及对于非主要 Tilt 效果的 P3 广色域优先级很低,未来再迁移为 withValues)
/// 以下 withAlpha 内的计算方式和 withOpacity 内部的计算方式一致,
/// 所以还不支持 P3 广色域,目前依旧是 sRGB。
/// https://docs.flutter.dev/release/breaking-changes/wide-gamut-framework
color: shadowConfig.color.withAlpha((255.0 * showShadow).round()),
offset: offset,
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ description: Easily apply tilt parallax hover effects for Flutter, which support
# https://semver.org/spec/v2.0.0-rc.1.html
# https://dart.dev/tools/pub/versioning#semantic-versions
# https://dart.dev/tools/pub/dependencies#version-constraints
version: 3.2.0-rc.2
version: 3.2.0
homepage: https://amoshuke.github.io/flutter_tilt_book
repository: https://github.com/fluttercandies/flutter_tilt
issue_tracker: https://github.com/fluttercandies/flutter_tilt/issues
Expand Down

0 comments on commit 9c3441b

Please sign in to comment.