format&sort code

hmxc
张萌 3 years ago
parent 7d2cbdc4b7
commit ce6165d9c3

@ -1,6 +1,5 @@
// import 'package:aku_community/widget/bee_scaffold.dart';
import 'package:aku_community/ui/manager/house_keeping/house_keeping_page.dart';
import 'package:flutter/material.dart';
import 'package:aku_community/const/resource.dart';
@ -24,6 +23,7 @@ import 'package:aku_community/ui/community/activity/activity_list_page.dart';
import 'package:aku_community/ui/community/facility/facility_appointment_page.dart';
import 'package:aku_community/ui/home/application/all_application.dart';
import 'package:aku_community/ui/manager/advice/advice_page.dart';
import 'package:aku_community/ui/manager/house_keeping/house_keeping_page.dart';
import 'package:aku_community/ui/manager/questionnaire/questionnaire_page.dart';
import 'package:aku_community/ui/profile/car/car_manage_page.dart';
import 'package:aku_community/ui/profile/car_parking/car_parking_page.dart';

@ -6,13 +6,12 @@
import 'package:device_info_plus_web/device_info_plus_web.dart';
import 'package:firebase_core_web/firebase_core_web.dart';
import 'package:flutter_web_plugins/flutter_web_plugins.dart';
import 'package:image_picker_for_web/image_picker_for_web.dart';
import 'package:package_info_plus_web/package_info_plus_web.dart';
import 'package:shared_preferences_web/shared_preferences_web.dart';
import 'package:url_launcher_web/url_launcher_web.dart';
import 'package:flutter_web_plugins/flutter_web_plugins.dart';
// ignore: public_member_api_docs
void registerPlugins(Registrar registrar) {
DeviceInfoPlusPlugin.registerWith(registrar);

@ -1,6 +1,7 @@
import 'package:equatable/equatable.dart';
import 'package:flustars/flustars.dart';
import 'package:json_annotation/json_annotation.dart';
part 'lease_fee_list_model.g.dart';
@JsonSerializable()

@ -1,8 +1,10 @@
import 'package:flutter/material.dart';
import 'package:equatable/equatable.dart';
import 'package:json_annotation/json_annotation.dart';
import 'package:aku_community/model/common/img_model.dart';
import 'package:flutter/material.dart';
import 'package:json_annotation/json_annotation.dart';
part 'house_keeping_list_model.g.dart';
@JsonSerializable()
@ -101,9 +103,9 @@ class HouseKeepingListModel extends Equatable {
case 1:
return '未完成';
case 2:
return '已完成';
return '已完成';
default:
return '未知';
return '未知';
}
}

@ -1,5 +1,6 @@
import 'package:equatable/equatable.dart';
import 'package:json_annotation/json_annotation.dart';
part 'house_keeping_process_model.g.dart';
@JsonSerializable()

@ -1,5 +1,3 @@
import 'package:aku_community/pages/life_pay/life_pre_pay_page.dart';
import 'package:aku_community/widget/others/user_tool.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
@ -13,6 +11,7 @@ import 'package:aku_community/base/base_style.dart';
import 'package:aku_community/constants/api.dart';
import 'package:aku_community/models/life_pay/life_pay_list_model.dart';
import 'package:aku_community/pages/life_pay/life_pay_record_page.dart';
import 'package:aku_community/pages/life_pay/life_pre_pay_page.dart';
import 'package:aku_community/pages/life_pay/pay_finish_page.dart';
import 'package:aku_community/pages/life_pay/pay_util.dart';
import 'package:aku_community/pages/life_pay/widget/life_pay_detail_page.dart';
@ -26,6 +25,7 @@ import 'package:aku_community/widget/bee_divider.dart';
import 'package:aku_community/widget/bee_scaffold.dart';
import 'package:aku_community/widget/buttons/bee_check_radio.dart';
import 'package:aku_community/widget/others/house_head_card.dart';
import 'package:aku_community/widget/others/user_tool.dart';
class LifePayPage extends StatefulWidget {
LifePayPage({Key? key}) : super(key: key);
@ -245,7 +245,9 @@ class _LifePayPageState extends State<LifePayPage> {
side: BorderSide(color: Color(0xFF979797), width: 1.w)),
color: Colors.white,
onPressed: () {
Get.to(() => LifePrePayPage(prePay: _prePrice,));
Get.to(() => LifePrePayPage(
prePay: _prePrice,
));
},
child: '预缴充值'.text.size(28.sp).black.make(),
)

