|
|
|
@ -43,7 +43,7 @@ class StoreOrderPage extends StatefulWidget {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
class _StoreOrderPage extends State<StoreOrderPage> |
|
|
|
|
with TickerProviderStateMixin /*, AutomaticKeepAliveClientMixin*/ { |
|
|
|
|
with TickerProviderStateMixin { |
|
|
|
|
TabController tabcontroller; |
|
|
|
|
ApiService apiService; |
|
|
|
|
MinApiService minService; |
|
|
|
@ -125,9 +125,7 @@ class _StoreOrderPage extends State<StoreOrderPage>
|
|
|
|
|
await minService.getParentInfo("$tableId").catchError((error) { |
|
|
|
|
debugPrint(error); |
|
|
|
|
}); |
|
|
|
|
if (baseData != null && baseData.isSuccess) { |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
if (baseData != null && baseData.isSuccess) {} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
///获取桌子信息 |
|
|
|
@ -164,6 +162,8 @@ class _StoreOrderPage extends State<StoreOrderPage>
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
RefreshController refreshController; |
|
|
|
|
|
|
|
|
|
@override |
|
|
|
|
Widget build(BuildContext context) { |
|
|
|
|
return Stack( |
|
|
|
@ -173,14 +173,11 @@ class _StoreOrderPage extends State<StoreOrderPage>
|
|
|
|
|
right: 0, |
|
|
|
|
top: 0, |
|
|
|
|
bottom: 54.h, |
|
|
|
|
child: DefaultTabController( |
|
|
|
|
length: 2, |
|
|
|
|
child: NestedScrollView( |
|
|
|
|
controller: controller, |
|
|
|
|
dragStartBehavior: DragStartBehavior.start, |
|
|
|
|
physics: BouncingScrollPhysics(), |
|
|
|
|
headerSliverBuilder: |
|
|
|
|
(BuildContext context, bool innerBoxIsScrolled) { |
|
|
|
|
headerSliverBuilder: (BuildContext context, bool innerScrolled) { |
|
|
|
|
return [ |
|
|
|
|
SliverOverlapAbsorber( |
|
|
|
|
handle: NestedScrollView.sliverOverlapAbsorberHandleFor( |
|
|
|
@ -319,8 +316,9 @@ class _StoreOrderPage extends State<StoreOrderPage>
|
|
|
|
|
]; |
|
|
|
|
}, |
|
|
|
|
body: TabBarView( |
|
|
|
|
physics: BouncingScrollPhysics(), |
|
|
|
|
physics: NeverScrollableScrollPhysics(), |
|
|
|
|
children: [ |
|
|
|
|
///点餐 |
|
|
|
|
StoreOrderListPage( |
|
|
|
|
widget.arguments, |
|
|
|
|
activitys, |
|
|
|
@ -338,8 +336,18 @@ class _StoreOrderPage extends State<StoreOrderPage>
|
|
|
|
|
], |
|
|
|
|
controller: tabcontroller, |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
),/*SmartRefresher( |
|
|
|
|
controller: refreshController = |
|
|
|
|
RefreshController(initialRefresh: false), |
|
|
|
|
enablePullDown: true, |
|
|
|
|
enablePullUp: false, |
|
|
|
|
header: MyHeader(), |
|
|
|
|
physics: BouncingScrollPhysics(), |
|
|
|
|
onRefresh: () { |
|
|
|
|
queryStoreInfo(); |
|
|
|
|
}, |
|
|
|
|
child: |
|
|
|
|
),*/ |
|
|
|
|
), |
|
|
|
|
Positioned( |
|
|
|
|
bottom: 0, |
|
|
|
@ -446,9 +454,11 @@ class _StoreOrderPage extends State<StoreOrderPage>
|
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
///显示选择人数的弹窗 |
|
|
|
|
showPeopleNum(String tableName) async { |
|
|
|
|
var people = await showDialog( |
|
|
|
|
context: context, |
|
|
|
|
barrierDismissible: false, |
|
|
|
|
builder: (context) { |
|
|
|
|
return PeopleNumView(tableName); |
|
|
|
|
}, |
|
|
|
@ -458,6 +468,8 @@ class _StoreOrderPage extends State<StoreOrderPage>
|
|
|
|
|
setState(() { |
|
|
|
|
this.numberOfPeople = people; |
|
|
|
|
}); |
|
|
|
|
} else { |
|
|
|
|
Navigator.of(context).pop(); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|