更新日志
重要:
请参阅 迁移指南 来了解各版本间的重大变更详情。
3.3.2
Improvements
- Bump
sensors_pluspackage to'>=6.1.0 <8.0.0'.
3.3.1
Improvements
- Reduce unnecessary animation controllers (multiple
TiltParallaxwidgets share the same controller). (#30)
3.3.0
New features
-
By default, add a smooth transition effect when gestures (hover and touch) enter. (#29)
- Configurable via:
TiltConfig.enterDurationTiltConfig.moveDurationTiltConfig.enterToMoveDurationTiltConfig.enterToMoveCurve
If you prefer to disable this effect:
Tilt( tiltConfig: TiltConfig( + enterToMoveDuration: Duration.zero, ... ) ... ) - Configurable via:
3.2.3
Improvements
- Improve performance (e.g. avoid unnecessary variable assignments, ...). (#27)
- Refactor code structures. (#27)
- The
Tilt.fpsdefault value has been changed from 60 to 120. (#27)
3.2.2
Improvements
- Update example and docs.
3.2.1
Improvements
3.2.0
New features
- Add
Tilt.lightShadowModeand configuration. (#12)
Improvements
- Migrate from
withOpacitytowithAlpha.
3.1.0
Improvements
- Bump
sensors_pluspackage from6.0.0to6.1.0. (#20) - Migrate the example to Android Studio Ladybug (JDK 21). (#19)
3.0.6
Improvements
- Replace
Platform(dart:io) withTargetPlatform(flutter/foundation.dart). (#18) - Handling when the platform has no available sensors. (#18)
3.0.5
Fixes
- Fix
Tilt.disable: truestill prevents scrolling. (#16)
3.0.4
Fixes
- Fix
tiltConfig.enableGestureTouchstill prevents scrolling when disabled. (#15)
Improvements
- Improve example (Flutter v3.24.0)
3.0.3
Improvements
- Bump
sensors_pluspackage from5.0.1to6.0.0.
3.0.2
Improvements
- Improve linter.
3.0.1
Improvements
- Upgrade
sensors_pluspackage to5.0.1. - Update Doc.
3.0.0
Breaking changes
- Bumping Flutter SDK minimum version to
3.19.0.
Improvements
- Upgrade
sensors_pluspackage to5.0.0.
2.4.1
Improvements
- dart doc.
2.4.0
New features
- Add
Tilt.tiltStreamControllerto provide custom control of the tilt. - Add
TiltConfig.controllerMoveDuration,TiltConfig.controllerLeaveDuration.
Improvements
- Improve gesture priority logic.
- dart doc.
Fixes
- Fix assignment usage logic in
Tilt.tiltStreamController. - Fix
Tilt.tiltStreamControllercloses prematurely. - Fix sensor listening not closed.
2.3.0
Breaking changes
- Bumping Flutter SDK minimum version to
3.10.0.
Improvements
- Update Versions Compatibility. (Sensors are not supported on the web platform until Flutter version 3.10)
2.2.1
Improvements
- Upgrade
sensors_plusto version 4.0.2. - Improve code structure.
Fixes
- Fix
onGesturesRevertbeing called repeatedly after a move has ended.
2.2.0
Breaking changes
- Migrate to Flutter 3.7 and drop support for previous Flutter versions.
- Upgrade sensors_plus to v4.x.x. (#6)
Improvements
- Improve example (Flutter v3.16.0)
2.1.2
Improvements
- Improve high energy impact.
2.1.1
Improvements
- Update the example to Flutter 3.16.0 and use Material3.
2.1.0
New features
- Add spreadFactor to LightConfig.
2.0.10
Fixes
- Fix undetermined mounted.
2.0.9
Fixes
- Fix device orientation does not match sensor orientation.
2.0.8
Improvements
- Improve README docs
2.0.7
Improvements
- Upgrade
sensors_plusto version 3.1.0
2.0.6
Improvements
- Improve light above
childLayout.inner.
Fixes
- Fix incorrect initialization sizes in some cases (e.g. image with unspecified sizes).
2.0.5
Improvements
- Improve code structure.
2.0.4
Fixes
- Fix tapping on content causes tilt when
enableRevertorenableSensorRevertis false.
2.0.3
Fixes
- Fix device landscape mode not match sensor orientation.
2.0.2
Improvements
- Config copyWith().
2.0.1
Fixes
- Fix initial has no effect.
2.0.0
Breaking changes
- Bumping Flutter SDK minimum version to
3.3.0. - Changed
enableMouseHoverinTiltConfigtoenableGestureHover. - To keep the tilt, you need to configure
TiltConfig(enableRevert: false, enableSensorRevert: false,).
New features
- Add sensor gesture (configuration:
enableGestureSensors,sensorFactor,enableSensorRevert,sensorRevertFactor,sensorMoveDuration), default configuration isTiltConfig(enableGestureSensors = true). - Add touch gesture configuration, default is
TiltConfig(enableGestureTouch = true).
Improvements
- Gesture optimization.
1.0.4
Fixes
- Fix
TiltConfig(enableReverse: true)is not used inTiltParallax. - Fix fps timer not canceled.
1.0.3
Improvements
- Update
FilterQualityparameter ofTiltandTiltParallaxwidgets isnullby default. - Upgrade Example of Flutter to 3.13.0
1.0.2
- Doc
1.0.1
- Doc
1.0.0
Improvements
- Test coverage 100%.
0.1.2
Fixes
- Fix
constraintsPositionmin value is wrong. - Fix
TiltParallaxwidget not followingTiltwidget.
0.1.1
Fixes
- Fix trigger touch and hover at the same time.
0.1.0
Breaking changes
- The
childInnerparameter of theTilt widgethas been changed tochildLayout.outer.
New features
- Add
TiltwidgetchildLayoutparameter with multiple layouts.
0.0.9
New features
- Add
bordertoTiltwidget. - Add animate
moveDuration,leaveDuration,moveCurve,leaveCurvetoTiltConfig.
0.0.8
New features
- Add
GesturesTypetoonGestureMoveandonGestureLeave.
Improvements
- Update the trigger of
onGestureLeavewhenTiltConfig.enableRevert = false. - Update
TiltConfig.enableRevert.
Fixes
- Fix
areaProgresschanging after resize.
0.0.7
- Docs
0.0.6
Fixes
- Remove
onTiltBegin,onTiltEndand addtiltDataModelcallback values toonGestureMove,onGestureLeave.
0.0.5
Fixes
- Fix can't change parameters.
- Fix
Tilt.childInneris removed whenTilt.disableis used.
0.0.3
Fixes
- Fix
onGestureLeavetrigger whenTiltConfig.enableMouseHover = false.
0.0.2
Fixes
- Fix code for
analysis_optionswarnings. - Remove
TiltDirectioninvalidtopBottomandleftRight.
0.0.1
New features
Tiltwidget supportsonTiltBegin,onTiltEnd,onGestureMove,onGestureLeave.- Upgrade
exampleFlutter 3.10.6.
0.0.1-dev.1
- Docs
0.0.1-dev.0
- Init