Prepare 0.7.9 with decisive Dock tap transitions

This commit is contained in:
david1465833828
2026-10-28 19:37:04 +08:00
parent 23c1a58ca3
commit 8713bce0ee
9 changed files with 85 additions and 9 deletions
+2 -2
View File
@@ -1,3 +1,3 @@
const appVersion = '0.7.8';
const appBuildNumber = 34;
const appVersion = '0.7.9';
const appBuildNumber = 35;
const appFilingNumber = '蜀ICP备2025169276号-5A';
+2 -2
View File
@@ -35,7 +35,7 @@ class _GlassDockState extends State<GlassDock> with TickerProviderStateMixin {
);
late final AnimationController _tap = AnimationController(
vsync: this,
duration: const Duration(milliseconds: 620),
duration: const Duration(milliseconds: 420),
);
late final AnimationController _sway = AnimationController.unbounded(
vsync: this,
@@ -212,7 +212,7 @@ class _GlassDockState extends State<GlassDock> with TickerProviderStateMixin {
_motion.animateWith(
SpringSimulation(
springyTap
? const SpringDescription(mass: 1, stiffness: 350, damping: 20)
? const SpringDescription(mass: 1, stiffness: 620, damping: 36)
: const SpringDescription(mass: 1, stiffness: 360, damping: 26),
_position,
index.toDouble(),
+1 -1
View File
@@ -12,7 +12,7 @@ class TabDeck extends StatefulWidget {
class _TabDeckState extends State<TabDeck> with SingleTickerProviderStateMixin {
late final AnimationController _motion = AnimationController(
vsync: this,
duration: const Duration(milliseconds: 330),
duration: const Duration(milliseconds: 240),
value: 1,
);
int? _outgoing;