mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-31 08:08:19 +08:00
@@ -664,10 +664,6 @@ class CustomScrollableState extends State<CustomScrollable>
|
|||||||
vsync: this,
|
vsync: this,
|
||||||
reverseDuration: const Duration(milliseconds: 500),
|
reverseDuration: const Duration(milliseconds: 500),
|
||||||
);
|
);
|
||||||
_anim = Tween<Offset>(
|
|
||||||
begin: Offset.zero,
|
|
||||||
end: const Offset(0, 1),
|
|
||||||
).animate(_animController);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@protected
|
@protected
|
||||||
@@ -786,7 +782,6 @@ class CustomScrollableState extends State<CustomScrollable>
|
|||||||
bool? _isSliding;
|
bool? _isSliding;
|
||||||
|
|
||||||
late AnimationController _animController;
|
late AnimationController _animController;
|
||||||
late Animation<Offset> _anim;
|
|
||||||
|
|
||||||
@override
|
@override
|
||||||
@protected
|
@protected
|
||||||
@@ -1185,8 +1180,15 @@ class CustomScrollableState extends State<CustomScrollable>
|
|||||||
return LayoutBuilder(
|
return LayoutBuilder(
|
||||||
builder: (context, constraints) {
|
builder: (context, constraints) {
|
||||||
_maxWidth = constraints.maxWidth;
|
_maxWidth = constraints.maxWidth;
|
||||||
return SlideTransition(
|
return AnimatedBuilder(
|
||||||
position: _anim,
|
animation: _animController,
|
||||||
|
builder: (context, child) {
|
||||||
|
return Align(
|
||||||
|
alignment: AlignmentDirectional.topStart,
|
||||||
|
heightFactor: 1 - _animController.value,
|
||||||
|
child: child,
|
||||||
|
);
|
||||||
|
},
|
||||||
child: Material(
|
child: Material(
|
||||||
color: widget.bgColor,
|
color: widget.bgColor,
|
||||||
child: widget.header != null
|
child: widget.header != null
|
||||||
|
|||||||
@@ -18,7 +18,6 @@ mixin CommonSlideMixin<T extends CommonSlidePage> on State<T>, TickerProvider {
|
|||||||
late bool _isRTL = false;
|
late bool _isRTL = false;
|
||||||
late final bool enableSlide;
|
late final bool enableSlide;
|
||||||
AnimationController? _animController;
|
AnimationController? _animController;
|
||||||
Animation<Offset>? _anim;
|
|
||||||
|
|
||||||
static bool slideDismissReplyPage = Pref.slideDismissReplyPage;
|
static bool slideDismissReplyPage = Pref.slideDismissReplyPage;
|
||||||
|
|
||||||
@@ -31,10 +30,6 @@ mixin CommonSlideMixin<T extends CommonSlidePage> on State<T>, TickerProvider {
|
|||||||
vsync: this,
|
vsync: this,
|
||||||
reverseDuration: const Duration(milliseconds: 500),
|
reverseDuration: const Duration(milliseconds: 500),
|
||||||
);
|
);
|
||||||
_anim = Tween<Offset>(
|
|
||||||
begin: Offset.zero,
|
|
||||||
end: const Offset(0, 1),
|
|
||||||
).animate(_animController!);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -51,8 +46,15 @@ mixin CommonSlideMixin<T extends CommonSlidePage> on State<T>, TickerProvider {
|
|||||||
? LayoutBuilder(
|
? LayoutBuilder(
|
||||||
builder: (context, constraints) {
|
builder: (context, constraints) {
|
||||||
maxWidth = constraints.maxWidth;
|
maxWidth = constraints.maxWidth;
|
||||||
return SlideTransition(
|
return AnimatedBuilder(
|
||||||
position: _anim!,
|
animation: _animController!,
|
||||||
|
builder: (context, child) {
|
||||||
|
return Align(
|
||||||
|
alignment: AlignmentDirectional.topStart,
|
||||||
|
heightFactor: 1 - _animController!.value,
|
||||||
|
child: child,
|
||||||
|
);
|
||||||
|
},
|
||||||
child: buildPage(theme),
|
child: buildPage(theme),
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
|||||||
16
pubspec.lock
16
pubspec.lock
@@ -1097,7 +1097,7 @@ packages:
|
|||||||
description:
|
description:
|
||||||
path: media_kit
|
path: media_kit
|
||||||
ref: "version_1.2.5"
|
ref: "version_1.2.5"
|
||||||
resolved-ref: "43aee19d9b2b0e33e0c9dd922b36ca6ace56de29"
|
resolved-ref: "184bc8de91e90528e407d52b18328c9abc6ad720"
|
||||||
url: "https://github.com/bggRGjQaUbCoE/media-kit.git"
|
url: "https://github.com/bggRGjQaUbCoE/media-kit.git"
|
||||||
source: git
|
source: git
|
||||||
version: "1.1.11"
|
version: "1.1.11"
|
||||||
@@ -1106,7 +1106,7 @@ packages:
|
|||||||
description:
|
description:
|
||||||
path: "libs/android/media_kit_libs_android_video"
|
path: "libs/android/media_kit_libs_android_video"
|
||||||
ref: "version_1.2.5"
|
ref: "version_1.2.5"
|
||||||
resolved-ref: "43aee19d9b2b0e33e0c9dd922b36ca6ace56de29"
|
resolved-ref: "184bc8de91e90528e407d52b18328c9abc6ad720"
|
||||||
url: "https://github.com/bggRGjQaUbCoE/media-kit.git"
|
url: "https://github.com/bggRGjQaUbCoE/media-kit.git"
|
||||||
source: git
|
source: git
|
||||||
version: "1.3.7"
|
version: "1.3.7"
|
||||||
@@ -1139,7 +1139,7 @@ packages:
|
|||||||
description:
|
description:
|
||||||
path: "libs/universal/media_kit_libs_video"
|
path: "libs/universal/media_kit_libs_video"
|
||||||
ref: "version_1.2.5"
|
ref: "version_1.2.5"
|
||||||
resolved-ref: "43aee19d9b2b0e33e0c9dd922b36ca6ace56de29"
|
resolved-ref: "184bc8de91e90528e407d52b18328c9abc6ad720"
|
||||||
url: "https://github.com/bggRGjQaUbCoE/media-kit.git"
|
url: "https://github.com/bggRGjQaUbCoE/media-kit.git"
|
||||||
source: git
|
source: git
|
||||||
version: "1.0.5"
|
version: "1.0.5"
|
||||||
@@ -1148,7 +1148,7 @@ packages:
|
|||||||
description:
|
description:
|
||||||
path: "libs/windows/media_kit_libs_windows_video"
|
path: "libs/windows/media_kit_libs_windows_video"
|
||||||
ref: "version_1.2.5"
|
ref: "version_1.2.5"
|
||||||
resolved-ref: "43aee19d9b2b0e33e0c9dd922b36ca6ace56de29"
|
resolved-ref: "184bc8de91e90528e407d52b18328c9abc6ad720"
|
||||||
url: "https://github.com/bggRGjQaUbCoE/media-kit.git"
|
url: "https://github.com/bggRGjQaUbCoE/media-kit.git"
|
||||||
source: git
|
source: git
|
||||||
version: "1.0.10"
|
version: "1.0.10"
|
||||||
@@ -1157,7 +1157,7 @@ packages:
|
|||||||
description:
|
description:
|
||||||
path: media_kit_native_event_loop
|
path: media_kit_native_event_loop
|
||||||
ref: "version_1.2.5"
|
ref: "version_1.2.5"
|
||||||
resolved-ref: "43aee19d9b2b0e33e0c9dd922b36ca6ace56de29"
|
resolved-ref: "184bc8de91e90528e407d52b18328c9abc6ad720"
|
||||||
url: "https://github.com/bggRGjQaUbCoE/media-kit.git"
|
url: "https://github.com/bggRGjQaUbCoE/media-kit.git"
|
||||||
source: git
|
source: git
|
||||||
version: "1.0.9"
|
version: "1.0.9"
|
||||||
@@ -1166,7 +1166,7 @@ packages:
|
|||||||
description:
|
description:
|
||||||
path: media_kit_video
|
path: media_kit_video
|
||||||
ref: "version_1.2.5"
|
ref: "version_1.2.5"
|
||||||
resolved-ref: "43aee19d9b2b0e33e0c9dd922b36ca6ace56de29"
|
resolved-ref: "184bc8de91e90528e407d52b18328c9abc6ad720"
|
||||||
url: "https://github.com/bggRGjQaUbCoE/media-kit.git"
|
url: "https://github.com/bggRGjQaUbCoE/media-kit.git"
|
||||||
source: git
|
source: git
|
||||||
version: "1.2.5"
|
version: "1.2.5"
|
||||||
@@ -1510,10 +1510,10 @@ packages:
|
|||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
name: sentry
|
name: sentry
|
||||||
sha256: d9f3dcf1ecdd600cf9ce134f622383adde5423ecfdaf0ca9b20fbc1c44849337
|
sha256: "0a3a1e6b3b3873070d4dbefc6968f0d31e698ed55b4eb8ee185b230f35733b59"
|
||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "9.6.0"
|
version: "9.7.0"
|
||||||
share_plus:
|
share_plus:
|
||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
|
|||||||
Reference in New Issue
Block a user