@ -1,7 +1,16 @@
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:bot_toast/bot_toast.dart';
import 'package:get/get.dart';
import 'package:power_logger/power_logger.dart';
import 'package:aku_community/base/base_style.dart';
import 'package:aku_community/constants/api.dart';
import 'package:aku_community/pages/life_pay/pay_finish_page.dart';
import 'package:aku_community/pages/life_pay/pay_util.dart';
import 'package:aku_community/utils/headers.dart';
import 'package:aku_community/utils/network/base_model.dart';
import 'package:aku_community/utils/network/net_util.dart';
import 'package:aku_community/widget/bee_divider.dart';
@ -10,13 +19,6 @@ import 'package:aku_community/widget/bottom_sheets/pay_mothod_bottom_sheet.dart'
import 'package:aku_community/widget/buttons/bottom_button.dart';
import 'package:aku_community/widget/others/house_head_card.dart';
import 'package:aku_community/widget/others/user_tool.dart';
import 'package:bot_toast/bot_toast.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:aku_community/utils/headers.dart';
import 'package:flutter/services.dart';
import 'package:get/get.dart';
import 'package:power_logger/power_logger.dart';
class LifePrePayPage extends StatefulWidget {
final double prePay;
@ -166,7 +168,7 @@ class _LifePrePayPageState extends State<LifePrePayPage> {
Get.off(() => PayFinishPage());
}
} else {
BotToast.showText(text: baseModel.message??"");
BotToast.showText(text: baseModel.message ?? "");
}
} catch (e) {
LoggerData.addData(e);

@ -40,7 +40,7 @@ class _LifePayDetailPageState extends State<LifePayDetailPage> {
element.detailedVoList.forEach((element) {
element.detailsVoList.forEach((element) {
count++;
price += (element.paymentPrice+element.overdueFine);
price += (element.paymentPrice + element.overdueFine);
ids.add(element.id);
});
});
@ -74,7 +74,7 @@ class _LifePayDetailPageState extends State<LifePayDetailPage> {
? '${widget.year}上半年'.text.black.size(28.sp).make()
: '${widget.year}下半年'.text.black.size(28.sp).make(),
Spacer(),
'¥${(model.paymentPrice+model.overdueFine).toStringAsFixed(2)}'
'¥${(model.paymentPrice + model.overdueFine).toStringAsFixed(2)}'
.text
.color(kDangerColor)
.size(28.sp)
@ -119,7 +119,7 @@ class _LifePayDetailPageState extends State<LifePayDetailPage> {
12.w.widthBox,
model.month.toString().text.size(26.sp).black.make(),
Spacer(),
'¥${(model.paymentPrice+model.overdueFine).toStringAsFixed(2)}'
'¥${(model.paymentPrice + model.overdueFine).toStringAsFixed(2)}'
.text
.size(26.sp)
.black

@ -1,7 +1,5 @@
import 'dart:io';
import 'package:aku_community/widget/buttons/bee_check_button.dart';
import 'package:aku_community/widget/others/house_head_card.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
@ -22,7 +20,9 @@ import 'package:aku_community/utils/headers.dart';
import 'package:aku_community/utils/network/base_model.dart';
import 'package:aku_community/utils/network/net_util.dart';
import 'package:aku_community/widget/bee_scaffold.dart';
import 'package:aku_community/widget/buttons/bee_check_button.dart';
import 'package:aku_community/widget/buttons/bottom_button.dart';
import 'package:aku_community/widget/others/house_head_card.dart';
import 'package:aku_community/widget/picker/grid_image_picker.dart';
class AddFixedSubmitPage extends StatefulWidget {

@ -1,7 +1,16 @@
import 'dart:io';
import 'package:flutter/material.dart';
import 'package:bot_toast/bot_toast.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart';
import 'package:power_logger/power_logger.dart';
import 'package:velocity_x/velocity_x.dart';
import 'package:aku_community/base/base_style.dart';
import 'package:aku_community/constants/api.dart';
import 'package:aku_community/extensions/widget_list_ext.dart';
import 'package:aku_community/ui/manager/house_keeping/house_keeping_func.dart';
import 'package:aku_community/ui/manager/house_keeping/house_keeping_submit_page.dart';
import 'package:aku_community/utils/network/net_util.dart';
@ -11,13 +20,6 @@ import 'package:aku_community/widget/buttons/bottom_button.dart';
import 'package:aku_community/widget/others/house_head_card.dart';
import 'package:aku_community/widget/others/user_tool.dart';
import 'package:aku_community/widget/picker/grid_image_picker.dart';
import 'package:bot_toast/bot_toast.dart';
import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:power_logger/power_logger.dart';
import 'package:velocity_x/velocity_x.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:aku_community/extensions/widget_list_ext.dart';
class AddHouseKeepingPage extends StatefulWidget {
AddHouseKeepingPage({Key? key}) : super(key: key);

@ -1,13 +1,15 @@
import 'dart:io';
import 'package:aku_community/base/base_style.dart';
import 'package:aku_community/widget/bee_scaffold.dart';
import 'package:aku_community/widget/picker/grid_image_picker.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:aku_community/utils/headers.dart';
import 'package:flutter_rating_bar/flutter_rating_bar.dart';
import 'package:aku_community/base/base_style.dart';
import 'package:aku_community/utils/headers.dart';
import 'package:aku_community/widget/bee_scaffold.dart';
import 'package:aku_community/widget/picker/grid_image_picker.dart';
class EvaluatePage extends StatefulWidget {
EvaluatePage({Key? key}) : super(key: key);

@ -1,3 +1,11 @@
import 'package:flutter/material.dart';
import 'package:bot_toast/bot_toast.dart';
import 'package:flustars/flustars.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart';
import 'package:velocity_x/velocity_x.dart';
import 'package:aku_community/base/base_style.dart';
import 'package:aku_community/const/resource.dart';
import 'package:aku_community/constants/api.dart';
@ -8,12 +16,6 @@ import 'package:aku_community/ui/manager/house_keeping/house_keeping_func.dart';
import 'package:aku_community/utils/headers.dart';
import 'package:aku_community/widget/buttons/card_bottom_button.dart';
import 'package:aku_community/widget/others/aku_chip_box.dart';
import 'package:bot_toast/bot_toast.dart';
import 'package:flustars/flustars.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart';
import 'package:velocity_x/velocity_x.dart';
class HouseKeepingCard extends StatelessWidget {
final HouseKeepingListModel model;

@ -1,9 +1,7 @@
import 'package:aku_community/ui/manager/house_keeping/evaluate_page.dart';
import 'package:aku_community/widget/bee_divider.dart';
import 'package:aku_community/widget/buttons/bottom_button.dart';
import 'package:flustars/flustars.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flustars/flustars.dart';
import 'package:flutter_rating_bar/flutter_rating_bar.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart';
@ -13,8 +11,11 @@ import 'package:aku_community/base/base_style.dart';
import 'package:aku_community/const/resource.dart';
import 'package:aku_community/models/house_keeping/house_keeping_list_model.dart';
import 'package:aku_community/models/house_keeping/house_keeping_process_model.dart';
import 'package:aku_community/ui/manager/house_keeping/evaluate_page.dart';
import 'package:aku_community/utils/headers.dart';
import 'package:aku_community/widget/bee_divider.dart';
import 'package:aku_community/widget/bee_scaffold.dart';
import 'package:aku_community/widget/buttons/bottom_button.dart';
import 'package:aku_community/widget/views/bee_grid_image_view.dart';
class HouseKeepingDetailPage extends StatefulWidget {

@ -1,8 +1,9 @@
import 'package:bot_toast/bot_toast.dart';
import 'package:aku_community/constants/api.dart';
import 'package:aku_community/models/house_keeping/house_keeping_process_model.dart';
import 'package:aku_community/utils/network/base_model.dart';
import 'package:aku_community/utils/network/net_util.dart';
import 'package:bot_toast/bot_toast.dart';
class HouseKeepingFunc {
///

@ -1,12 +1,14 @@
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart';
import 'package:velocity_x/velocity_x.dart';
import 'package:aku_community/ui/manager/house_keeping/add_house_keeping_page.dart';
import 'package:aku_community/ui/manager/house_keeping/house_keeping_view.dart';
import 'package:aku_community/widget/bee_scaffold.dart';
import 'package:aku_community/widget/buttons/bottom_button.dart';
import 'package:aku_community/widget/tab_bar/bee_tab_bar.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart';
import 'package:velocity_x/velocity_x.dart';
class HouseKeepingPage extends StatefulWidget {
HouseKeepingPage({Key? key}) : super(key: key);

@ -1,10 +1,12 @@
import 'package:aku_community/base/base_style.dart';
import 'package:aku_community/widget/bee_scaffold.dart';
import 'package:aku_community/widget/others/finish_result_image.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:velocity_x/velocity_x.dart';
import 'package:aku_community/base/base_style.dart';
import 'package:aku_community/widget/bee_scaffold.dart';
import 'package:aku_community/widget/others/finish_result_image.dart';
class HouseKeepingSubmitPage extends StatefulWidget {
HouseKeepingSubmitPage({Key? key}) : super(key: key);

@ -1,12 +1,14 @@
import 'package:aku_community/constants/api.dart';
import 'package:aku_community/models/house_keeping/house_keeping_list_model.dart';
import 'package:aku_community/pages/things_page/widget/bee_list_view.dart';
import 'package:aku_community/ui/manager/house_keeping/house_keeping_card.dart';
import 'package:flutter/material.dart';
import 'package:flutter_easyrefresh/easy_refresh.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:velocity_x/velocity_x.dart';
import 'package:aku_community/constants/api.dart';
import 'package:aku_community/models/house_keeping/house_keeping_list_model.dart';
import 'package:aku_community/pages/things_page/widget/bee_list_view.dart';
import 'package:aku_community/ui/manager/house_keeping/house_keeping_card.dart';
class HouseKeepingView extends StatefulWidget {
final int index;
HouseKeepingView({Key? key, required this.index}) : super(key: key);

@ -6,12 +6,12 @@ import 'package:get/get.dart';
import 'package:velocity_x/velocity_x.dart';
import 'package:aku_community/base/base_style.dart';
import 'package:aku_community/extensions/widget_list_ext.dart';
import 'package:aku_community/ui/profile/house/house_func.dart';
import 'package:aku_community/widget/bee_scaffold.dart';
import 'package:aku_community/widget/buttons/bottom_button.dart';
import 'package:aku_community/widget/others/bee_input_row.dart';
import 'package:aku_community/widget/others/house_head_card.dart';
import 'package:aku_community/extensions/widget_list_ext.dart';
class RefundBondPage extends StatefulWidget {
final String name;

@ -73,8 +73,7 @@ class _RefundBondResultPageState extends State<RefundBondResultPage> {
date: widget.date,
id: widget.id));
},
child:
'重新申请'.text.color(ktextPrimary).size(36.sp).make(),
child: '重新申请'.text.color(ktextPrimary).size(36.sp).make(),
)
: SizedBox(),
],

@ -1,6 +1,5 @@
import 'dart:io';
import 'package:aku_community/widget/views/doc_view.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
@ -12,6 +11,7 @@ import 'package:open_file/open_file.dart';
import 'package:velocity_x/velocity_x.dart';
import 'package:aku_community/base/base_style.dart';
import 'package:aku_community/extensions/widget_list_ext.dart';
import 'package:aku_community/ui/profile/house/house_func.dart';
import 'package:aku_community/widget/bee_scaffold.dart';
import 'package:aku_community/widget/buttons/bottom_button.dart';
@ -20,7 +20,7 @@ import 'package:aku_community/widget/others/house_head_card.dart';
import 'package:aku_community/widget/others/upload_widget.dart';
import 'package:aku_community/widget/others/user_tool.dart';
import 'package:aku_community/widget/picker/bee_date_picker.dart';
import 'package:aku_community/extensions/widget_list_ext.dart';
import 'package:aku_community/widget/views/doc_view.dart';
class UploadEmptyListPage extends StatefulWidget {
UploadEmptyListPage({Key? key}) : super(key: key);

@ -1,4 +1,3 @@
import 'package:aku_community/ui/profile/house/lease_pay_query/lease_pay_query_page.dart';
import 'package:flutter/material.dart';
import 'package:bot_toast/bot_toast.dart';
@ -21,6 +20,7 @@ import 'package:aku_community/ui/profile/house/contract_stop/submit_finish_page.
import 'package:aku_community/ui/profile/house/house_card.dart';
import 'package:aku_community/ui/profile/house/house_func.dart';
import 'package:aku_community/ui/profile/house/identify_selection_page.dart';
import 'package:aku_community/ui/profile/house/lease_pay_query/lease_pay_query_page.dart';
import 'package:aku_community/ui/profile/house/lease_relevation/tenant_house_list_page.dart';
import 'package:aku_community/ui/profile/house/my_house_list.dart';
import 'package:aku_community/utils/headers.dart';
@ -208,7 +208,9 @@ class _HouseOwnersPageState extends State<HouseOwnersPage> {
crossAxisSpacing: 32.w,
children: [
_cardBuild(R.ASSETS_ICONS_PAY_PNG, '缴费查询', '查看租金及保证金情况', () {
Get.to(() => LeasePayQueryPage(id:UserTool.appProveider.selectedHouse!.sysLeaseId!,));
Get.to(() => LeasePayQueryPage(
id: UserTool.appProveider.selectedHouse!.sysLeaseId!,
));
}),
_cardBuild(R.ASSETS_ICONS_CHANGE_PNG, '合同变更', '变更合同信息、重新签约', () {}),
_cardBuild(R.ASSETS_ICONS_CONTRACT_PNG, '合同续签', '到期前线上办理续签手续', () {}),
@ -243,7 +245,7 @@ class _HouseOwnersPageState extends State<HouseOwnersPage> {
Get.to(() => PayResultPage(
name: model.name,
bond: model.margin.toDouble(),
date: DateUtil.formatDateStr(model.marginPayDate??''),
date: DateUtil.formatDateStr(model.marginPayDate ?? ''),
id: model.id,
));
break;
@ -254,7 +256,7 @@ class _HouseOwnersPageState extends State<HouseOwnersPage> {
status: model.status,
name: model.name,
bond: model.margin.toDouble(),
date: DateUtil.formatDateStr(model.marginPayDate??''),
date: DateUtil.formatDateStr(model.marginPayDate ?? ''),
id: model.id,
));
break;

@ -1,19 +1,21 @@
import 'package:flutter/material.dart';
import 'package:bot_toast/bot_toast.dart';
import 'package:flustars/flustars.dart';
import 'package:get/get.dart';
import 'package:power_logger/power_logger.dart';
import 'package:aku_community/base/base_style.dart';
import 'package:aku_community/constants/api.dart';
import 'package:aku_community/models/house/lease_fee_list_model.dart';
import 'package:aku_community/pages/life_pay/pay_finish_page.dart';
import 'package:aku_community/pages/life_pay/pay_util.dart';
import 'package:aku_community/ui/profile/house/house_func.dart';
import 'package:aku_community/utils/headers.dart';
import 'package:aku_community/widget/bee_divider.dart';
import 'package:aku_community/widget/bee_scaffold.dart';
import 'package:aku_community/widget/buttons/bottom_button.dart';
import 'package:aku_community/widget/others/user_tool.dart';
import 'package:bot_toast/bot_toast.dart';
import 'package:flustars/flustars.dart';
import 'package:flutter/material.dart';
import 'package:aku_community/utils/headers.dart';
import 'package:get/get.dart';
import 'package:power_logger/power_logger.dart';
class LeasePayQueryDetailPage extends StatefulWidget {
final LeaseFeeListModel model;

@ -1,3 +1,12 @@
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flustars/flustars.dart';
import 'package:flutter_easyrefresh/easy_refresh.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart';
import 'package:velocity_x/velocity_x.dart';
import 'package:aku_community/base/base_style.dart';
import 'package:aku_community/constants/api.dart';
import 'package:aku_community/models/house/lease_fee_list_model.dart';
@ -8,13 +17,6 @@ import 'package:aku_community/utils/network/net_util.dart';
import 'package:aku_community/widget/bee_divider.dart';
import 'package:aku_community/widget/bee_scaffold.dart';
import 'package:aku_community/widget/others/user_tool.dart';
import 'package:flustars/flustars.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_easyrefresh/easy_refresh.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart';
import 'package:velocity_x/velocity_x.dart';
class LeasePayQueryPage extends StatefulWidget {
final int id;

@ -1,7 +1,7 @@
import 'package:bot_toast/bot_toast.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:bot_toast/bot_toast.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart';
import 'package:power_logger/power_logger.dart';

@ -18,7 +18,7 @@ class PayMethodBottomSheet extends StatelessWidget {
'支付方式'.text.size(32.sp).bold.color(ktextPrimary).isIntrinsic.make(),
actions: [
CupertinoActionSheetAction(
onPressed:()=> onChoose('支付宝'),
onPressed: () => onChoose('支付宝'),
child:
'支付宝'.text.size(32.sp).color(ktextPrimary).isIntrinsic.make())
],

@ -9,7 +9,11 @@ class BeeCheckButton<T> extends StatefulWidget {
final T groupValue;
final String title;
BeeCheckButton(
{Key? key, required this.onChange, required this.value, required this.groupValue, required this.title})
{Key? key,
required this.onChange,
required this.value,
required this.groupValue,
required this.title})
: super(key: key);
@override

@ -1,4 +1,5 @@
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
class AkuChipBox extends StatelessWidget {

@ -8,6 +8,7 @@ import 'package:velocity_x/velocity_x.dart';
import 'package:aku_community/provider/app_provider.dart';
import 'package:aku_community/ui/profile/house/pick_my_house_page.dart';
import 'package:aku_community/utils/headers.dart';
@Deprecated('use HouseHeadCard instead')
class BeeHousePicker extends StatelessWidget {
const BeeHousePicker({Key? key}) : super(key: key);

Loading…
Cancel
Save