From d1b4e43b1b33512573bdb6c943625d523e467e71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E8=90=8C?= <494089941@qq.com> Date: Fri, 13 May 2022 16:10:14 +0800 Subject: [PATCH] dart fix --apply --- lib/constants/application_objects.dart | 1 - lib/main.dart | 1 - .../community_introduce_page.dart | 1 - .../event_activity/event_voting_page.dart | 1 - .../geographic_information_page.dart | 17 ----------------- .../industry_committee_page.dart | 4 ---- .../life_pay_bill_page.dart | 1 - lib/pages/life_pay/life_pay_record_page.dart | 1 - lib/pages/life_pay/pay_util.dart | 1 - .../announce/announce_card.dart | 1 - .../message_center_page.dart | 1 - .../reply/replay_view.dart | 1 - .../thumbs_up/thumbs_up_card.dart | 1 - .../thumbs_up/thumbs_up_view.dart | 1 - .../personal/address/address_list_page.dart | 1 - .../personal/address/address_selector.dart | 2 +- lib/pages/personal/address/editView.dart | 2 +- lib/pages/personal/item_my_address.dart | 3 +-- .../wallet/input_pay_password_dialog.dart | 3 --- lib/pages/personal/wallet/pay_way_dialog.dart | 1 - .../set_pay_password_verify_dialog.dart | 2 -- .../wallet/wallet_trade_record_page.dart | 1 - .../share_pay_page/share_record_page.dart | 1 - lib/pages/sign/login/other_login_page.dart | 1 - lib/pages/splash/splash_page.dart | 5 ----- lib/pages/tab_navigator.dart | 1 - .../widget/fixed_evaluate_page.dart | 1 - .../visitor_access_page.dart | 1 - .../activity/activity_detail_page.dart | 2 -- .../activity/activity_detail_page_old.dart | 3 --- .../topic/topic_community_view.dart | 1 - .../topic/topic_sliver_header.dart | 1 - .../community_views/widgets/chat_card.dart | 1 - .../widgets/chat_card_detail.dart | 3 +-- .../community_views/widgets/send_a_chat.dart | 1 - .../facility/facility_appointment_card.dart | 1 - .../facility/facility_appointment_view.dart | 1 - .../facility_order_date_list_page.dart | 1 - .../facility/facility_preorder_page.dart | 3 --- .../facility/facility_type_card.dart | 1 - .../facility/facility_type_detail_card.dart | 2 -- .../facility/facility_type_detail_page.dart | 4 ---- .../facility/pick_facility_page.dart | 9 --------- lib/ui/community/notice/notice_card.dart | 1 - .../task/dialogs/task_cancel_dialog.dart | 1 - .../task/hall/hall_card.dart | 1 - .../task/hall/hall_detail_page.dart | 1 - .../dialogs/work_order_progress_dialog.dart | 1 - .../work_order/team_list_page.dart | 1 + lib/ui/home/application/all_application.dart | 3 --- lib/ui/home/home_title.dart | 2 -- .../public_infomation_card.dart | 1 - .../advice/advice_add_comment_page.dart | 2 -- lib/ui/manager/advice/advice_card.dart | 1 - lib/ui/manager/advice/advice_detail_page.dart | 2 -- .../manager/advice/advice_evaluate_page.dart | 1 - lib/ui/manager/advice/advice_house_page.dart | 6 ------ lib/ui/manager/advice/advice_page.dart | 1 - lib/ui/manager/advice/new_advice_page.dart | 5 ----- .../house_keeping/house_keeping_card.dart | 3 --- .../house_keeping_detail_page.dart | 4 ---- .../house_keeping/house_keeping_page.dart | 1 - .../house_keeping/house_keeping_view.dart | 1 - .../questionnaire/questionnaire_page.dart | 2 -- .../questionnaire_truefalse.dart | 1 - .../questionnaire/submit_complish_page.dart | 2 -- lib/ui/manager/visitor/visitor_list_item.dart | 1 - .../visitor/visitor_passport_page.dart | 5 +---- .../manager/visitor/visitor_record_page.dart | 1 - lib/ui/market/category/new_category_page.dart | 1 - lib/ui/market/order/logistics_page.dart | 2 -- lib/ui/market/order/order_card.dart | 2 -- lib/ui/market/order/order_detail_page.dart | 3 --- .../search/good_detail_bottomSheet.dart | 1 - lib/ui/market/search/search_goods_page.dart | 3 +-- lib/ui/market/search/submit_order_page.dart | 3 --- .../search/submit_order_page_normal.dart | 1 - lib/ui/market/shop_car/shop_car_page.dart | 19 ++++++------------- lib/ui/market/widget/market_app_bar.dart | 1 - lib/ui/market/widget/market_success_page.dart | 2 -- lib/ui/profile/house/add_house_page.dart | 2 -- .../contract_stop/pay_surplus_rent_page.dart | 1 - lib/ui/profile/house/house_card.dart | 1 - lib/ui/profile/house/house_func.dart | 1 - lib/ui/profile/house/house_owners_page.dart | 2 -- .../lease_pay_query/lease_pay_query_page.dart | 2 -- .../house_information_check_page.dart | 3 --- .../lease_relevation/lease_house_card.dart | 3 --- .../supplement_information_page.dart | 1 - .../tenant_house_list_page.dart | 1 - .../upload_contracts_page.dart | 1 - lib/ui/profile/house/pick_role_page.dart | 1 - lib/ui/profile/new_house/member_view.dart | 1 - lib/ui/profile/new_house/my_family_page.dart | 1 - lib/ui/profile/new_house/my_house_page.dart | 1 - lib/ui/search/bee_search.dart | 1 - lib/utils/application_utils.dart | 1 + lib/utils/login_util.dart | 1 - lib/utils/network/net_util.dart | 1 - lib/utils/text_utils.dart | 4 ++-- lib/utils/websocket/tips_dialog.dart | 1 - lib/widget/animated/OverlayWidget.dart | 2 -- .../pay_mothod_bottom_sheet.dart | 1 - lib/widget/buttons/column_action_button.dart | 1 - lib/widget/common_input.dart | 1 - lib/widget/line/vertical_line_painter.dart | 1 - lib/widget/others/house_head_card.dart | 3 --- lib/widget/others/rectIndicator.dart | 4 +--- lib/widget/picker/bee_date_picker.dart | 1 - lib/widget/picker/bee_day_picker.dart | 5 ----- lib/widget/picker/bee_house_picker.dart | 1 - lib/widget/picker/bee_image_picker.dart | 1 - lib/widget/picker/bee_month_pick_body.dart | 7 ------- lib/widget/views/application_box.dart | 2 -- lib/widget/views/application_view.dart | 1 - lib/widget/views/bee_hor_image_view.dart | 1 - lib/widget/views/horizontal_image_view.dart | 3 --- 117 files changed, 17 insertions(+), 230 deletions(-) diff --git a/lib/constants/application_objects.dart b/lib/constants/application_objects.dart index 05a1a42d..59ba4bc0 100644 --- a/lib/constants/application_objects.dart +++ b/lib/constants/application_objects.dart @@ -2,7 +2,6 @@ import 'package:flutter/material.dart'; -import 'package:bot_toast/bot_toast.dart'; import 'package:get/get.dart'; import 'package:aku_new_community/const/resource.dart'; diff --git a/lib/main.dart b/lib/main.dart index bedb81e9..46763728 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -7,7 +7,6 @@ import 'package:get/get.dart'; import 'package:provider/provider.dart'; import 'package:aku_new_community/constants/app_theme.dart'; -import 'package:aku_new_community/main_initialize.dart'; import 'package:aku_new_community/pages/splash/splash_page.dart'; import 'package:aku_new_community/provider/app_provider.dart'; import 'package:aku_new_community/provider/clock_timer_provider.dart'; diff --git a/lib/pages/community_introduce/community_introduce_page.dart b/lib/pages/community_introduce/community_introduce_page.dart index c828efe7..93d58a07 100644 --- a/lib/pages/community_introduce/community_introduce_page.dart +++ b/lib/pages/community_introduce/community_introduce_page.dart @@ -6,7 +6,6 @@ import 'package:velocity_x/velocity_x.dart'; import 'package:aku_new_community/base/base_style.dart'; import 'package:aku_new_community/const/resource.dart'; -import 'package:aku_new_community/constants/api.dart'; import 'package:aku_new_community/constants/saas_api.dart'; import 'package:aku_new_community/model/common/img_model.dart'; import 'package:aku_new_community/models/community_introduce/community_introduce_model.dart'; diff --git a/lib/pages/event_activity/event_voting_page.dart b/lib/pages/event_activity/event_voting_page.dart index ffd8a33f..d99120ae 100644 --- a/lib/pages/event_activity/event_voting_page.dart +++ b/lib/pages/event_activity/event_voting_page.dart @@ -5,7 +5,6 @@ import 'package:flutter_easyrefresh/easy_refresh.dart'; import 'package:get/get.dart'; import 'package:aku_new_community/base/base_style.dart'; -import 'package:aku_new_community/constants/api.dart'; import 'package:aku_new_community/constants/saas_api.dart'; import 'package:aku_new_community/model/common/img_model.dart'; import 'package:aku_new_community/model/manager/event_voting_model.dart'; diff --git a/lib/pages/geographic_information/geographic_information_page.dart b/lib/pages/geographic_information/geographic_information_page.dart index 43d7e3a8..f5021406 100644 --- a/lib/pages/geographic_information/geographic_information_page.dart +++ b/lib/pages/geographic_information/geographic_information_page.dart @@ -1,30 +1,13 @@ -import 'dart:io'; import 'package:flutter/material.dart'; -import 'package:flutter/services.dart'; import 'package:amap_flutter_base/amap_flutter_base.dart'; -import 'package:amap_flutter_location/amap_flutter_location.dart'; import 'package:amap_flutter_map/amap_flutter_map.dart'; -import 'package:equatable/equatable.dart'; -import 'package:flutter_icons/flutter_icons.dart'; -import 'package:get/get.dart'; -import 'package:hive/hive.dart'; -import 'package:hive_flutter/adapters.dart'; -import 'package:permission_handler/permission_handler.dart'; -import 'package:power_logger/power_logger.dart'; import 'package:provider/provider.dart'; -import 'package:url_launcher/url_launcher.dart'; -import 'package:aku_new_community/constants/api.dart'; -import 'package:aku_new_community/pages/one_alarm/alarm_detail_page.dart'; import 'package:aku_new_community/pages/one_alarm/widget/alarm_page.dart'; import 'package:aku_new_community/provider/app_provider.dart'; -import 'package:aku_new_community/utils/headers.dart'; -import 'package:aku_new_community/utils/network/net_util.dart'; import 'package:aku_new_community/widget/bee_scaffold.dart'; -import '../../main_initialize.dart'; -import '../../utils/hive_store.dart'; import '../../widget/others/user_tool.dart'; class GeographicInformationPage extends StatefulWidget { diff --git a/lib/pages/industry_committee/industry_committee_page.dart b/lib/pages/industry_committee/industry_committee_page.dart index d3ae1a8e..a1b23d61 100644 --- a/lib/pages/industry_committee/industry_committee_page.dart +++ b/lib/pages/industry_committee/industry_committee_page.dart @@ -7,15 +7,11 @@ import 'package:get/get.dart'; import 'package:url_launcher/url_launcher.dart'; import 'package:aku_new_community/base/base_style.dart'; -import 'package:aku_new_community/constants/api.dart'; import 'package:aku_new_community/constants/app_theme.dart'; import 'package:aku_new_community/constants/saas_api.dart'; import 'package:aku_new_community/model/common/img_model.dart'; import 'package:aku_new_community/model/user/committee_item_model.dart'; -import 'package:aku_new_community/pages/things_page/widget/bee_list_view.dart'; import 'package:aku_new_community/utils/headers.dart'; -import 'package:aku_new_community/utils/hive_store.dart'; -import 'package:aku_new_community/utils/websocket/tips_dialog.dart'; import 'package:aku_new_community/widget/bee_scaffold.dart'; import '../../utils/network/net_util.dart'; diff --git a/lib/pages/life_pay/life_pay_bill_page/life_pay_bill_page.dart b/lib/pages/life_pay/life_pay_bill_page/life_pay_bill_page.dart index 50a2c767..360dfad3 100644 --- a/lib/pages/life_pay/life_pay_bill_page/life_pay_bill_page.dart +++ b/lib/pages/life_pay/life_pay_bill_page/life_pay_bill_page.dart @@ -6,7 +6,6 @@ import 'package:aku_new_community/base/base_style.dart'; import 'package:aku_new_community/models/life_pay/life_pay_record_model.dart'; import 'package:aku_new_community/utils/headers.dart'; import 'package:aku_new_community/widget/bee_scaffold.dart'; -import 'widget/bill_card.dart'; class LifePayBillPage extends StatefulWidget { final LifePayRecordModel model; diff --git a/lib/pages/life_pay/life_pay_record_page.dart b/lib/pages/life_pay/life_pay_record_page.dart index 9bfee67b..ebc88e3f 100644 --- a/lib/pages/life_pay/life_pay_record_page.dart +++ b/lib/pages/life_pay/life_pay_record_page.dart @@ -5,7 +5,6 @@ import 'package:flutter_easyrefresh/easy_refresh.dart'; import 'package:get/get.dart'; import 'package:aku_new_community/base/base_style.dart'; -import 'package:aku_new_community/constants/api.dart'; import 'package:aku_new_community/constants/saas_api.dart'; import 'package:aku_new_community/models/life_pay/life_pay_record_model.dart'; import 'package:aku_new_community/pages/things_page/widget/bee_list_view.dart'; diff --git a/lib/pages/life_pay/pay_util.dart b/lib/pages/life_pay/pay_util.dart index e3cca891..75dbd0cb 100644 --- a/lib/pages/life_pay/pay_util.dart +++ b/lib/pages/life_pay/pay_util.dart @@ -1,6 +1,5 @@ import 'dart:async'; import 'dart:convert'; -import 'dart:ui'; import 'package:flutter/foundation.dart'; diff --git a/lib/pages/message_center_page/announce/announce_card.dart b/lib/pages/message_center_page/announce/announce_card.dart index 68ecb3f9..4de72706 100644 --- a/lib/pages/message_center_page/announce/announce_card.dart +++ b/lib/pages/message_center_page/announce/announce_card.dart @@ -7,7 +7,6 @@ import 'package:get/get.dart'; import 'package:velocity_x/velocity_x.dart'; import 'package:aku_new_community/base/base_style.dart'; -import 'package:aku_new_community/extensions/widget_list_ext.dart'; import 'package:aku_new_community/models/home/home_announce_model.dart'; import 'package:aku_new_community/pages/message_center_page/announce/announce_view.dart'; import 'package:aku_new_community/ui/community/notice/notice_detail_page.dart'; diff --git a/lib/pages/message_center_page/message_center_page.dart b/lib/pages/message_center_page/message_center_page.dart index 0f92f894..53b2140d 100644 --- a/lib/pages/message_center_page/message_center_page.dart +++ b/lib/pages/message_center_page/message_center_page.dart @@ -11,7 +11,6 @@ import 'package:aku_new_community/pages/message_center_page/reply/replay_view.da import 'package:aku_new_community/pages/message_center_page/thumbs_up/thumbs_up_view.dart'; import 'package:aku_new_community/utils/network/net_util.dart'; import 'package:aku_new_community/widget/bee_scaffold.dart'; -import 'package:aku_new_community/widget/tab_bar/bee_tab_bar.dart'; class MessageCenterPage extends StatefulWidget { MessageCenterPage({Key? key}) : super(key: key); diff --git a/lib/pages/message_center_page/reply/replay_view.dart b/lib/pages/message_center_page/reply/replay_view.dart index 00bb2b5d..8373aafa 100644 --- a/lib/pages/message_center_page/reply/replay_view.dart +++ b/lib/pages/message_center_page/reply/replay_view.dart @@ -2,7 +2,6 @@ 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_new_community/constants/saas_api.dart'; import 'package:aku_new_community/models/message/reply_list_model.dart'; diff --git a/lib/pages/message_center_page/thumbs_up/thumbs_up_card.dart b/lib/pages/message_center_page/thumbs_up/thumbs_up_card.dart index b1a13e54..331727d9 100644 --- a/lib/pages/message_center_page/thumbs_up/thumbs_up_card.dart +++ b/lib/pages/message_center_page/thumbs_up/thumbs_up_card.dart @@ -6,7 +6,6 @@ import 'package:velocity_x/velocity_x.dart'; import 'package:aku_new_community/base/base_style.dart'; import 'package:aku_new_community/gen/assets.gen.dart'; import 'package:aku_new_community/models/message/reply_list_model.dart'; -import 'package:aku_new_community/models/message/thumbs_up_list_model.dart'; import 'package:aku_new_community/pages/message_center_page/message_func.dart'; import 'package:aku_new_community/widget/bee_image_network.dart'; diff --git a/lib/pages/message_center_page/thumbs_up/thumbs_up_view.dart b/lib/pages/message_center_page/thumbs_up/thumbs_up_view.dart index 9737c0bb..9bb0ef34 100644 --- a/lib/pages/message_center_page/thumbs_up/thumbs_up_view.dart +++ b/lib/pages/message_center_page/thumbs_up/thumbs_up_view.dart @@ -2,7 +2,6 @@ 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_new_community/constants/saas_api.dart'; import 'package:aku_new_community/models/message/reply_list_model.dart'; diff --git a/lib/pages/personal/address/address_list_page.dart b/lib/pages/personal/address/address_list_page.dart index e09d3d36..fba6c783 100644 --- a/lib/pages/personal/address/address_list_page.dart +++ b/lib/pages/personal/address/address_list_page.dart @@ -9,7 +9,6 @@ import 'package:aku_new_community/utils/headers.dart'; import 'package:aku_new_community/widget/bee_scaffold.dart'; import 'package:aku_new_community/widget/others/user_tool.dart'; import '../item_my_address.dart'; -import '../user_func.dart'; import 'new_address_page.dart'; class AddressListPage extends StatefulWidget { diff --git a/lib/pages/personal/address/address_selector.dart b/lib/pages/personal/address/address_selector.dart index 90b95104..4e45163d 100644 --- a/lib/pages/personal/address/address_selector.dart +++ b/lib/pages/personal/address/address_selector.dart @@ -143,7 +143,7 @@ class _AddressSelectorState extends State // for (int i = 0; i < _items.length; ++i) { for (int i = 0; i < _tabController.length; ++i) { List addressModels = _items[i]; - if (addressModels == null || addressModels.length == 0) { + if (addressModels.length == 0) { list.add(Container()); continue; } diff --git a/lib/pages/personal/address/editView.dart b/lib/pages/personal/address/editView.dart index ba869e48..c950fb6f 100644 --- a/lib/pages/personal/address/editView.dart +++ b/lib/pages/personal/address/editView.dart @@ -42,7 +42,7 @@ class EditTile extends StatefulWidget { required this.constraints, this.maxLength = 100, this.maxLines = 1, - }) : assert(textChanged != null); + }); @override _EditTileState createState() => _EditTileState(); diff --git a/lib/pages/personal/item_my_address.dart b/lib/pages/personal/item_my_address.dart index d5018e1f..49dabaa1 100644 --- a/lib/pages/personal/item_my_address.dart +++ b/lib/pages/personal/item_my_address.dart @@ -32,8 +32,7 @@ class MyAddressItem extends StatefulWidget { MyAddressItem( {required this.addressModel, this.refreshController, - required this.canBack}) - : assert(addressModel != null); + required this.canBack}); _MyAddressItemState createState() => _MyAddressItemState(); } diff --git a/lib/pages/personal/wallet/input_pay_password_dialog.dart b/lib/pages/personal/wallet/input_pay_password_dialog.dart index 920ff412..591bdb82 100644 --- a/lib/pages/personal/wallet/input_pay_password_dialog.dart +++ b/lib/pages/personal/wallet/input_pay_password_dialog.dart @@ -1,15 +1,12 @@ import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; -import 'package:bot_toast/bot_toast.dart'; import 'package:flutter_screenutil/src/size_extension.dart'; import 'package:get/get.dart'; import 'package:sms_autofill/sms_autofill.dart'; import 'package:velocity_x/src/extensions/string_ext.dart'; -import 'package:aku_new_community/constants/saas_api.dart'; import 'package:aku_new_community/extensions/num_ext.dart'; -import 'package:aku_new_community/utils/network/net_util.dart'; class InputPayPasswordDialog extends StatefulWidget { const InputPayPasswordDialog({ diff --git a/lib/pages/personal/wallet/pay_way_dialog.dart b/lib/pages/personal/wallet/pay_way_dialog.dart index fe2c4917..40ce75b8 100644 --- a/lib/pages/personal/wallet/pay_way_dialog.dart +++ b/lib/pages/personal/wallet/pay_way_dialog.dart @@ -1,4 +1,3 @@ -import 'dart:ui'; import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; diff --git a/lib/pages/personal/wallet/set_pay_password_verify_dialog.dart b/lib/pages/personal/wallet/set_pay_password_verify_dialog.dart index 890a50a6..7ad47bf1 100644 --- a/lib/pages/personal/wallet/set_pay_password_verify_dialog.dart +++ b/lib/pages/personal/wallet/set_pay_password_verify_dialog.dart @@ -9,8 +9,6 @@ import 'package:velocity_x/src/extensions/string_ext.dart'; import 'package:aku_new_community/constants/saas_api.dart'; import 'package:aku_new_community/extensions/num_ext.dart'; -import 'package:aku_new_community/pages/personal/wallet/input_pay_password_dialog.dart'; -import 'package:aku_new_community/pages/sign/login/psd_verify.dart'; import 'package:aku_new_community/utils/network/net_util.dart'; import 'package:aku_new_community/widget/others/user_tool.dart'; diff --git a/lib/pages/personal/wallet/wallet_trade_record_page.dart b/lib/pages/personal/wallet/wallet_trade_record_page.dart index e388c418..b4ffc023 100644 --- a/lib/pages/personal/wallet/wallet_trade_record_page.dart +++ b/lib/pages/personal/wallet/wallet_trade_record_page.dart @@ -1,4 +1,3 @@ -import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; import 'package:aku_new_community/pages/personal/wallet/point_record_view.dart'; diff --git a/lib/pages/share_pay_page/share_record_page.dart b/lib/pages/share_pay_page/share_record_page.dart index a8a04930..29c5ff85 100644 --- a/lib/pages/share_pay_page/share_record_page.dart +++ b/lib/pages/share_pay_page/share_record_page.dart @@ -5,7 +5,6 @@ import 'package:flutter_easyrefresh/easy_refresh.dart'; import 'package:aku_new_community/base/base_style.dart'; import 'package:aku_new_community/constants/api.dart'; -import 'package:aku_new_community/constants/saas_api.dart'; import 'package:aku_new_community/models/life_pay/share_pay_record_model.dart'; import 'package:aku_new_community/pages/things_page/widget/bee_list_view.dart'; import 'package:aku_new_community/utils/headers.dart'; diff --git a/lib/pages/sign/login/other_login_page.dart b/lib/pages/sign/login/other_login_page.dart index 1dcf58c0..af382525 100644 --- a/lib/pages/sign/login/other_login_page.dart +++ b/lib/pages/sign/login/other_login_page.dart @@ -15,7 +15,6 @@ import 'package:aku_new_community/pages/sign/sign_func.dart'; import 'package:aku_new_community/pages/sign/widget/login_button_widget.dart'; import 'package:aku_new_community/pages/sign/widget/psd_text_field.dart'; import 'package:aku_new_community/pages/sign/widget/tel_text_field.dart'; -import 'package:aku_new_community/provider/app_provider.dart'; import 'package:aku_new_community/provider/clock_timer_provider.dart'; import 'package:aku_new_community/widget/bee_scaffold.dart'; import 'package:aku_new_community/widget/others/user_tool.dart'; diff --git a/lib/pages/splash/splash_page.dart b/lib/pages/splash/splash_page.dart index 1d784161..9aaa4602 100644 --- a/lib/pages/splash/splash_page.dart +++ b/lib/pages/splash/splash_page.dart @@ -1,6 +1,4 @@ -import 'dart:io'; -import 'package:flutter/cupertino.dart'; import 'package:flutter/gestures.dart'; import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; @@ -9,13 +7,10 @@ import 'package:amap_flutter_location/amap_flutter_location.dart'; import 'package:equatable/equatable.dart'; import 'package:get/get.dart'; import 'package:hive_flutter/hive_flutter.dart'; -import 'package:permission_handler/permission_handler.dart'; import 'package:power_logger/power_logger.dart'; import 'package:aku_new_community/gen/assets.gen.dart'; import 'package:aku_new_community/main_initialize.dart'; -import 'package:aku_new_community/pages/setting_page/agreement_page/agreement_page.dart'; -import 'package:aku_new_community/pages/setting_page/agreement_page/privacy_page.dart'; import 'package:aku_new_community/pages/sign/login/other_login_page.dart'; import 'package:aku_new_community/pages/splash/app_verify_dialog.dart'; import 'package:aku_new_community/utils/developer_util.dart'; diff --git a/lib/pages/tab_navigator.dart b/lib/pages/tab_navigator.dart index ee4ce966..3edf659b 100644 --- a/lib/pages/tab_navigator.dart +++ b/lib/pages/tab_navigator.dart @@ -12,7 +12,6 @@ import 'package:aku_new_community/ui/community/community_views/community_page.da import 'package:aku_new_community/ui/market/market_page.dart'; import 'package:aku_new_community/utils/websocket/web_socket_util.dart'; import 'package:aku_new_community/widget/bee_scaffold.dart'; -import 'package:aku_new_community/widget/dialog/certification_dialog.dart'; import 'package:aku_new_community/widget/others/user_tool.dart'; import 'home/home_page.dart'; import 'opening_code_page/opening_code_page.dart'; diff --git a/lib/pages/things_page/widget/fixed_evaluate_page.dart b/lib/pages/things_page/widget/fixed_evaluate_page.dart index 8a2cb421..d5ca805d 100644 --- a/lib/pages/things_page/widget/fixed_evaluate_page.dart +++ b/lib/pages/things_page/widget/fixed_evaluate_page.dart @@ -4,7 +4,6 @@ import 'package:flutter/material.dart'; import 'package:bot_toast/bot_toast.dart'; import 'package:flutter_rating_bar/flutter_rating_bar.dart'; import 'package:get/get.dart'; -import 'package:velocity_x/velocity_x.dart'; import 'package:aku_new_community/base/base_style.dart'; import 'package:aku_new_community/models/manage/fix_report/fix_detail_model.dart'; diff --git a/lib/pages/visitor_access_page/visitor_access_page.dart b/lib/pages/visitor_access_page/visitor_access_page.dart index 12bfabee..1d4caff2 100644 --- a/lib/pages/visitor_access_page/visitor_access_page.dart +++ b/lib/pages/visitor_access_page/visitor_access_page.dart @@ -6,7 +6,6 @@ import 'package:flutter_icons/flutter_icons.dart'; import 'package:get/get.dart'; import 'package:provider/provider.dart'; import 'package:share/share.dart'; -import 'package:velocity_x/velocity_x.dart'; import 'package:aku_new_community/constants/api.dart'; import 'package:aku_new_community/pages/manager_func.dart'; diff --git a/lib/ui/community/activity/activity_detail_page.dart b/lib/ui/community/activity/activity_detail_page.dart index 40f79e09..93e088ed 100644 --- a/lib/ui/community/activity/activity_detail_page.dart +++ b/lib/ui/community/activity/activity_detail_page.dart @@ -6,11 +6,9 @@ import 'package:flutter_easyrefresh/easy_refresh.dart'; import 'package:get/get.dart'; import 'package:url_launcher/url_launcher.dart'; -import 'package:aku_new_community/base/base_style.dart'; import 'package:aku_new_community/constants/saas_api.dart'; import 'package:aku_new_community/model/common/img_model.dart'; import 'package:aku_new_community/models/home/activity_detail_model.dart'; -import 'package:aku_new_community/models/home/home_activity_model.dart'; import 'package:aku_new_community/utils/headers.dart'; import 'package:aku_new_community/utils/network/base_model.dart'; import 'package:aku_new_community/utils/network/net_util.dart'; diff --git a/lib/ui/community/activity/activity_detail_page_old.dart b/lib/ui/community/activity/activity_detail_page_old.dart index d75d817b..2a246900 100644 --- a/lib/ui/community/activity/activity_detail_page_old.dart +++ b/lib/ui/community/activity/activity_detail_page_old.dart @@ -4,16 +4,13 @@ import 'package:flutter/material.dart'; import 'package:bot_toast/bot_toast.dart'; import 'package:common_utils/common_utils.dart'; import 'package:flutter_easyrefresh/easy_refresh.dart'; -import 'package:get/get.dart'; import 'package:shimmer/shimmer.dart'; -import 'package:aku_new_community/const/resource.dart'; import 'package:aku_new_community/constants/api.dart'; import 'package:aku_new_community/constants/app_theme.dart'; import 'package:aku_new_community/constants/saas_api.dart'; import 'package:aku_new_community/model/common/img_model.dart'; import 'package:aku_new_community/model/community/activity_detail_model.dart'; -import 'package:aku_new_community/ui/community/activity/activity_people_list_page.dart'; import 'package:aku_new_community/utils/headers.dart'; import 'package:aku_new_community/utils/network/net_util.dart'; import 'package:aku_new_community/widget/bee_scaffold.dart'; diff --git a/lib/ui/community/community_views/topic/topic_community_view.dart b/lib/ui/community/community_views/topic/topic_community_view.dart index 34bf3f4b..93874ac3 100644 --- a/lib/ui/community/community_views/topic/topic_community_view.dart +++ b/lib/ui/community/community_views/topic/topic_community_view.dart @@ -1,4 +1,3 @@ -import 'dart:ui'; import 'package:flutter/material.dart'; diff --git a/lib/ui/community/community_views/topic/topic_sliver_header.dart b/lib/ui/community/community_views/topic/topic_sliver_header.dart index 3604f6c5..83606835 100644 --- a/lib/ui/community/community_views/topic/topic_sliver_header.dart +++ b/lib/ui/community/community_views/topic/topic_sliver_header.dart @@ -1,6 +1,5 @@ import 'package:flutter/material.dart'; -import 'package:flutter_screenutil/flutter_screenutil.dart'; import 'package:aku_new_community/constants/saas_api.dart'; import 'package:aku_new_community/utils/headers.dart'; diff --git a/lib/ui/community/community_views/widgets/chat_card.dart b/lib/ui/community/community_views/widgets/chat_card.dart index 6b49e553..8f9370f0 100644 --- a/lib/ui/community/community_views/widgets/chat_card.dart +++ b/lib/ui/community/community_views/widgets/chat_card.dart @@ -7,7 +7,6 @@ import 'package:bot_toast/bot_toast.dart'; import 'package:common_utils/common_utils.dart'; import 'package:get/get.dart'; import 'package:provider/provider.dart'; -import 'package:velocity_x/velocity_x.dart'; import 'package:aku_new_community/base/base_style.dart'; import 'package:aku_new_community/constants/saas_api.dart'; diff --git a/lib/ui/community/community_views/widgets/chat_card_detail.dart b/lib/ui/community/community_views/widgets/chat_card_detail.dart index 5b2d72d6..45b0d130 100644 --- a/lib/ui/community/community_views/widgets/chat_card_detail.dart +++ b/lib/ui/community/community_views/widgets/chat_card_detail.dart @@ -1,4 +1,3 @@ -import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; import 'package:bot_toast/bot_toast.dart'; @@ -6,7 +5,6 @@ import 'package:common_utils/common_utils.dart'; import 'package:get/get.dart'; import 'package:like_button/like_button.dart'; import 'package:provider/provider.dart'; -import 'package:velocity_x/velocity_x.dart'; import 'package:aku_new_community/base/base_style.dart'; import 'package:aku_new_community/constants/saas_api.dart'; @@ -171,6 +169,7 @@ class _ChatCardDetailState extends State { } else { BotToast.showText(text: res.msg); } + return null; }, likeBuilder: (bool isLiked) { return Image.asset( diff --git a/lib/ui/community/community_views/widgets/send_a_chat.dart b/lib/ui/community/community_views/widgets/send_a_chat.dart index 90404836..d4e84377 100644 --- a/lib/ui/community/community_views/widgets/send_a_chat.dart +++ b/lib/ui/community/community_views/widgets/send_a_chat.dart @@ -1,7 +1,6 @@ import 'package:flutter/material.dart'; import 'package:get/get.dart'; -import 'package:velocity_x/velocity_x.dart'; import 'package:aku_new_community/constants/saas_api.dart'; import 'package:aku_new_community/utils/headers.dart'; diff --git a/lib/ui/community/facility/facility_appointment_card.dart b/lib/ui/community/facility/facility_appointment_card.dart index 494747c6..2aaf7ec0 100644 --- a/lib/ui/community/facility/facility_appointment_card.dart +++ b/lib/ui/community/facility/facility_appointment_card.dart @@ -5,7 +5,6 @@ import 'package:bot_toast/bot_toast.dart'; import 'package:get/get.dart'; import 'package:aku_new_community/base/base_style.dart'; -import 'package:aku_new_community/constants/api.dart'; import 'package:aku_new_community/models/facility/facility_appointment_model.dart'; import 'package:aku_new_community/ui/common/qr_scan.dart'; import 'package:aku_new_community/utils/headers.dart'; diff --git a/lib/ui/community/facility/facility_appointment_view.dart b/lib/ui/community/facility/facility_appointment_view.dart index 2141f065..f742a31b 100644 --- a/lib/ui/community/facility/facility_appointment_view.dart +++ b/lib/ui/community/facility/facility_appointment_view.dart @@ -2,7 +2,6 @@ import 'package:flutter/material.dart'; import 'package:flutter_easyrefresh/easy_refresh.dart'; -import 'package:aku_new_community/constants/api.dart'; import 'package:aku_new_community/constants/saas_api.dart'; import 'package:aku_new_community/models/facility/facility_appointment_model.dart'; import 'package:aku_new_community/pages/things_page/widget/bee_list_view.dart'; diff --git a/lib/ui/community/facility/facility_order_date_list_page.dart b/lib/ui/community/facility/facility_order_date_list_page.dart index 91f0caec..55fdf55b 100644 --- a/lib/ui/community/facility/facility_order_date_list_page.dart +++ b/lib/ui/community/facility/facility_order_date_list_page.dart @@ -5,7 +5,6 @@ import 'package:flutter_screenutil/flutter_screenutil.dart'; import 'package:velocity_x/velocity_x.dart'; import 'package:aku_new_community/base/base_style.dart'; -import 'package:aku_new_community/constants/api.dart'; import 'package:aku_new_community/constants/saas_api.dart'; import 'package:aku_new_community/models/facility/facility_order_date_list_model.dart'; import 'package:aku_new_community/pages/things_page/widget/bee_list_view.dart'; diff --git a/lib/ui/community/facility/facility_preorder_page.dart b/lib/ui/community/facility/facility_preorder_page.dart index 4a74536f..13fab3f7 100644 --- a/lib/ui/community/facility/facility_preorder_page.dart +++ b/lib/ui/community/facility/facility_preorder_page.dart @@ -7,14 +7,11 @@ import 'package:get/get.dart'; import 'package:provider/provider.dart'; import 'package:aku_new_community/base/base_style.dart'; -import 'package:aku_new_community/constants/api.dart'; import 'package:aku_new_community/constants/app_theme.dart'; import 'package:aku_new_community/models/facility/facility_type_detail_model.dart'; -import 'package:aku_new_community/provider/app_provider.dart'; import 'package:aku_new_community/provider/user_provider.dart'; import 'package:aku_new_community/ui/community/facility/facility_order_date_list_page.dart'; import 'package:aku_new_community/ui/community/facility/facility_type_detail_page.dart'; -import 'package:aku_new_community/ui/profile/house/pick_my_house_page.dart'; import 'package:aku_new_community/utils/headers.dart'; import 'package:aku_new_community/utils/network/net_util.dart'; import 'package:aku_new_community/widget/bee_divider.dart'; diff --git a/lib/ui/community/facility/facility_type_card.dart b/lib/ui/community/facility/facility_type_card.dart index 92a0d515..606d2ab7 100644 --- a/lib/ui/community/facility/facility_type_card.dart +++ b/lib/ui/community/facility/facility_type_card.dart @@ -6,7 +6,6 @@ import 'package:aku_new_community/base/base_style.dart'; import 'package:aku_new_community/constants/saas_api.dart'; import 'package:aku_new_community/model/common/img_model.dart'; import 'package:aku_new_community/models/facility/facility_type_model.dart'; -import 'package:aku_new_community/ui/community/facility/facility_preorder_page.dart'; import 'package:aku_new_community/utils/headers.dart'; import 'facility_type_detail_page.dart'; diff --git a/lib/ui/community/facility/facility_type_detail_card.dart b/lib/ui/community/facility/facility_type_detail_card.dart index ed6005ed..e31695d1 100644 --- a/lib/ui/community/facility/facility_type_detail_card.dart +++ b/lib/ui/community/facility/facility_type_detail_card.dart @@ -1,6 +1,5 @@ import 'package:flutter/material.dart'; -import 'package:common_utils/common_utils.dart'; import 'package:get/get.dart'; import 'package:aku_new_community/base/base_style.dart'; @@ -10,7 +9,6 @@ import 'package:aku_new_community/utils/headers.dart'; import '../../../models/facility/facility_type_detail_model.dart'; import '../../../models/facility/facility_type_model.dart'; import 'facility_preorder_page.dart'; -import 'facility_type_detail_page.dart'; class FacilityTypeDetailCard extends StatelessWidget { final FacilityTypeDetailModel model; diff --git a/lib/ui/community/facility/facility_type_detail_page.dart b/lib/ui/community/facility/facility_type_detail_page.dart index 9da86c73..7f542e29 100644 --- a/lib/ui/community/facility/facility_type_detail_page.dart +++ b/lib/ui/community/facility/facility_type_detail_page.dart @@ -3,17 +3,13 @@ import 'package:flutter/material.dart'; import 'package:flutter_easyrefresh/easy_refresh.dart'; import 'package:get/get.dart'; -import 'package:aku_new_community/constants/api.dart'; import 'package:aku_new_community/models/facility/facility_type_detail_model.dart'; import 'package:aku_new_community/utils/headers.dart'; import 'package:aku_new_community/utils/network/base_list_model.dart'; -import 'package:aku_new_community/utils/network/base_model.dart'; import 'package:aku_new_community/utils/network/net_util.dart'; -import 'package:aku_new_community/widget/bee_divider.dart'; import 'package:aku_new_community/widget/bee_scaffold.dart'; import '../../../constants/saas_api.dart'; import '../../../models/facility/facility_type_model.dart'; -import 'facility_type_card.dart'; import 'facility_type_detail_card.dart'; class FacilityTypeDetailPage extends StatefulWidget { diff --git a/lib/ui/community/facility/pick_facility_page.dart b/lib/ui/community/facility/pick_facility_page.dart index 6ec11def..82826e41 100644 --- a/lib/ui/community/facility/pick_facility_page.dart +++ b/lib/ui/community/facility/pick_facility_page.dart @@ -1,23 +1,14 @@ -import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; import 'package:flutter_easyrefresh/easy_refresh.dart'; -import 'package:get/get.dart'; -import 'package:get/get_core/src/get_main.dart'; -import 'package:aku_new_community/constants/api.dart'; import 'package:aku_new_community/models/facility/facility_type_model.dart'; import 'package:aku_new_community/pages/things_page/widget/bee_list_view.dart'; import 'package:aku_new_community/ui/community/facility/facility_type_card.dart'; import 'package:aku_new_community/utils/headers.dart'; import 'package:aku_new_community/widget/bee_scaffold.dart'; import '../../../constants/saas_api.dart'; -import '../../../utils/network/base_list_model.dart'; -import '../../../utils/network/net_util.dart'; import '../../../widget/tab_bar/bee_tab_bar.dart'; -import '../../market/market_home_goods_card.dart'; -import 'facility_appointment_page.dart'; -import 'facility_appointment_view.dart'; class PickFacilityPage extends StatefulWidget { PickFacilityPage({Key? key}) : super(key: key); diff --git a/lib/ui/community/notice/notice_card.dart b/lib/ui/community/notice/notice_card.dart index 50ea934e..19dd4096 100644 --- a/lib/ui/community/notice/notice_card.dart +++ b/lib/ui/community/notice/notice_card.dart @@ -2,7 +2,6 @@ import 'package:flutter/material.dart'; import 'package:common_utils/common_utils.dart'; import 'package:get/get.dart'; -import 'package:velocity_x/velocity_x.dart'; import 'package:aku_new_community/model/common/img_model.dart'; import 'package:aku_new_community/models/home/home_announce_model.dart'; diff --git a/lib/ui/function_and_service/task/dialogs/task_cancel_dialog.dart b/lib/ui/function_and_service/task/dialogs/task_cancel_dialog.dart index c4b6056d..6c6f9009 100644 --- a/lib/ui/function_and_service/task/dialogs/task_cancel_dialog.dart +++ b/lib/ui/function_and_service/task/dialogs/task_cancel_dialog.dart @@ -1,4 +1,3 @@ -import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart'; diff --git a/lib/ui/function_and_service/task/hall/hall_card.dart b/lib/ui/function_and_service/task/hall/hall_card.dart index 85bafbea..01818b96 100644 --- a/lib/ui/function_and_service/task/hall/hall_card.dart +++ b/lib/ui/function_and_service/task/hall/hall_card.dart @@ -1,4 +1,3 @@ -import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; import 'package:common_utils/common_utils.dart'; diff --git a/lib/ui/function_and_service/task/hall/hall_detail_page.dart b/lib/ui/function_and_service/task/hall/hall_detail_page.dart index 8b5c502d..3012ec67 100644 --- a/lib/ui/function_and_service/task/hall/hall_detail_page.dart +++ b/lib/ui/function_and_service/task/hall/hall_detail_page.dart @@ -1,4 +1,3 @@ -import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; diff --git a/lib/ui/function_and_service/work_order/dialogs/work_order_progress_dialog.dart b/lib/ui/function_and_service/work_order/dialogs/work_order_progress_dialog.dart index e7f37e0d..73629390 100644 --- a/lib/ui/function_and_service/work_order/dialogs/work_order_progress_dialog.dart +++ b/lib/ui/function_and_service/work_order/dialogs/work_order_progress_dialog.dart @@ -2,7 +2,6 @@ import 'package:flutter/material.dart'; import 'package:common_utils/common_utils.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart'; -import 'package:velocity_x/src/extensions/string_ext.dart'; import 'package:velocity_x/velocity_x.dart'; import 'package:aku_new_community/extensions/num_ext.dart'; diff --git a/lib/ui/function_and_service/work_order/team_list_page.dart b/lib/ui/function_and_service/work_order/team_list_page.dart index 45819dcb..a7500ffd 100644 --- a/lib/ui/function_and_service/work_order/team_list_page.dart +++ b/lib/ui/function_and_service/work_order/team_list_page.dart @@ -32,6 +32,7 @@ class _TeamListPageState extends State { return null; } } + return null; } @override diff --git a/lib/ui/home/application/all_application.dart b/lib/ui/home/application/all_application.dart index 48c14863..a6da1d13 100644 --- a/lib/ui/home/application/all_application.dart +++ b/lib/ui/home/application/all_application.dart @@ -2,14 +2,11 @@ import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; import 'package:bot_toast/bot_toast.dart'; -import 'package:get/get.dart'; import 'package:provider/provider.dart'; -import 'package:velocity_x/velocity_x.dart'; import 'package:aku_new_community/base/base_style.dart'; import 'package:aku_new_community/constants/application_objects.dart'; import 'package:aku_new_community/provider/app_provider.dart'; -import 'package:aku_new_community/ui/search/bee_search.dart'; import 'package:aku_new_community/utils/headers.dart'; import 'package:aku_new_community/utils/login_util.dart'; import 'package:aku_new_community/widget/bee_back_button.dart'; diff --git a/lib/ui/home/home_title.dart b/lib/ui/home/home_title.dart index 08a61b70..34b1f787 100644 --- a/lib/ui/home/home_title.dart +++ b/lib/ui/home/home_title.dart @@ -1,7 +1,5 @@ import 'package:flutter/cupertino.dart'; -import 'package:flutter/material.dart'; -import 'package:velocity_x/velocity_x.dart'; import 'package:aku_new_community/utils/headers.dart'; diff --git a/lib/ui/home/public_infomation/public_infomation_card.dart b/lib/ui/home/public_infomation/public_infomation_card.dart index 2b13ca34..70be967d 100644 --- a/lib/ui/home/public_infomation/public_infomation_card.dart +++ b/lib/ui/home/public_infomation/public_infomation_card.dart @@ -1,6 +1,5 @@ import 'package:flutter/material.dart'; -import 'package:common_utils/common_utils.dart'; import 'package:get/get.dart'; import 'package:aku_new_community/base/base_style.dart'; diff --git a/lib/ui/manager/advice/advice_add_comment_page.dart b/lib/ui/manager/advice/advice_add_comment_page.dart index 3ae83c06..08de1f0c 100644 --- a/lib/ui/manager/advice/advice_add_comment_page.dart +++ b/lib/ui/manager/advice/advice_add_comment_page.dart @@ -2,9 +2,7 @@ import 'package:flutter/material.dart'; import 'package:common_utils/common_utils.dart'; import 'package:get/get.dart'; -import 'package:velocity_x/velocity_x.dart'; -import 'package:aku_new_community/constants/api.dart'; import 'package:aku_new_community/constants/saas_api.dart'; import 'package:aku_new_community/utils/headers.dart'; import 'package:aku_new_community/utils/network/base_model.dart'; diff --git a/lib/ui/manager/advice/advice_card.dart b/lib/ui/manager/advice/advice_card.dart index 70063e86..a35360ce 100644 --- a/lib/ui/manager/advice/advice_card.dart +++ b/lib/ui/manager/advice/advice_card.dart @@ -3,7 +3,6 @@ import 'package:flutter/material.dart'; import 'package:common_utils/common_utils.dart'; import 'package:flutter_rating_bar/flutter_rating_bar.dart'; import 'package:get/get.dart'; -import 'package:velocity_x/velocity_x.dart'; import 'package:aku_new_community/base/base_style.dart'; import 'package:aku_new_community/model/manager/suggestion_or_complain_model.dart'; diff --git a/lib/ui/manager/advice/advice_detail_page.dart b/lib/ui/manager/advice/advice_detail_page.dart index 3abb7dce..4856d358 100644 --- a/lib/ui/manager/advice/advice_detail_page.dart +++ b/lib/ui/manager/advice/advice_detail_page.dart @@ -6,10 +6,8 @@ import 'package:dio/dio.dart'; import 'package:flutter_easyrefresh/easy_refresh.dart'; import 'package:get/get.dart' hide Response; import 'package:shimmer/shimmer.dart'; -import 'package:velocity_x/velocity_x.dart'; import 'package:aku_new_community/base/base_style.dart'; -import 'package:aku_new_community/constants/api.dart'; import 'package:aku_new_community/constants/app_theme.dart'; import 'package:aku_new_community/constants/saas_api.dart'; import 'package:aku_new_community/model/manager/advice_detail_model.dart'; diff --git a/lib/ui/manager/advice/advice_evaluate_page.dart b/lib/ui/manager/advice/advice_evaluate_page.dart index c2fe733a..c204de28 100644 --- a/lib/ui/manager/advice/advice_evaluate_page.dart +++ b/lib/ui/manager/advice/advice_evaluate_page.dart @@ -2,7 +2,6 @@ import 'package:flutter/material.dart'; import 'package:flutter_rating_bar/flutter_rating_bar.dart'; import 'package:get/get.dart'; -import 'package:velocity_x/velocity_x.dart'; import 'package:aku_new_community/base/base_style.dart'; import 'package:aku_new_community/constants/saas_api.dart'; diff --git a/lib/ui/manager/advice/advice_house_page.dart b/lib/ui/manager/advice/advice_house_page.dart index a28b512c..d4353ec8 100644 --- a/lib/ui/manager/advice/advice_house_page.dart +++ b/lib/ui/manager/advice/advice_house_page.dart @@ -1,25 +1,19 @@ -import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; import 'package:bot_toast/bot_toast.dart'; import 'package:flutter_easyrefresh/easy_refresh.dart'; import 'package:get/get.dart'; -import 'package:get/get_core/src/get_main.dart'; import 'package:aku_new_community/utils/headers.dart'; import 'package:aku_new_community/widget/bee_scaffold.dart'; import '../../../base/base_style.dart'; import '../../../constants/saas_api.dart'; -import '../../../gen/assets.gen.dart'; import '../../../models/user/my_house_model.dart'; import '../../../utils/network/net_util.dart'; import '../../../widget/bee_divider.dart'; import '../../../widget/others/user_tool.dart'; import '../../../widget/tag/bee_tag.dart'; -import '../../profile/house/add_house_page.dart'; -import '../../profile/new_house/apply_record_page.dart'; import '../../profile/new_house/my_house_page.dart'; -import '../../profile/new_house/widgets/add_house_button.dart'; class AdviceHousePage extends StatefulWidget { const AdviceHousePage({Key? key}) : super(key: key); diff --git a/lib/ui/manager/advice/advice_page.dart b/lib/ui/manager/advice/advice_page.dart index ed695f46..07b33d3e 100644 --- a/lib/ui/manager/advice/advice_page.dart +++ b/lib/ui/manager/advice/advice_page.dart @@ -3,7 +3,6 @@ import 'package:flutter/material.dart'; import 'package:flutter_easyrefresh/easy_refresh.dart'; import 'package:get/get.dart'; -import 'package:velocity_x/velocity_x.dart'; import 'package:aku_new_community/constants/app_theme.dart'; import 'package:aku_new_community/constants/saas_api.dart'; diff --git a/lib/ui/manager/advice/new_advice_page.dart b/lib/ui/manager/advice/new_advice_page.dart index 8efa42e7..3245b202 100644 --- a/lib/ui/manager/advice/new_advice_page.dart +++ b/lib/ui/manager/advice/new_advice_page.dart @@ -1,19 +1,14 @@ import 'dart:io'; -import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; import 'package:bot_toast/bot_toast.dart'; import 'package:common_utils/common_utils.dart'; -import 'package:flutter_screenutil/flutter_screenutil.dart'; import 'package:get/get.dart'; import 'package:provider/provider.dart'; -import 'package:velocity_x/velocity_x.dart'; -import 'package:aku_new_community/const/resource.dart'; import 'package:aku_new_community/constants/app_theme.dart'; import 'package:aku_new_community/constants/saas_api.dart'; -import 'package:aku_new_community/provider/app_provider.dart'; import 'package:aku_new_community/ui/manager/advice/advice_house_page.dart'; import 'package:aku_new_community/ui/manager/advice/advice_page.dart'; import 'package:aku_new_community/utils/headers.dart'; diff --git a/lib/ui/manager/house_keeping/house_keeping_card.dart b/lib/ui/manager/house_keeping/house_keeping_card.dart index 0522cc5f..db51fe67 100644 --- a/lib/ui/manager/house_keeping/house_keeping_card.dart +++ b/lib/ui/manager/house_keeping/house_keeping_card.dart @@ -2,12 +2,9 @@ import 'package:flutter/material.dart'; import 'package:bot_toast/bot_toast.dart'; import 'package:common_utils/common_utils.dart'; -import 'package:flutter_screenutil/flutter_screenutil.dart'; import 'package:get/get.dart'; -import 'package:velocity_x/velocity_x.dart'; import 'package:aku_new_community/base/base_style.dart'; -import 'package:aku_new_community/const/resource.dart'; import 'package:aku_new_community/constants/saas_api.dart'; import 'package:aku_new_community/models/house_keeping/house_keeping_list_model.dart'; import 'package:aku_new_community/models/house_keeping/house_keeping_process_model.dart'; diff --git a/lib/ui/manager/house_keeping/house_keeping_detail_page.dart b/lib/ui/manager/house_keeping/house_keeping_detail_page.dart index cd179d76..45798203 100644 --- a/lib/ui/manager/house_keeping/house_keeping_detail_page.dart +++ b/lib/ui/manager/house_keeping/house_keeping_detail_page.dart @@ -4,15 +4,11 @@ import 'package:flutter/material.dart'; import 'package:bot_toast/bot_toast.dart'; import 'package:common_utils/common_utils.dart'; import 'package:flutter_rating_bar/flutter_rating_bar.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_new_community/base/base_style.dart'; -import 'package:aku_new_community/const/resource.dart'; import 'package:aku_new_community/constants/api.dart'; -import 'package:aku_new_community/constants/saas_api.dart'; import 'package:aku_new_community/models/house_keeping/house_keeping_list_model.dart'; import 'package:aku_new_community/models/house_keeping/house_keeping_process_model.dart'; import 'package:aku_new_community/pages/life_pay/pay_finish_page.dart'; diff --git a/lib/ui/manager/house_keeping/house_keeping_page.dart b/lib/ui/manager/house_keeping/house_keeping_page.dart index f0b3638a..438627b5 100644 --- a/lib/ui/manager/house_keeping/house_keeping_page.dart +++ b/lib/ui/manager/house_keeping/house_keeping_page.dart @@ -1,4 +1,3 @@ -import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart'; diff --git a/lib/ui/manager/house_keeping/house_keeping_view.dart b/lib/ui/manager/house_keeping/house_keeping_view.dart index 8546d898..1a653e11 100644 --- a/lib/ui/manager/house_keeping/house_keeping_view.dart +++ b/lib/ui/manager/house_keeping/house_keeping_view.dart @@ -5,7 +5,6 @@ import 'package:flutter_screenutil/flutter_screenutil.dart'; import 'package:velocity_x/velocity_x.dart'; import 'package:aku_new_community/constants/api.dart'; -import 'package:aku_new_community/constants/saas_api.dart'; import 'package:aku_new_community/models/house_keeping/house_keeping_list_model.dart'; import 'package:aku_new_community/pages/things_page/widget/bee_list_view.dart'; import 'package:aku_new_community/ui/manager/house_keeping/house_keeping_card.dart'; diff --git a/lib/ui/manager/questionnaire/questionnaire_page.dart b/lib/ui/manager/questionnaire/questionnaire_page.dart index a5936c00..6bb0d772 100644 --- a/lib/ui/manager/questionnaire/questionnaire_page.dart +++ b/lib/ui/manager/questionnaire/questionnaire_page.dart @@ -6,7 +6,6 @@ import 'package:flutter_easyrefresh/easy_refresh.dart'; import 'package:get/get.dart'; import 'package:aku_new_community/base/base_style.dart'; -import 'package:aku_new_community/constants/api.dart'; import 'package:aku_new_community/constants/new_api.dart'; import 'package:aku_new_community/constants/saas_api.dart'; import 'package:aku_new_community/model/common/img_model.dart'; @@ -15,7 +14,6 @@ import 'package:aku_new_community/pages/things_page/widget/bee_list_view.dart'; import 'package:aku_new_community/ui/manager/questionnaire/questionnaire_detail_page.dart'; import 'package:aku_new_community/utils/headers.dart'; import 'package:aku_new_community/utils/hive_store.dart'; -import 'package:aku_new_community/utils/websocket/tips_dialog.dart'; import 'package:aku_new_community/widget/bee_scaffold.dart'; import 'package:aku_new_community/widget/others/stack_avatar.dart'; diff --git a/lib/ui/manager/questionnaire/questionnaire_truefalse.dart b/lib/ui/manager/questionnaire/questionnaire_truefalse.dart index d438007c..406e1cea 100644 --- a/lib/ui/manager/questionnaire/questionnaire_truefalse.dart +++ b/lib/ui/manager/questionnaire/questionnaire_truefalse.dart @@ -1,6 +1,5 @@ import 'package:flutter/material.dart'; -import 'package:velocity_x/velocity_x.dart'; import 'package:aku_new_community/utils/headers.dart'; import 'package:aku_new_community/widget/buttons/bee_single_check.dart'; diff --git a/lib/ui/manager/questionnaire/submit_complish_page.dart b/lib/ui/manager/questionnaire/submit_complish_page.dart index 34fd29bb..f8e542ec 100644 --- a/lib/ui/manager/questionnaire/submit_complish_page.dart +++ b/lib/ui/manager/questionnaire/submit_complish_page.dart @@ -1,8 +1,6 @@ -import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; import 'package:get/get.dart'; -import 'package:velocity_x/velocity_x.dart'; import 'package:aku_new_community/base/base_style.dart'; import 'package:aku_new_community/utils/headers.dart'; diff --git a/lib/ui/manager/visitor/visitor_list_item.dart b/lib/ui/manager/visitor/visitor_list_item.dart index eaaf871b..9fa4ff02 100644 --- a/lib/ui/manager/visitor/visitor_list_item.dart +++ b/lib/ui/manager/visitor/visitor_list_item.dart @@ -4,7 +4,6 @@ import 'package:flutter/material.dart'; import 'package:bot_toast/bot_toast.dart'; import 'package:common_utils/common_utils.dart'; import 'package:get/get.dart'; -import 'package:velocity_x/velocity_x.dart'; import 'package:aku_new_community/constants/api.dart'; import 'package:aku_new_community/model/manager/visitor_list_item_model.dart'; diff --git a/lib/ui/manager/visitor/visitor_passport_page.dart b/lib/ui/manager/visitor/visitor_passport_page.dart index d03363a5..56fae2f7 100644 --- a/lib/ui/manager/visitor/visitor_passport_page.dart +++ b/lib/ui/manager/visitor/visitor_passport_page.dart @@ -9,10 +9,8 @@ import 'package:bot_toast/bot_toast.dart'; import 'package:common_utils/common_utils.dart'; import 'package:fluwx/fluwx.dart'; import 'package:qr_flutter/qr_flutter.dart'; -import 'package:velocity_x/velocity_x.dart'; import 'package:aku_new_community/base/base_style.dart'; -import 'package:aku_new_community/const/resource.dart'; import 'package:aku_new_community/constants/app_theme.dart'; import 'package:aku_new_community/model/manager/visitor_list_item_model.dart'; import 'package:aku_new_community/utils/headers.dart'; @@ -41,12 +39,11 @@ class _VisitorPassportPageState extends State { child: Scaffold( backgroundColor: Color(0xFF333333), appBar: AppBar( - brightness: Brightness.dark, leading: BeeBackButton(color: Colors.white), backgroundColor: Color(0xFF333333), elevation: 0, centerTitle: true, - title: '访客通行证'.text.white.make(), + title: '访客通行证'.text.white.make(), systemOverlayStyle: SystemUiOverlayStyle.light, ), body: RepaintBoundary( key: _repaintKey, diff --git a/lib/ui/manager/visitor/visitor_record_page.dart b/lib/ui/manager/visitor/visitor_record_page.dart index 26cbe4d8..0cb11b6d 100644 --- a/lib/ui/manager/visitor/visitor_record_page.dart +++ b/lib/ui/manager/visitor/visitor_record_page.dart @@ -1,4 +1,3 @@ -import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; import 'package:aku_new_community/ui/manager/visitor/visitor_record_view.dart'; diff --git a/lib/ui/market/category/new_category_page.dart b/lib/ui/market/category/new_category_page.dart index fd86fa89..3a475ccc 100644 --- a/lib/ui/market/category/new_category_page.dart +++ b/lib/ui/market/category/new_category_page.dart @@ -1,4 +1,3 @@ -import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; import 'package:aku_new_community/base/base_style.dart'; diff --git a/lib/ui/market/order/logistics_page.dart b/lib/ui/market/order/logistics_page.dart index ec4463ca..2924b0e3 100644 --- a/lib/ui/market/order/logistics_page.dart +++ b/lib/ui/market/order/logistics_page.dart @@ -1,6 +1,4 @@ -import 'dart:ui'; -import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; import 'package:aku_new_community/base/base_style.dart'; diff --git a/lib/ui/market/order/order_card.dart b/lib/ui/market/order/order_card.dart index f2d9727f..f27f92f7 100644 --- a/lib/ui/market/order/order_card.dart +++ b/lib/ui/market/order/order_card.dart @@ -2,9 +2,7 @@ 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:velocity_x/velocity_x.dart'; import 'package:aku_new_community/base/base_style.dart'; import 'package:aku_new_community/constants/saas_api.dart'; diff --git a/lib/ui/market/order/order_detail_page.dart b/lib/ui/market/order/order_detail_page.dart index f8fe8342..bc64827c 100644 --- a/lib/ui/market/order/order_detail_page.dart +++ b/lib/ui/market/order/order_detail_page.dart @@ -4,12 +4,9 @@ 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:velocity_x/velocity_x.dart'; import 'package:aku_new_community/base/base_style.dart'; -import 'package:aku_new_community/const/resource.dart'; import 'package:aku_new_community/constants/api.dart'; import 'package:aku_new_community/constants/saas_api.dart'; import 'package:aku_new_community/gen/assets.gen.dart'; diff --git a/lib/ui/market/search/good_detail_bottomSheet.dart b/lib/ui/market/search/good_detail_bottomSheet.dart index 037b279a..660135d8 100644 --- a/lib/ui/market/search/good_detail_bottomSheet.dart +++ b/lib/ui/market/search/good_detail_bottomSheet.dart @@ -9,7 +9,6 @@ import 'package:flutter/material.dart'; -import 'package:flutter_screenutil/flutter_screenutil.dart'; import 'package:aku_new_community/base/base_style.dart'; import 'package:aku_new_community/models/market/good_detail_model.dart'; diff --git a/lib/ui/market/search/search_goods_page.dart b/lib/ui/market/search/search_goods_page.dart index 210f685e..ee96153e 100644 --- a/lib/ui/market/search/search_goods_page.dart +++ b/lib/ui/market/search/search_goods_page.dart @@ -1,4 +1,3 @@ -import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; import 'package:flutter_easyrefresh/easy_refresh.dart'; @@ -723,7 +722,7 @@ class SearchGoodsPageState extends State { ), ), Spacer(), - (_searchHistory != null && _searchHistory.length > 0) + (_searchHistory.length > 0) ? GestureDetector( onTap: () { _searchHistory = []; diff --git a/lib/ui/market/search/submit_order_page.dart b/lib/ui/market/search/submit_order_page.dart index c07d56c2..9790176e 100644 --- a/lib/ui/market/search/submit_order_page.dart +++ b/lib/ui/market/search/submit_order_page.dart @@ -3,13 +3,10 @@ import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; import 'package:bot_toast/bot_toast.dart'; -import 'package:flutter_screenutil/flutter_screenutil.dart'; import 'package:get/get.dart'; import 'package:provider/provider.dart'; -import 'package:velocity_x/velocity_x.dart'; import 'package:aku_new_community/base/base_style.dart'; -import 'package:aku_new_community/const/resource.dart'; import 'package:aku_new_community/constants/api.dart'; import 'package:aku_new_community/constants/saas_api.dart'; import 'package:aku_new_community/model/order/create_order_model.dart'; diff --git a/lib/ui/market/search/submit_order_page_normal.dart b/lib/ui/market/search/submit_order_page_normal.dart index 17085e19..5d3f604c 100644 --- a/lib/ui/market/search/submit_order_page_normal.dart +++ b/lib/ui/market/search/submit_order_page_normal.dart @@ -8,7 +8,6 @@ import 'package:get/get.dart'; import 'package:provider/provider.dart'; import 'package:aku_new_community/base/base_style.dart'; -import 'package:aku_new_community/constants/api.dart'; import 'package:aku_new_community/constants/saas_api.dart'; import 'package:aku_new_community/gen/assets.gen.dart'; import 'package:aku_new_community/model/order/create_order_model.dart'; diff --git a/lib/ui/market/shop_car/shop_car_page.dart b/lib/ui/market/shop_car/shop_car_page.dart index 1484cdf9..7ece0f71 100644 --- a/lib/ui/market/shop_car/shop_car_page.dart +++ b/lib/ui/market/shop_car/shop_car_page.dart @@ -5,12 +5,9 @@ import 'package:flutter/services.dart'; import 'package:bot_toast/bot_toast.dart'; import 'package:common_utils/common_utils.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_new_community/base/base_style.dart'; -import 'package:aku_new_community/const/resource.dart'; import 'package:aku_new_community/constants/saas_api.dart'; import 'package:aku_new_community/models/market/shop_car/shop_car_list_model.dart'; import 'package:aku_new_community/ui/market/search/submit_order_page.dart'; @@ -254,11 +251,9 @@ class _ShopCarPageState extends State { }, showMessage: true, ); - if (model.success != null) { - if (model.success) { - _selectIndex.clear(); - _refreshController.callRefresh(); - } + if (model.success) { + _selectIndex.clear(); + _refreshController.callRefresh(); } } ; @@ -648,11 +643,9 @@ class _ShopCarPageState extends State { }, showMessage: true, ); - if (model.success != null) { - if (model.success) { - _selectIndex.clear(); - _refreshController.callRefresh(); - } + if (model.success) { + _selectIndex.clear(); + _refreshController.callRefresh(); } } ; diff --git a/lib/ui/market/widget/market_app_bar.dart b/lib/ui/market/widget/market_app_bar.dart index a7c8b980..528a3bee 100644 --- a/lib/ui/market/widget/market_app_bar.dart +++ b/lib/ui/market/widget/market_app_bar.dart @@ -1,6 +1,5 @@ import 'package:flutter/material.dart'; -import 'package:flutter_screenutil/flutter_screenutil.dart'; import 'package:provider/provider.dart'; import 'package:aku_new_community/provider/app_provider.dart'; diff --git a/lib/ui/market/widget/market_success_page.dart b/lib/ui/market/widget/market_success_page.dart index 9fda1d97..5a4b7ade 100644 --- a/lib/ui/market/widget/market_success_page.dart +++ b/lib/ui/market/widget/market_success_page.dart @@ -1,6 +1,4 @@ -import 'dart:ui'; -import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; import 'package:flutter_easyrefresh/easy_refresh.dart'; diff --git a/lib/ui/profile/house/add_house_page.dart b/lib/ui/profile/house/add_house_page.dart index 0e925468..4c372d24 100644 --- a/lib/ui/profile/house/add_house_page.dart +++ b/lib/ui/profile/house/add_house_page.dart @@ -3,11 +3,9 @@ import 'package:flutter/material.dart'; import 'package:bot_toast/bot_toast.dart'; import 'package:common_utils/common_utils.dart'; -import 'package:flutter_screenutil/flutter_screenutil.dart'; import 'package:get/get.dart'; import 'package:aku_new_community/constants/api.dart'; -import 'package:aku_new_community/constants/saas_api.dart'; import 'package:aku_new_community/ui/profile/house/house_item.dart'; import 'package:aku_new_community/ui/profile/house/pick_building_page.dart'; import 'package:aku_new_community/ui/profile/house/pick_role_page.dart'; diff --git a/lib/ui/profile/house/contract_stop/pay_surplus_rent_page.dart b/lib/ui/profile/house/contract_stop/pay_surplus_rent_page.dart index 5d0af137..f0b1f6ca 100644 --- a/lib/ui/profile/house/contract_stop/pay_surplus_rent_page.dart +++ b/lib/ui/profile/house/contract_stop/pay_surplus_rent_page.dart @@ -9,7 +9,6 @@ import 'package:velocity_x/velocity_x.dart'; import 'package:aku_new_community/base/base_style.dart'; import 'package:aku_new_community/constants/api.dart'; -import 'package:aku_new_community/constants/saas_api.dart'; import 'package:aku_new_community/extensions/widget_list_ext.dart'; import 'package:aku_new_community/pages/life_pay/pay_finish_page.dart'; import 'package:aku_new_community/pages/life_pay/pay_util.dart'; diff --git a/lib/ui/profile/house/house_card.dart b/lib/ui/profile/house/house_card.dart index c389700d..af18ef54 100644 --- a/lib/ui/profile/house/house_card.dart +++ b/lib/ui/profile/house/house_card.dart @@ -3,7 +3,6 @@ import 'package:flutter/material.dart'; import 'package:common_utils/common_utils.dart'; import 'package:get/get.dart'; -import 'package:aku_new_community/const/resource.dart'; import 'package:aku_new_community/models/user/passed_house_list_model.dart'; import 'package:aku_new_community/ui/profile/house/pick_my_house_page.dart'; import 'package:aku_new_community/utils/headers.dart'; diff --git a/lib/ui/profile/house/house_func.dart b/lib/ui/profile/house/house_func.dart index fc3aeeeb..fb74c570 100644 --- a/lib/ui/profile/house/house_func.dart +++ b/lib/ui/profile/house/house_func.dart @@ -4,7 +4,6 @@ import 'dart:typed_data'; import 'package:bot_toast/bot_toast.dart'; import 'package:aku_new_community/constants/api.dart'; -import 'package:aku_new_community/constants/saas_api.dart'; import 'package:aku_new_community/models/house/lease_detail_model.dart'; import 'package:aku_new_community/models/house/lease_echo_model.dart'; import 'package:aku_new_community/models/house/submit_model.dart'; diff --git a/lib/ui/profile/house/house_owners_page.dart b/lib/ui/profile/house/house_owners_page.dart index 9e348db2..b2cf3f13 100644 --- a/lib/ui/profile/house/house_owners_page.dart +++ b/lib/ui/profile/house/house_owners_page.dart @@ -3,13 +3,11 @@ import 'package:flutter/material.dart'; import 'package:bot_toast/bot_toast.dart'; import 'package:common_utils/common_utils.dart'; import 'package:flutter_easyrefresh/easy_refresh.dart'; -import 'package:flutter_screenutil/flutter_screenutil.dart'; import 'package:get/get.dart'; import 'package:power_logger/power_logger.dart'; import 'package:provider/provider.dart'; import 'package:aku_new_community/base/base_style.dart'; -import 'package:aku_new_community/const/resource.dart'; import 'package:aku_new_community/models/house/lease_detail_model.dart'; import 'package:aku_new_community/provider/app_provider.dart'; import 'package:aku_new_community/ui/profile/house/add_house_page.dart'; diff --git a/lib/ui/profile/house/lease_pay_query/lease_pay_query_page.dart b/lib/ui/profile/house/lease_pay_query/lease_pay_query_page.dart index 84c7d11a..6d94c4fb 100644 --- a/lib/ui/profile/house/lease_pay_query/lease_pay_query_page.dart +++ b/lib/ui/profile/house/lease_pay_query/lease_pay_query_page.dart @@ -3,9 +3,7 @@ import 'package:flutter/material.dart'; import 'package:common_utils/common_utils.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_new_community/base/base_style.dart'; import 'package:aku_new_community/constants/api.dart'; diff --git a/lib/ui/profile/house/lease_relevation/house_information_check_page.dart b/lib/ui/profile/house/lease_relevation/house_information_check_page.dart index 0f61f45d..615ed1f4 100644 --- a/lib/ui/profile/house/lease_relevation/house_information_check_page.dart +++ b/lib/ui/profile/house/lease_relevation/house_information_check_page.dart @@ -1,13 +1,10 @@ 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_new_community/base/base_style.dart'; -import 'package:aku_new_community/const/resource.dart'; import 'package:aku_new_community/models/house/lease_detail_model.dart'; import 'package:aku_new_community/models/house/submit_model.dart'; import 'package:aku_new_community/ui/profile/house/house_func.dart'; diff --git a/lib/ui/profile/house/lease_relevation/lease_house_card.dart b/lib/ui/profile/house/lease_relevation/lease_house_card.dart index 241c0935..fddb3963 100644 --- a/lib/ui/profile/house/lease_relevation/lease_house_card.dart +++ b/lib/ui/profile/house/lease_relevation/lease_house_card.dart @@ -1,11 +1,8 @@ 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_new_community/base/base_style.dart'; -import 'package:aku_new_community/const/resource.dart'; import 'package:aku_new_community/models/house/lease_list_model.dart'; import 'package:aku_new_community/ui/profile/house/lease_relevation/contract_pay_page.dart'; import 'package:aku_new_community/ui/profile/house/lease_relevation/supplement_information_page.dart'; diff --git a/lib/ui/profile/house/lease_relevation/supplement_information_page.dart b/lib/ui/profile/house/lease_relevation/supplement_information_page.dart index d706082c..662519e1 100644 --- a/lib/ui/profile/house/lease_relevation/supplement_information_page.dart +++ b/lib/ui/profile/house/lease_relevation/supplement_information_page.dart @@ -1,6 +1,5 @@ import 'dart:io'; -import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; import 'package:bot_toast/bot_toast.dart'; diff --git a/lib/ui/profile/house/lease_relevation/tenant_house_list_page.dart b/lib/ui/profile/house/lease_relevation/tenant_house_list_page.dart index afe25b90..fdee1a7f 100644 --- a/lib/ui/profile/house/lease_relevation/tenant_house_list_page.dart +++ b/lib/ui/profile/house/lease_relevation/tenant_house_list_page.dart @@ -5,7 +5,6 @@ import 'package:flutter_screenutil/flutter_screenutil.dart'; import 'package:velocity_x/velocity_x.dart'; import 'package:aku_new_community/constants/api.dart'; -import 'package:aku_new_community/constants/saas_api.dart'; import 'package:aku_new_community/models/house/lease_list_model.dart'; import 'package:aku_new_community/pages/things_page/widget/bee_list_view.dart'; import 'package:aku_new_community/ui/profile/house/lease_relevation/lease_house_card.dart'; diff --git a/lib/ui/profile/house/lease_relevation/upload_contracts_page.dart b/lib/ui/profile/house/lease_relevation/upload_contracts_page.dart index 1c1ad2c8..3110034b 100644 --- a/lib/ui/profile/house/lease_relevation/upload_contracts_page.dart +++ b/lib/ui/profile/house/lease_relevation/upload_contracts_page.dart @@ -1,7 +1,6 @@ import 'dart:io'; import 'package:flutter/cupertino.dart'; -import 'package:flutter/material.dart'; import 'package:bot_toast/bot_toast.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart'; diff --git a/lib/ui/profile/house/pick_role_page.dart b/lib/ui/profile/house/pick_role_page.dart index 96c2457b..21903c1b 100644 --- a/lib/ui/profile/house/pick_role_page.dart +++ b/lib/ui/profile/house/pick_role_page.dart @@ -1,6 +1,5 @@ import 'package:flutter/material.dart'; -import 'package:flutter_screenutil/flutter_screenutil.dart'; import 'package:get/get.dart'; import 'package:aku_new_community/utils/headers.dart'; diff --git a/lib/ui/profile/new_house/member_view.dart b/lib/ui/profile/new_house/member_view.dart index bf7b46ca..bcd11ec3 100644 --- a/lib/ui/profile/new_house/member_view.dart +++ b/lib/ui/profile/new_house/member_view.dart @@ -6,7 +6,6 @@ import 'package:velocity_x/velocity_x.dart'; import 'package:aku_new_community/base/base_style.dart'; import 'package:aku_new_community/constants/saas_api.dart'; -import 'package:aku_new_community/gen/assets.gen.dart'; import 'package:aku_new_community/saas_model/my_house/my_family_member_list_model.dart'; import 'package:aku_new_community/ui/profile/new_house/my_house_page.dart'; import 'package:aku_new_community/utils/bee_map.dart'; diff --git a/lib/ui/profile/new_house/my_family_page.dart b/lib/ui/profile/new_house/my_family_page.dart index 4628f2a2..055b7d77 100644 --- a/lib/ui/profile/new_house/my_family_page.dart +++ b/lib/ui/profile/new_house/my_family_page.dart @@ -10,7 +10,6 @@ import 'package:aku_new_community/ui/profile/new_house/examine_view.dart'; import 'package:aku_new_community/ui/profile/new_house/member_view.dart'; import 'package:aku_new_community/ui/profile/new_house/widgets/add_house_button.dart'; import 'package:aku_new_community/widget/bee_scaffold.dart'; -import 'package:aku_new_community/widget/dialog/certification_dialog.dart'; import 'package:aku_new_community/widget/others/user_tool.dart'; import 'add_house_page.dart'; diff --git a/lib/ui/profile/new_house/my_house_page.dart b/lib/ui/profile/new_house/my_house_page.dart index 8dba3c1c..12b9847f 100644 --- a/lib/ui/profile/new_house/my_house_page.dart +++ b/lib/ui/profile/new_house/my_house_page.dart @@ -17,7 +17,6 @@ import 'package:aku_new_community/ui/profile/new_house/widgets/add_house_button. import 'package:aku_new_community/utils/network/net_util.dart'; import 'package:aku_new_community/widget/bee_divider.dart'; import 'package:aku_new_community/widget/bee_scaffold.dart'; -import 'package:aku_new_community/widget/dialog/certification_dialog.dart'; import 'package:aku_new_community/widget/others/user_tool.dart'; import 'package:aku_new_community/widget/tag/bee_tag.dart'; diff --git a/lib/ui/search/bee_search.dart b/lib/ui/search/bee_search.dart index bd033413..b22b746c 100644 --- a/lib/ui/search/bee_search.dart +++ b/lib/ui/search/bee_search.dart @@ -3,7 +3,6 @@ import 'package:flutter/material.dart'; import 'package:bot_toast/bot_toast.dart'; import 'package:flutter_easyrefresh/easy_refresh.dart'; import 'package:get/get.dart'; -import 'package:velocity_x/velocity_x.dart'; import 'package:aku_new_community/base/base_style.dart'; import 'package:aku_new_community/constants/api.dart'; diff --git a/lib/utils/application_utils.dart b/lib/utils/application_utils.dart index 9dd56bad..98ce55f0 100644 --- a/lib/utils/application_utils.dart +++ b/lib/utils/application_utils.dart @@ -52,6 +52,7 @@ class ApplicationUtil { return item; } } + return null; } List get allApplications => [ diff --git a/lib/utils/login_util.dart b/lib/utils/login_util.dart index 5348187c..af3907ae 100644 --- a/lib/utils/login_util.dart +++ b/lib/utils/login_util.dart @@ -5,7 +5,6 @@ import 'package:provider/provider.dart'; import 'package:aku_new_community/pages/sign/login/other_login_page.dart'; import 'package:aku_new_community/provider/user_provider.dart'; import 'package:aku_new_community/ui/profile/new_house/my_house_page.dart'; -import 'package:aku_new_community/widget/dialog/certification_dialog.dart'; /// | 名称 | 函数 | /// |-----|------| diff --git a/lib/utils/network/net_util.dart b/lib/utils/network/net_util.dart index 22d99f3b..ebe411de 100644 --- a/lib/utils/network/net_util.dart +++ b/lib/utils/network/net_util.dart @@ -10,7 +10,6 @@ import 'package:provider/provider.dart'; import 'package:aku_new_community/constants/saas_api.dart'; import 'package:aku_new_community/pages/sign/login/other_login_page.dart'; -import 'package:aku_new_community/pages/splash/app_verify_dialog.dart'; import 'package:aku_new_community/provider/user_provider.dart'; import 'package:aku_new_community/utils/developer_util.dart'; import 'package:aku_new_community/utils/network/base_list_model.dart'; diff --git a/lib/utils/text_utils.dart b/lib/utils/text_utils.dart index 9a8f9a99..fd5dbfb2 100644 --- a/lib/utils/text_utils.dart +++ b/lib/utils/text_utils.dart @@ -4,9 +4,9 @@ class TextUtils { ///white 全空格是否算空字符串 static bool isEmpty(String str, {bool whiteSpace = false}) { if (whiteSpace) { - return str == null || str.trim().length == 0; + return str.trim().length == 0; } - return str == null || str.length == 0; + return str.length == 0; } static bool isNotEmpty(String str, {bool whiteSpace = false}) { diff --git a/lib/utils/websocket/tips_dialog.dart b/lib/utils/websocket/tips_dialog.dart index 2e0f9587..6e4aa76d 100644 --- a/lib/utils/websocket/tips_dialog.dart +++ b/lib/utils/websocket/tips_dialog.dart @@ -1,5 +1,4 @@ import 'package:flutter/cupertino.dart'; -import 'package:flutter/material.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart'; import 'package:get/get.dart'; diff --git a/lib/widget/animated/OverlayWidget.dart b/lib/widget/animated/OverlayWidget.dart index 406ff994..250f2577 100644 --- a/lib/widget/animated/OverlayWidget.dart +++ b/lib/widget/animated/OverlayWidget.dart @@ -1,9 +1,7 @@ import 'package:flutter/material.dart'; -import 'package:flutter_screenutil/flutter_screenutil.dart'; import 'package:get/get.dart'; -import 'package:aku_new_community/const/resource.dart'; import 'package:aku_new_community/pages/opening_code_page/opening_code_page.dart'; import 'package:aku_new_community/utils/headers.dart'; diff --git a/lib/widget/bottom_sheets/pay_mothod_bottom_sheet.dart b/lib/widget/bottom_sheets/pay_mothod_bottom_sheet.dart index e0533b85..71bb6833 100644 --- a/lib/widget/bottom_sheets/pay_mothod_bottom_sheet.dart +++ b/lib/widget/bottom_sheets/pay_mothod_bottom_sheet.dart @@ -1,5 +1,4 @@ import 'package:flutter/cupertino.dart'; -import 'package:flutter/material.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart'; import 'package:velocity_x/velocity_x.dart'; diff --git a/lib/widget/buttons/column_action_button.dart b/lib/widget/buttons/column_action_button.dart index 7a5bbeec..c36ee3a7 100644 --- a/lib/widget/buttons/column_action_button.dart +++ b/lib/widget/buttons/column_action_button.dart @@ -1,6 +1,5 @@ import 'package:flutter/material.dart'; -import 'package:velocity_x/velocity_x.dart'; import 'package:aku_new_community/utils/headers.dart'; diff --git a/lib/widget/common_input.dart b/lib/widget/common_input.dart index 1453edfc..0cb92985 100644 --- a/lib/widget/common_input.dart +++ b/lib/widget/common_input.dart @@ -1,4 +1,3 @@ -import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; import 'package:aku_new_community/base/base_style.dart'; diff --git a/lib/widget/line/vertical_line_painter.dart b/lib/widget/line/vertical_line_painter.dart index d98c7b2b..c6d5507a 100644 --- a/lib/widget/line/vertical_line_painter.dart +++ b/lib/widget/line/vertical_line_painter.dart @@ -1,4 +1,3 @@ -import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; /// 竖线 diff --git a/lib/widget/others/house_head_card.dart b/lib/widget/others/house_head_card.dart index 7b79b9a0..3c27b224 100644 --- a/lib/widget/others/house_head_card.dart +++ b/lib/widget/others/house_head_card.dart @@ -1,13 +1,10 @@ import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; -import 'package:flutter_screenutil/flutter_screenutil.dart'; import 'package:get/get.dart'; import 'package:provider/provider.dart'; -import 'package:velocity_x/velocity_x.dart'; import 'package:aku_new_community/base/base_style.dart'; -import 'package:aku_new_community/const/resource.dart'; import 'package:aku_new_community/provider/user_provider.dart'; import 'package:aku_new_community/ui/profile/new_house/my_house_page.dart'; import 'package:aku_new_community/utils/headers.dart'; diff --git a/lib/widget/others/rectIndicator.dart b/lib/widget/others/rectIndicator.dart index 00f10a14..fed3cb7e 100644 --- a/lib/widget/others/rectIndicator.dart +++ b/lib/widget/others/rectIndicator.dart @@ -1,4 +1,3 @@ -import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; class RectIndicator extends StatelessWidget { @@ -21,8 +20,7 @@ class RectIndicator extends StatelessWidget { this.color: Colors.white, required this.radius, this.activeColor: const Color(0xFF3E4750), - }) : assert(count != null && position != null), - super(key: key); + }) : super(key: key); _indicator(bool isActive) { return AnimatedContainer( diff --git a/lib/widget/picker/bee_date_picker.dart b/lib/widget/picker/bee_date_picker.dart index 606bef85..134c5ed1 100644 --- a/lib/widget/picker/bee_date_picker.dart +++ b/lib/widget/picker/bee_date_picker.dart @@ -1,5 +1,4 @@ import 'package:flutter/cupertino.dart'; -import 'package:flutter/material.dart'; import 'package:get/get.dart'; import 'package:velocity_x/velocity_x.dart'; diff --git a/lib/widget/picker/bee_day_picker.dart b/lib/widget/picker/bee_day_picker.dart index 59da3fa0..a944735d 100644 --- a/lib/widget/picker/bee_day_picker.dart +++ b/lib/widget/picker/bee_day_picker.dart @@ -1,14 +1,9 @@ import 'package:flutter/cupertino.dart'; -import 'package:flutter/material.dart'; import 'package:get/get.dart'; import 'package:velocity_x/velocity_x.dart'; -import 'package:aku_new_community/models/facility/facility_type_detail_model.dart'; -import 'package:aku_new_community/ui/community/facility/facility_preorder_date_picker.dart'; import 'package:aku_new_community/widget/picker/bee_choose_date_picker.dart'; -import 'package:aku_new_community/widget/picker/bee_custom_picker.dart'; -import 'package:aku_new_community/widget/picker/bee_month_pick_body.dart'; class BeeDayPicker { diff --git a/lib/widget/picker/bee_house_picker.dart b/lib/widget/picker/bee_house_picker.dart index de927f84..80a3891c 100644 --- a/lib/widget/picker/bee_house_picker.dart +++ b/lib/widget/picker/bee_house_picker.dart @@ -3,7 +3,6 @@ import 'package:flutter/material.dart'; import 'package:get/get.dart'; import 'package:provider/provider.dart'; -import 'package:velocity_x/velocity_x.dart'; import 'package:aku_new_community/provider/app_provider.dart'; import 'package:aku_new_community/ui/profile/house/pick_my_house_page.dart'; diff --git a/lib/widget/picker/bee_image_picker.dart b/lib/widget/picker/bee_image_picker.dart index b8406437..b492ccc9 100644 --- a/lib/widget/picker/bee_image_picker.dart +++ b/lib/widget/picker/bee_image_picker.dart @@ -4,7 +4,6 @@ import 'package:flutter/cupertino.dart'; import 'package:get/get.dart'; import 'package:image_picker/image_picker.dart'; -import 'package:velocity_x/velocity_x.dart'; import 'package:aku_new_community/utils/headers.dart'; diff --git a/lib/widget/picker/bee_month_pick_body.dart b/lib/widget/picker/bee_month_pick_body.dart index 1b1337f0..f04e8dff 100644 --- a/lib/widget/picker/bee_month_pick_body.dart +++ b/lib/widget/picker/bee_month_pick_body.dart @@ -1,14 +1,7 @@ import 'package:flutter/cupertino.dart'; -import 'package:flutter/material.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart'; -import 'package:aku_new_community/saas_model/login/china_region_model.dart'; -import 'package:aku_new_community/saas_model/login/picked_city_model.dart'; -import 'package:aku_new_community/utils/hive_store.dart'; -import '../../constants/saas_api.dart'; -import '../../utils/network/base_list_model.dart'; -import '../../utils/network/net_util.dart'; import 'bee_picker_box.dart'; class BeeMonthPickBody extends StatefulWidget { diff --git a/lib/widget/views/application_box.dart b/lib/widget/views/application_box.dart index 5c6e8025..ecd4d07d 100644 --- a/lib/widget/views/application_box.dart +++ b/lib/widget/views/application_box.dart @@ -1,7 +1,5 @@ -import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; -import 'package:flutter_screenutil/flutter_screenutil.dart'; import 'package:aku_new_community/utils/headers.dart'; diff --git a/lib/widget/views/application_view.dart b/lib/widget/views/application_view.dart index a296381a..cf4d6bf1 100644 --- a/lib/widget/views/application_view.dart +++ b/lib/widget/views/application_view.dart @@ -2,7 +2,6 @@ import 'package:flutter/material.dart'; import 'package:bot_toast/bot_toast.dart'; import 'package:provider/provider.dart'; -import 'package:velocity_x/velocity_x.dart'; import 'package:aku_new_community/constants/application_objects.dart'; import 'package:aku_new_community/provider/app_provider.dart'; diff --git a/lib/widget/views/bee_hor_image_view.dart b/lib/widget/views/bee_hor_image_view.dart index f4c84efc..0aa12bf4 100644 --- a/lib/widget/views/bee_hor_image_view.dart +++ b/lib/widget/views/bee_hor_image_view.dart @@ -1,4 +1,3 @@ -import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart'; diff --git a/lib/widget/views/horizontal_image_view.dart b/lib/widget/views/horizontal_image_view.dart index 2e32bc91..37782b0d 100644 --- a/lib/widget/views/horizontal_image_view.dart +++ b/lib/widget/views/horizontal_image_view.dart @@ -1,9 +1,6 @@ import 'package:flutter/material.dart'; -import 'package:flutter/rendering.dart'; -import 'package:flutter_screenutil/flutter_screenutil.dart'; -import 'package:aku_new_community/const/resource.dart'; import 'package:aku_new_community/constants/saas_api.dart'; import 'package:aku_new_community/utils/headers.dart'; import 'package:aku_new_community/widget/picker/bee_image_preview.dart';