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

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

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

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

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

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

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

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

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

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

@ -38,7 +38,7 @@ class _PersonalIndexState extends State<PersonalIndex>
with SingleTickerProviderStateMixin {
List<GridButton> _manageGridList = [
GridButton('我的房屋', R.ASSETS_ICONS_USER_ICON_WDFW_PNG, () {
Get.to(MineHousePage());
MineHousePage().to();
}),
GridButton('我的车位', R.ASSETS_ICONS_USER_ICON_WDCW_PNG, () {
Get.to(MineCarPage(
@ -56,20 +56,20 @@ class _PersonalIndexState extends State<PersonalIndex>
));
}),
GridButton('我的缴费', R.ASSETS_ICONS_USER_ICON_WDJF_PNG, () {
Get.to(LifePayPage());
LifePayPage().to();
}),
GridButton('我的保修', R.ASSETS_ICONS_USER_ICON_WDBX_PNG, () {
Get.to(FixedSubmitPage());
FixedSubmitPage().to();
}),
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_WDFK_PNG, () {
Get.to(VisitorAccessPage());
VisitorAccessPage().to();
}),
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 {
List<GridButton> _gridList = [
GridButton('一键开门', R.ASSETS_ICONS_TOOL_YJKM_PNG, () {
Get.to(OpenDoorPage());
OpenDoorPage().to();
}),
GridButton('开门码', R.ASSETS_ICONS_TOOL_KMM_PNG, () {
Get.to(OpeningCodePage());
OpeningCodePage().to();
}),
GridButton('访客通行', R.ASSETS_ICONS_TOOL_FKYQ_PNG, () {
Get.to(VisitorAccessPage());
VisitorAccessPage().to();
}),
GridButton('报事报修', R.ASSETS_ICONS_TOOL_BSBX_PNG, () {
Get.to(FixedSubmitPage());
FixedSubmitPage().to();
}),
GridButton('生活缴费', R.ASSETS_ICONS_TOOL_SHJF_PNG, () {
Get.to(LifePayPage());
LifePayPage().to();
}),
GridButton('业委会', R.ASSETS_ICONS_TOOL_YWH_PNG, () {
Get.to(IndustryCommitteePage());
IndustryCommitteePage().to();
}),
GridButton('建议咨询', R.ASSETS_ICONS_TOOL_JYTS_PNG, () {
Get.to(ThingsPage(
@ -70,7 +70,7 @@ class _PropertyIndexState extends State<PropertyIndex>
));
}),
GridButton('便民电话', R.ASSETS_ICONS_TOOL_BMDH_PNG, () {
Get.to(ConvenientPhonePage());
ConvenientPhonePage().to();
}),
GridButton('活动投票', R.ASSETS_ICONS_TOOL_HDTP_PNG, () {
Get.to(ActivitiesPage(
@ -78,7 +78,7 @@ class _PropertyIndexState extends State<PropertyIndex>
));
}),
GridButton('物品出户', R.ASSETS_ICONS_TOOL_WPCM_PNG, () {
Get.to(GoodsDetoPage());
GoodsDetoPage().to();
}),
GridButton('投诉表扬', R.ASSETS_ICONS_TOOL_TSBY_PNG, () {
Get.to(ThingsPage(
@ -93,13 +93,13 @@ class _PropertyIndexState extends State<PropertyIndex>
));
}),
GridButton('问卷调查', R.ASSETS_ICONS_TOOL_WJDC_PNG, () {
Get.to(QuestionnairePage());
QuestionnairePage().to();
}),
GridButton('装修管理', R.ASSETS_ICONS_TOOL_ZXGL_PNG, () {
Get.to(FitupManagePage());
FitupManagePage().to();
}),
GridButton('全部应用', R.ASSETS_ICONS_TOOL_QBYY_PNG, () {
Get.to(TotalApplicationsPage());
TotalApplicationsPage().to();
}),
];
@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/provider/user_provider.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:flutter_screenutil/flutter_screenutil.dart';
import 'package:flutter/cupertino.dart';
@ -85,7 +87,7 @@ class _SettingsPageState extends State<SettingsPage> {
);
},
)
: Get.to(SignInPage());
: SignInPage().to();
},
child: userProvider.isSigned
? Container(
@ -144,11 +146,11 @@ class _SettingsPageState extends State<SettingsPage> {
),
_buildTile(
title: '关于小蜜蜂智慧社区',
onTap: () => Get.to(AboutPage()),
onTap: () => AboutPage().to(),
),
_buildTile(
title: '邀请注册',
onTap: () => Get.to(InvitePage()),
onTap: () => InvitePage().to(),
),
].sepWidget(
separate: Divider(
@ -166,7 +168,7 @@ class _SettingsPageState extends State<SettingsPage> {
),
_buildTile(
title: '意见反馈',
onTap: () => Get.to(FeedBackPage()),
onTap: () => FeedBackPage().to(),
),
_buildTile(
title: '账号管理',

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

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

Loading…
Cancel
Save