upadte app's pageRoute.

hmxc
小赖 4 years ago
parent 45f9a6dcfe
commit b32ab1379d

@ -217,7 +217,7 @@ class _ActivitiesDetailsPageState extends State<ActivitiesDetailsPage> {
Widget _inkWellEnterMember(List<String> memberList) { Widget _inkWellEnterMember(List<String> memberList) {
return InkWell( return InkWell(
onTap: () { onTap: () {
Get.to(MemberListPage()); MemberListPage().to();
}, },
child: Container( child: Container(
padding: EdgeInsets.only(bottom: 24.w), padding: EdgeInsets.only(bottom: 24.w),
@ -245,8 +245,7 @@ class _ActivitiesDetailsPageState extends State<ActivitiesDetailsPage> {
child: Text( child: Text(
'已有${320}人参加', '已有${320}人参加',
style: TextStyle( style: TextStyle(
fontSize: BaseStyle.fontSize28, fontSize: BaseStyle.fontSize28, color: ktextPrimary),
color: ktextPrimary),
), ),
), ),
Icon( Icon(

@ -40,7 +40,7 @@ class _CommunityIndexState extends State<CommunityIndex>
} }
void noteCreateRouter() { void noteCreateRouter() {
Get.to(NoteCreatePage()); NoteCreatePage().to();
} }
List<Widget> _listActions() { List<Widget> _listActions() {

@ -80,7 +80,7 @@ class _TopiceDetailPageState extends State<TopiceDetailPage> {
size: 40.sp, size: 40.sp,
), ),
onPressed: () { onPressed: () {
Get.to(NoteCreatePage()); NoteCreatePage().to();
})); }));
} }

@ -29,7 +29,7 @@ class _TopicCardState extends State<TopicCard> {
} }
void topiceDetailRouter(String subtitle, String imagePath) { void topiceDetailRouter(String subtitle, String imagePath) {
Get.to(TopiceDetailPage()); TopiceDetailPage().to();
} }
Row _rowTopic(String title, String subtitle, String imagePath) { Row _rowTopic(String title, String subtitle, String imagePath) {

@ -36,7 +36,7 @@ class ConfirmBottomBar extends StatelessWidget {
Widget _submit(BuildContext context) { Widget _submit(BuildContext context) {
return InkWell( return InkWell(
onTap: () { onTap: () {
Get.to(PayOrderPage()); PayOrderPage().to();
}, },
child: Container( child: Container(
decoration: BoxDecoration( decoration: BoxDecoration(

@ -57,7 +57,7 @@ class _GoodsDetailsPageState extends State<GoodsDetailsPage> {
// ProductSpecs(), // ProductSpecs(),
ProductEvaluate( ProductEvaluate(
fun: () { fun: () {
Get.to(ViewCommentsPage()); ViewCommentsPage().to();
}, },
), ),
ProductDetail( ProductDetail(

@ -85,7 +85,7 @@ class _GoodsAppBarState extends State<GoodsAppBar> {
color: Color(0xff666666), color: Color(0xff666666),
), ),
onPressed: () { onPressed: () {
Get.to(MarketCartPage()); MarketCartPage().to();
}, },
), ),
], ],

@ -8,6 +8,7 @@ import 'package:provider/provider.dart';
import 'package:akuCommunity/provider/cart.dart'; import 'package:akuCommunity/provider/cart.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:akuCommunity/widget/goods_specs_sheet.dart'; import 'package:akuCommunity/widget/goods_specs_sheet.dart';
import 'package:akuCommunity/extensions/page_router.dart';
class GoodsDetailsBottomBar extends StatefulWidget { class GoodsDetailsBottomBar extends StatefulWidget {
final String itemid, itemtitle, itemprice, itempic; final String itemid, itemtitle, itemprice, itempic;
@ -112,7 +113,7 @@ class _GoodsDetailsBottomBarState extends State<GoodsDetailsBottomBar> {
], ],
), ),
onTap: () { onTap: () {
Get.to(MarketCartPage()); MarketCartPage().to();
}, },
), ),
SizedBox(width: 53.w), SizedBox(width: 53.w),

@ -79,8 +79,6 @@ class _GoodsDetoPageState extends State<GoodsDetoPage> {
_refreshController.loadComplete(); _refreshController.loadComplete();
} }
@override @override
void dispose() { void dispose() {
super.dispose(); super.dispose();
@ -131,7 +129,7 @@ class _GoodsDetoPageState extends State<GoodsDetoPage> {
child: BottomButton( child: BottomButton(
title: '新增', title: '新增',
fun: () { fun: () {
Get.to(DetoCreatePage()); DetoCreatePage().to();
}, },
), ),
), ),

@ -58,19 +58,19 @@ class _HomePageState extends State<HomePage>
List<GridButton> _gridList = [ List<GridButton> _gridList = [
GridButton('一键开门', R.ASSETS_ICONS_TOOL_YJKM_PNG, () { GridButton('一键开门', R.ASSETS_ICONS_TOOL_YJKM_PNG, () {
Get.to(OpenDoorPage()); OpenDoorPage().to();
}), }),
GridButton('访客通行', R.ASSETS_ICONS_TOOL_FKYQ_PNG, () { GridButton('访客通行', R.ASSETS_ICONS_TOOL_FKYQ_PNG, () {
Get.to(VisitorAccessPage()); VisitorAccessPage().to();
}), }),
GridButton('报事报修', R.ASSETS_ICONS_TOOL_BSBX_PNG, () { GridButton('报事报修', R.ASSETS_ICONS_TOOL_BSBX_PNG, () {
Get.to(FixedSubmitPage()); FixedSubmitPage().to();
}), }),
GridButton('生活缴费', R.ASSETS_ICONS_TOOL_SHJF_PNG, () { GridButton('生活缴费', R.ASSETS_ICONS_TOOL_SHJF_PNG, () {
Get.to(LifePayPage()); LifePayPage().to();
}), }),
GridButton('业委会', R.ASSETS_ICONS_TOOL_YWH_PNG, () { GridButton('业委会', R.ASSETS_ICONS_TOOL_YWH_PNG, () {
Get.to(IndustryCommitteePage()); IndustryCommitteePage().to();
}), }),
GridButton('建议咨询', R.ASSETS_ICONS_TOOL_JYTS_PNG, () { GridButton('建议咨询', R.ASSETS_ICONS_TOOL_JYTS_PNG, () {
Get.to(ThingsPage( Get.to(ThingsPage(
@ -85,10 +85,10 @@ class _HomePageState extends State<HomePage>
)); ));
}), }),
GridButton('便民电话', R.ASSETS_ICONS_TOOL_BMDH_PNG, () { GridButton('便民电话', R.ASSETS_ICONS_TOOL_BMDH_PNG, () {
Get.to(ConvenientPhonePage()); ConvenientPhonePage().to();
}), }),
GridButton('全部应用', R.ASSETS_ICONS_TOOL_QBYY_PNG, () { GridButton('全部应用', R.ASSETS_ICONS_TOOL_QBYY_PNG, () {
Get.to(TotalApplicationsPage()); TotalApplicationsPage().to();
}), }),
]; ];
@ -181,12 +181,12 @@ class _HomePageState extends State<HomePage>
_buildColButton( _buildColButton(
icon: AntDesign.scan1, icon: AntDesign.scan1,
title: '扫一扫', title: '扫一扫',
onTap: () => Get.to(ScanPage()), onTap: () => ScanPage().to(),
), ),
_buildColButton( _buildColButton(
icon: AntDesign.bells, icon: AntDesign.bells,
title: '消息', title: '消息',
onTap: () => Get.to(MessageCenterPage()), onTap: () => MessageCenterPage().to(),
), ),
16.wb, 16.wb,
], ],

@ -38,7 +38,7 @@ class _PersonalIndexState extends State<PersonalIndex>
with SingleTickerProviderStateMixin { with SingleTickerProviderStateMixin {
List<GridButton> _manageGridList = [ List<GridButton> _manageGridList = [
GridButton('我的房屋', R.ASSETS_ICONS_USER_ICON_WDFW_PNG, () { GridButton('我的房屋', R.ASSETS_ICONS_USER_ICON_WDFW_PNG, () {
Get.to(MineHousePage()); MineHousePage().to();
}), }),
GridButton('我的车位', R.ASSETS_ICONS_USER_ICON_WDCW_PNG, () { GridButton('我的车位', R.ASSETS_ICONS_USER_ICON_WDCW_PNG, () {
Get.to(MineCarPage( Get.to(MineCarPage(
@ -56,20 +56,20 @@ class _PersonalIndexState extends State<PersonalIndex>
)); ));
}), }),
GridButton('我的缴费', R.ASSETS_ICONS_USER_ICON_WDJF_PNG, () { GridButton('我的缴费', R.ASSETS_ICONS_USER_ICON_WDJF_PNG, () {
Get.to(LifePayPage()); LifePayPage().to();
}), }),
GridButton('我的保修', R.ASSETS_ICONS_USER_ICON_WDBX_PNG, () { GridButton('我的保修', R.ASSETS_ICONS_USER_ICON_WDBX_PNG, () {
Get.to(FixedSubmitPage()); FixedSubmitPage().to();
}), }),
GridButton('我的地址', R.ASSETS_ICONS_USER_ICON_WDDZ_PNG, () { GridButton('我的地址', R.ASSETS_ICONS_USER_ICON_WDDZ_PNG, () {
Get.to(AddressPage()); AddressPage().to();
}), }),
GridButton('我的管家', R.ASSETS_ICONS_USER_ICON_WDGJ_PNG, () {}), GridButton('我的管家', R.ASSETS_ICONS_USER_ICON_WDGJ_PNG, () {}),
GridButton('我的访客', R.ASSETS_ICONS_USER_ICON_WDFK_PNG, () { GridButton('我的访客', R.ASSETS_ICONS_USER_ICON_WDFK_PNG, () {
Get.to(VisitorAccessPage()); VisitorAccessPage().to();
}), }),
GridButton('设置', R.ASSETS_ICONS_USER_ICON_SZ_PNG, () { GridButton('设置', R.ASSETS_ICONS_USER_ICON_SZ_PNG, () {
Get.to(SettingsPage()); SettingsPage().to();
}), }),
]; ];

@ -40,22 +40,22 @@ class _PropertyIndexState extends State<PropertyIndex>
with AutomaticKeepAliveClientMixin, SingleTickerProviderStateMixin { with AutomaticKeepAliveClientMixin, SingleTickerProviderStateMixin {
List<GridButton> _gridList = [ List<GridButton> _gridList = [
GridButton('一键开门', R.ASSETS_ICONS_TOOL_YJKM_PNG, () { GridButton('一键开门', R.ASSETS_ICONS_TOOL_YJKM_PNG, () {
Get.to(OpenDoorPage()); OpenDoorPage().to();
}), }),
GridButton('开门码', R.ASSETS_ICONS_TOOL_KMM_PNG, () { GridButton('开门码', R.ASSETS_ICONS_TOOL_KMM_PNG, () {
Get.to(OpeningCodePage()); OpeningCodePage().to();
}), }),
GridButton('访客通行', R.ASSETS_ICONS_TOOL_FKYQ_PNG, () { GridButton('访客通行', R.ASSETS_ICONS_TOOL_FKYQ_PNG, () {
Get.to(VisitorAccessPage()); VisitorAccessPage().to();
}), }),
GridButton('报事报修', R.ASSETS_ICONS_TOOL_BSBX_PNG, () { GridButton('报事报修', R.ASSETS_ICONS_TOOL_BSBX_PNG, () {
Get.to(FixedSubmitPage()); FixedSubmitPage().to();
}), }),
GridButton('生活缴费', R.ASSETS_ICONS_TOOL_SHJF_PNG, () { GridButton('生活缴费', R.ASSETS_ICONS_TOOL_SHJF_PNG, () {
Get.to(LifePayPage()); LifePayPage().to();
}), }),
GridButton('业委会', R.ASSETS_ICONS_TOOL_YWH_PNG, () { GridButton('业委会', R.ASSETS_ICONS_TOOL_YWH_PNG, () {
Get.to(IndustryCommitteePage()); IndustryCommitteePage().to();
}), }),
GridButton('建议咨询', R.ASSETS_ICONS_TOOL_JYTS_PNG, () { GridButton('建议咨询', R.ASSETS_ICONS_TOOL_JYTS_PNG, () {
Get.to(ThingsPage( Get.to(ThingsPage(
@ -70,7 +70,7 @@ class _PropertyIndexState extends State<PropertyIndex>
)); ));
}), }),
GridButton('便民电话', R.ASSETS_ICONS_TOOL_BMDH_PNG, () { GridButton('便民电话', R.ASSETS_ICONS_TOOL_BMDH_PNG, () {
Get.to(ConvenientPhonePage()); ConvenientPhonePage().to();
}), }),
GridButton('活动投票', R.ASSETS_ICONS_TOOL_HDTP_PNG, () { GridButton('活动投票', R.ASSETS_ICONS_TOOL_HDTP_PNG, () {
Get.to(ActivitiesPage( Get.to(ActivitiesPage(
@ -78,7 +78,7 @@ class _PropertyIndexState extends State<PropertyIndex>
)); ));
}), }),
GridButton('物品出户', R.ASSETS_ICONS_TOOL_WPCM_PNG, () { GridButton('物品出户', R.ASSETS_ICONS_TOOL_WPCM_PNG, () {
Get.to(GoodsDetoPage()); GoodsDetoPage().to();
}), }),
GridButton('投诉表扬', R.ASSETS_ICONS_TOOL_TSBY_PNG, () { GridButton('投诉表扬', R.ASSETS_ICONS_TOOL_TSBY_PNG, () {
Get.to(ThingsPage( Get.to(ThingsPage(
@ -93,13 +93,13 @@ class _PropertyIndexState extends State<PropertyIndex>
)); ));
}), }),
GridButton('问卷调查', R.ASSETS_ICONS_TOOL_WJDC_PNG, () { GridButton('问卷调查', R.ASSETS_ICONS_TOOL_WJDC_PNG, () {
Get.to(QuestionnairePage()); QuestionnairePage().to();
}), }),
GridButton('装修管理', R.ASSETS_ICONS_TOOL_ZXGL_PNG, () { GridButton('装修管理', R.ASSETS_ICONS_TOOL_ZXGL_PNG, () {
Get.to(FitupManagePage()); FitupManagePage().to();
}), }),
GridButton('全部应用', R.ASSETS_ICONS_TOOL_QBYY_PNG, () { GridButton('全部应用', R.ASSETS_ICONS_TOOL_QBYY_PNG, () {
Get.to(TotalApplicationsPage()); TotalApplicationsPage().to();
}), }),
]; ];
@override @override

@ -6,6 +6,8 @@ import 'package:akuCommunity/pages/setting_page/invite_page/invite_page.dart';
import 'package:akuCommunity/pages/sign/sign_in_page.dart'; import 'package:akuCommunity/pages/sign/sign_in_page.dart';
import 'package:akuCommunity/provider/user_provider.dart'; import 'package:akuCommunity/provider/user_provider.dart';
import 'package:akuCommunity/widget/bee_scaffold.dart'; import 'package:akuCommunity/widget/bee_scaffold.dart';
import 'package:akuCommunity/extensions/page_router.dart';
import 'package:akuCommunity/extensions/widget_list_ext.dart'; import 'package:akuCommunity/extensions/widget_list_ext.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:flutter/cupertino.dart'; import 'package:flutter/cupertino.dart';
@ -85,7 +87,7 @@ class _SettingsPageState extends State<SettingsPage> {
); );
}, },
) )
: Get.to(SignInPage()); : SignInPage().to();
}, },
child: userProvider.isSigned child: userProvider.isSigned
? Container( ? Container(
@ -144,11 +146,11 @@ class _SettingsPageState extends State<SettingsPage> {
), ),
_buildTile( _buildTile(
title: '关于小蜜蜂智慧社区', title: '关于小蜜蜂智慧社区',
onTap: () => Get.to(AboutPage()), onTap: () => AboutPage().to(),
), ),
_buildTile( _buildTile(
title: '邀请注册', title: '邀请注册',
onTap: () => Get.to(InvitePage()), onTap: () => InvitePage().to(),
), ),
].sepWidget( ].sepWidget(
separate: Divider( separate: Divider(
@ -166,7 +168,7 @@ class _SettingsPageState extends State<SettingsPage> {
), ),
_buildTile( _buildTile(
title: '意见反馈', title: '意见反馈',
onTap: () => Get.to(FeedBackPage()), onTap: () => FeedBackPage().to(),
), ),
_buildTile( _buildTile(
title: '账号管理', title: '账号管理',

@ -127,7 +127,7 @@ class _TotalApplicationsPageState extends State<TotalApplicationsPage> {
).to; ).to;
break; break;
case '一键开门': case '一键开门':
Get.to(OpenDoorPage()); OpenDoorPage().to();
break; break;
case '开门码': case '开门码':
OpeningCodePage().to; OpeningCodePage().to;

@ -1,7 +1,8 @@
import 'package:akuCommunity/utils/logger_card.dart'; import 'package:akuCommunity/utils/logger_card.dart';
import 'package:akuCommunity/utils/logger_data.dart'; import 'package:akuCommunity/utils/logger_data.dart';
import 'package:akuCommunity/extensions/page_router.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:get/get.dart';
class LoggerFAB extends StatefulWidget { class LoggerFAB extends StatefulWidget {
static openLogger(BuildContext context) { static openLogger(BuildContext context) {
@ -52,7 +53,7 @@ class _LoggerFABState extends State<LoggerFAB> {
setState(() {}); setState(() {});
}, },
onTap: () { onTap: () {
Get.to(LoggerView()); LoggerView().to();
}, },
child: Container( child: Container(
decoration: BoxDecoration( decoration: BoxDecoration(

Loading…
Cancel
Save