台桌列表预定页面

This commit is contained in:
GYJ
2024-11-26 17:58:17 +08:00
parent 2644163712
commit 2d890f81cd
3 changed files with 752 additions and 20 deletions

View File

@@ -8,10 +8,29 @@ import '../common/base/provider.dart';
class ReserveView extends BaseUI with TickerProviderStateMixin {
TabController? tabController;
late AnimationController animationController;
late Animation<double> animationSizeFactor;
@override
void initState() {
super.initState();
animationController = AnimationController(
vsync: this,
duration: const Duration(milliseconds: 300),
);
animationSizeFactor = Tween<double>(begin: 0, end: 1).animate(
CurveTween(curve: Curves.easeInOut)
.chain(CurveTween(curve: Curves.decelerate))
.animate(animationController),
);
}
@override
void dispose() {
tabController?.dispose();
animationController.dispose();
animationSizeFactor.removeListener(() {});
super.dispose();
}
@@ -127,7 +146,11 @@ class ReserveView extends BaseUI with TickerProviderStateMixin {
}
return Row(
children: [
ReserveLeftContentView(provider: provider),
ReserveLeftContentView(
provider: provider,
animationSizeFactor: animationSizeFactor,
animationController: animationController,
),
Expanded(
child: ReserveRightContentView(
provider: provider,