台桌列表预定页面
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user