|
|
|
|
@ -57,14 +57,14 @@ class _SearchResultWithTabState extends State<SearchResultWithTab> {
|
|
|
|
|
|
|
|
|
|
changePageViewIndex(pageIndex) {
|
|
|
|
|
_controller.jumpToPage(pageIndex);
|
|
|
|
|
scrollController.jumpTo(pageIndex);
|
|
|
|
|
// scrollController.jumpTo(pageIndex);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
|
return AppScaffold(
|
|
|
|
|
appBarTitle: getTitle(),
|
|
|
|
|
appBarTitle: TranslationBase.of(context).bookAppo,
|
|
|
|
|
isShowDecPage: false,
|
|
|
|
|
isShowAppBar: true,
|
|
|
|
|
showNewAppBarTitle: true,
|
|
|
|
|
@ -207,7 +207,37 @@ class _SearchResultWithTabState extends State<SearchResultWithTab> {
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
mHeight(24),
|
|
|
|
|
Padding(
|
|
|
|
|
padding:
|
|
|
|
|
const EdgeInsetsDirectional.fromSTEB(10.0, 18, 0, 24),
|
|
|
|
|
child: Row(
|
|
|
|
|
children: [
|
|
|
|
|
(_currentIndex != 0)
|
|
|
|
|
? InkWell(
|
|
|
|
|
onTap: () {
|
|
|
|
|
handleBackClick();
|
|
|
|
|
},
|
|
|
|
|
child: Padding(
|
|
|
|
|
padding: const EdgeInsetsDirectional.fromSTEB(
|
|
|
|
|
0, 0, 04, 0),
|
|
|
|
|
child: Icon(
|
|
|
|
|
Icons.arrow_back,
|
|
|
|
|
color: Theme.of(context).primaryColor,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
|
: mWidth(24),
|
|
|
|
|
Text(
|
|
|
|
|
getTitle(),
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
fontSize: 18,
|
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
|
color: Colors.black),
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
// mHeight(24),
|
|
|
|
|
Expanded(
|
|
|
|
|
child: PageView(
|
|
|
|
|
physics: NeverScrollableScrollPhysics(),
|
|
|
|
|
@ -320,6 +350,27 @@ class _SearchResultWithTabState extends State<SearchResultWithTab> {
|
|
|
|
|
return "";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void handleBackClick() {
|
|
|
|
|
switch (_currentIndex) {
|
|
|
|
|
case 1:
|
|
|
|
|
selectedHospitalIndex = -1;
|
|
|
|
|
selectedRegion = "";
|
|
|
|
|
_currentIndex = 0;
|
|
|
|
|
changePageViewIndex(0);
|
|
|
|
|
break;
|
|
|
|
|
case 2:
|
|
|
|
|
selectedHospitalIndex = -1;
|
|
|
|
|
_currentIndex = 1;
|
|
|
|
|
changePageViewIndex(1);
|
|
|
|
|
break;
|
|
|
|
|
case 3:
|
|
|
|
|
selectedHospitalIndex = -1;
|
|
|
|
|
_currentIndex = 2;
|
|
|
|
|
changePageViewIndex(2);
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Widget showProgress(
|
|
|
|
|
{String? title,
|
|
|
|
|
String? status,
|
|
|
|
|
|