From 9e4d7b974a1c589519b8e18c15884ee07de563bb Mon Sep 17 00:00:00 2001 From: zhang <494089941@qq.com> Date: Mon, 18 Jan 2021 10:38:14 +0800 Subject: [PATCH] remove unused import --- .../activities_details_page.dart | 1 - .../activities_page/activities_page.dart | 1 - .../member_list_page/member_list_page.dart | 1 - .../certification_page.dart | 1 - lib/pages/community/community_index.dart | 70 +++++------ lib/pages/community/widget/topic_card.dart | 2 - lib/pages/community/widget/trend_card.dart | 86 ++++++------- .../confirm_order_page/pay_order_page.dart | 1 - .../widget/confirm_address.dart | 2 - .../widget/confirm_bottom_bar.dart | 2 - .../convenient_phone_page.dart | 1 - lib/pages/fitup_manage/fitup_manage_page.dart | 1 - .../goods_details/goods_details_page.dart | 1 - .../widget/goods_details_bottom_bar.dart | 2 - .../deto_code_page/deto_code_page.dart | 1 - .../deto_create_page/deto_create_page.dart | 1 - .../goods_deto_page/goods_deto_page.dart | 3 - .../mine_goods_page/mine_goods_page.dart | 1 - .../committee_mailbox_page.dart | 1 - .../industry_committee_page.dart | 1 - .../life_pay_bill_page.dart | 1 - .../life_pay_info_page.dart | 1 - .../car_add_page/car_add_page.dart | 1 - lib/pages/notice_page/notice_page.dart | 1 - lib/pages/open_door_page/open_door_page.dart | 2 - lib/pages/personal/refund_select_page.dart | 1 - .../questionnaire_page.dart | 1 - .../setting_page/about_page/about_page.dart | 1 - .../feedback_page/feedback_page.dart | 1 - .../setting_page/invite_page/invite_page.dart | 1 - .../things_create_page.dart | 1 - .../widget/goods_info_card_button.dart | 1 - .../things_evaluate_page.dart | 1 - .../visitor_pass_page.dart | 1 - .../widget/record_item.dart | 1 - lib/utils/logger/logger_dio_err.dart | 1 - lib/utils/logger/logger_view.dart | 1 - lib/widget/app_bar_action.dart | 1 - lib/widget/goods_specs_sheet.dart | 114 +++++++++--------- 39 files changed, 135 insertions(+), 178 deletions(-) diff --git a/lib/pages/activities_page/activities_details_page/activities_details_page.dart b/lib/pages/activities_page/activities_details_page/activities_details_page.dart index 43a9e024..7b95cf87 100644 --- a/lib/pages/activities_page/activities_details_page/activities_details_page.dart +++ b/lib/pages/activities_page/activities_details_page/activities_details_page.dart @@ -11,7 +11,6 @@ import 'package:akuCommunity/base/base_style.dart'; import 'package:akuCommunity/widget/cached_image_wrapper.dart'; import 'package:akuCommunity/widget/bottom_button.dart'; import 'package:akuCommunity/routers/page_routers.dart'; -import 'package:akuCommunity/widget/common_app_bar.dart'; class ActivitiesDetailsPage extends StatefulWidget { final Bundle bundle; diff --git a/lib/pages/activities_page/activities_page.dart b/lib/pages/activities_page/activities_page.dart index fcd845ff..99d83a96 100644 --- a/lib/pages/activities_page/activities_page.dart +++ b/lib/pages/activities_page/activities_page.dart @@ -5,7 +5,6 @@ import 'package:get/get.dart'; import 'package:pull_to_refresh/pull_to_refresh.dart'; import 'package:akuCommunity/routers/page_routers.dart'; import 'package:akuCommunity/widget/activity_card.dart'; -import 'package:akuCommunity/widget/common_app_bar.dart'; class ActivitiesPage extends StatefulWidget { final Bundle bundle; diff --git a/lib/pages/activities_page/member_list_page/member_list_page.dart b/lib/pages/activities_page/member_list_page/member_list_page.dart index ca7ab9a6..9c3e0408 100644 --- a/lib/pages/activities_page/member_list_page/member_list_page.dart +++ b/lib/pages/activities_page/member_list_page/member_list_page.dart @@ -5,7 +5,6 @@ import 'package:pull_to_refresh/pull_to_refresh.dart'; import 'package:akuCommunity/utils/headers.dart'; import 'package:akuCommunity/base/base_style.dart'; import 'package:akuCommunity/widget/cached_image_wrapper.dart'; -import 'package:akuCommunity/widget/common_app_bar.dart'; class MemberListPage extends StatefulWidget { MemberListPage({Key key}) : super(key: key); diff --git a/lib/pages/certification_page/certification_page.dart b/lib/pages/certification_page/certification_page.dart index 7a786fd9..879a09f7 100644 --- a/lib/pages/certification_page/certification_page.dart +++ b/lib/pages/certification_page/certification_page.dart @@ -4,7 +4,6 @@ import 'package:flutter/cupertino.dart'; import 'package:akuCommunity/base/assets_image.dart'; import 'package:akuCommunity/utils/headers.dart'; import 'package:akuCommunity/widget/common_input.dart'; -import 'package:akuCommunity/widget/common_app_bar.dart'; import 'package:akuCommunity/widget/single_image_up.dart'; class CertificationPage extends StatefulWidget { diff --git a/lib/pages/community/community_index.dart b/lib/pages/community/community_index.dart index a6cea430..dccb70a1 100644 --- a/lib/pages/community/community_index.dart +++ b/lib/pages/community/community_index.dart @@ -56,41 +56,41 @@ class _CommunityIndexState extends State ]; } - AppBar _appBar() { - return AppBar( - backgroundColor: Colors.white, - elevation: 0, - title: Text("社区"), - centerTitle: true, - actions: _listActions(), - bottom: PreferredSize( - preferredSize: Size.fromHeight(kToolbarHeight), - child: Align( - alignment: Alignment.centerLeft, - child: TabBar( - controller: _tabController, - isScrollable: true, - indicatorColor: Color(0xffFFd000), - labelColor: Color(0xff000000), - unselectedLabelColor: Color(0xFF3A5160).withOpacity(0.5), - indicatorWeight: 2.0, - indicatorSize: TabBarIndicatorSize.label, - labelStyle: TextStyle( - fontSize: 28.sp, - color: Color(0xff333333), - fontWeight: FontWeight.w600, - ), - tabs: List.generate( - tabs.length, - (index) => Tab( - text: tabs[index]['name'], - ), - ), - ), - ), - ), - ); - } + // AppBar _appBar() { + // return AppBar( + // backgroundColor: Colors.white, + // elevation: 0, + // title: Text("社区"), + // centerTitle: true, + // actions: _listActions(), + // bottom: PreferredSize( + // preferredSize: Size.fromHeight(kToolbarHeight), + // child: Align( + // alignment: Alignment.centerLeft, + // child: TabBar( + // controller: _tabController, + // isScrollable: true, + // indicatorColor: Color(0xffFFd000), + // labelColor: Color(0xff000000), + // unselectedLabelColor: Color(0xFF3A5160).withOpacity(0.5), + // indicatorWeight: 2.0, + // indicatorSize: TabBarIndicatorSize.label, + // labelStyle: TextStyle( + // fontSize: 28.sp, + // color: Color(0xff333333), + // fontWeight: FontWeight.w600, + // ), + // tabs: List.generate( + // tabs.length, + // (index) => Tab( + // text: tabs[index]['name'], + // ), + // ), + // ), + // ), + // ), + // ); + // } FloatingActionButton _floatingActionButton() { return FloatingActionButton( diff --git a/lib/pages/community/widget/topic_card.dart b/lib/pages/community/widget/topic_card.dart index d2c0d17e..f07d3739 100644 --- a/lib/pages/community/widget/topic_card.dart +++ b/lib/pages/community/widget/topic_card.dart @@ -3,8 +3,6 @@ import 'package:flutter/material.dart'; import 'package:flutter/cupertino.dart'; import 'package:flutter_icons/flutter_icons.dart'; import 'package:akuCommunity/utils/headers.dart'; -import 'package:akuCommunity/routers/page_routers.dart'; -import 'package:get/get.dart'; class TopicCard extends StatefulWidget { final String title, subtitle, imagePath, hotNum; diff --git a/lib/pages/community/widget/trend_card.dart b/lib/pages/community/widget/trend_card.dart index c05cc8ad..6afd7c7e 100644 --- a/lib/pages/community/widget/trend_card.dart +++ b/lib/pages/community/widget/trend_card.dart @@ -39,49 +39,49 @@ class _TrendCardState extends State { _isLike = widget.isLike ?? false; } - void _showDialog(String url) { - showCupertinoDialog( - context: context, - builder: (context) { - return CupertinoAlertDialog( - title: Text( - '是否$url\?', - style: TextStyle( - fontSize: 34.sp, - color: Color(0xff030303), - ), - ), - actions: [ - CupertinoDialogAction( - child: Text( - '取消', - style: TextStyle( - fontSize: 34.sp, - color: Color(0xff333333), - ), - ), - onPressed: () { - Get.back(); - }, - ), - CupertinoDialogAction( - child: Text( - '确定', - style: TextStyle( - fontWeight: FontWeight.w600, - fontSize: 34.sp, - color: Color(0xffff8200), - ), - ), - onPressed: () { - Get.back(); - }, - ), - ], - ); - }, - ); - } + // void _showDialog(String url) { + // showCupertinoDialog( + // context: context, + // builder: (context) { + // return CupertinoAlertDialog( + // title: Text( + // '是否$url\?', + // style: TextStyle( + // fontSize: 34.sp, + // color: Color(0xff030303), + // ), + // ), + // actions: [ + // CupertinoDialogAction( + // child: Text( + // '取消', + // style: TextStyle( + // fontSize: 34.sp, + // color: Color(0xff333333), + // ), + // ), + // onPressed: () { + // Get.back(); + // }, + // ), + // CupertinoDialogAction( + // child: Text( + // '确定', + // style: TextStyle( + // fontWeight: FontWeight.w600, + // fontSize: 34.sp, + // color: Color(0xffff8200), + // ), + // ), + // onPressed: () { + // Get.back(); + // }, + // ), + // ], + // ); + // }, + // ); + // } TextStyle _textStyleName() { return TextStyle( diff --git a/lib/pages/confirm_order_page/pay_order_page.dart b/lib/pages/confirm_order_page/pay_order_page.dart index a7472b68..b088fe5c 100644 --- a/lib/pages/confirm_order_page/pay_order_page.dart +++ b/lib/pages/confirm_order_page/pay_order_page.dart @@ -7,7 +7,6 @@ import 'package:rflutter_alert/rflutter_alert.dart'; import 'package:akuCommunity/utils/headers.dart'; import 'package:akuCommunity/base/assets_image.dart'; import 'package:akuCommunity/routers/page_routers.dart'; -import 'package:akuCommunity/widget/common_app_bar.dart'; class PayOrderPage extends StatelessWidget { final Bundle bundle; diff --git a/lib/pages/confirm_order_page/widget/confirm_address.dart b/lib/pages/confirm_order_page/widget/confirm_address.dart index 62569df4..4fa5f5a8 100644 --- a/lib/pages/confirm_order_page/widget/confirm_address.dart +++ b/lib/pages/confirm_order_page/widget/confirm_address.dart @@ -4,8 +4,6 @@ import 'package:flutter/cupertino.dart'; import 'package:flutter_icons/flutter_icons.dart'; import 'package:akuCommunity/utils/headers.dart'; import 'package:akuCommunity/base/assets_image.dart'; -import 'package:akuCommunity/routers/page_routers.dart'; -import 'package:get/get.dart'; class ConfirmAddress extends StatefulWidget { ConfirmAddress({Key key}) : super(key: key); diff --git a/lib/pages/confirm_order_page/widget/confirm_bottom_bar.dart b/lib/pages/confirm_order_page/widget/confirm_bottom_bar.dart index 1998a753..2351322e 100644 --- a/lib/pages/confirm_order_page/widget/confirm_bottom_bar.dart +++ b/lib/pages/confirm_order_page/widget/confirm_bottom_bar.dart @@ -3,8 +3,6 @@ import 'package:flutter/material.dart'; import 'package:flutter/cupertino.dart'; import 'package:akuCommunity/utils/headers.dart'; import 'package:akuCommunity/base/base_style.dart'; -import 'package:akuCommunity/routers/page_routers.dart'; -import 'package:get/get.dart'; class ConfirmBottomBar extends StatelessWidget { final Map cartMap; diff --git a/lib/pages/convenient_phone/convenient_phone_page.dart b/lib/pages/convenient_phone/convenient_phone_page.dart index ab00ad31..63a56886 100644 --- a/lib/pages/convenient_phone/convenient_phone_page.dart +++ b/lib/pages/convenient_phone/convenient_phone_page.dart @@ -4,7 +4,6 @@ import 'package:flutter/cupertino.dart'; import 'package:flutter_icons/flutter_icons.dart'; import 'package:akuCommunity/utils/headers.dart'; import 'package:akuCommunity/widget/sliver_app_bar_delegate.dart'; -import 'package:akuCommunity/widget/common_app_bar.dart'; import 'package:akuCommunity/widget/search_bar_delegate.dart'; import 'widget/phone_list.dart'; diff --git a/lib/pages/fitup_manage/fitup_manage_page.dart b/lib/pages/fitup_manage/fitup_manage_page.dart index 9d99a1f4..9553ec6e 100644 --- a/lib/pages/fitup_manage/fitup_manage_page.dart +++ b/lib/pages/fitup_manage/fitup_manage_page.dart @@ -4,7 +4,6 @@ import 'package:flutter/cupertino.dart'; import 'package:akuCommunity/utils/headers.dart'; import 'package:akuCommunity/base/base_style.dart'; import 'package:akuCommunity/widget/sliver_app_bar_delegate.dart'; -import 'package:akuCommunity/widget/common_app_bar.dart'; import 'widget/owner_manage.dart'; import 'widget/director_manage.dart'; diff --git a/lib/pages/goods_details/goods_details_page.dart b/lib/pages/goods_details/goods_details_page.dart index e82a1c94..82353a55 100644 --- a/lib/pages/goods_details/goods_details_page.dart +++ b/lib/pages/goods_details/goods_details_page.dart @@ -4,7 +4,6 @@ import 'package:flutter/material.dart'; import 'package:flutter/cupertino.dart'; import 'package:akuCommunity/routers/page_routers.dart'; import 'package:akuCommunity/utils/headers.dart'; -import 'package:get/get.dart'; import 'widget/goods_app_bar.dart'; import 'widget/product_swiper.dart'; import 'widget/product_content.dart'; diff --git a/lib/pages/goods_details/widget/goods_details_bottom_bar.dart b/lib/pages/goods_details/widget/goods_details_bottom_bar.dart index 871101e8..588332e4 100644 --- a/lib/pages/goods_details/widget/goods_details_bottom_bar.dart +++ b/lib/pages/goods_details/widget/goods_details_bottom_bar.dart @@ -1,9 +1,7 @@ import 'package:akuCommunity/pages/market/market_cart_page/market_cart_page.dart'; -import 'package:akuCommunity/routers/page_routers.dart'; import 'package:flutter/material.dart'; import 'package:flutter/cupertino.dart'; import 'package:flutter_icons/flutter_icons.dart'; -import 'package:get/get.dart'; import 'package:provider/provider.dart'; import 'package:akuCommunity/provider/cart.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart'; diff --git a/lib/pages/goods_deto_page/deto_code_page/deto_code_page.dart b/lib/pages/goods_deto_page/deto_code_page/deto_code_page.dart index 95c5bbb1..a4588895 100644 --- a/lib/pages/goods_deto_page/deto_code_page/deto_code_page.dart +++ b/lib/pages/goods_deto_page/deto_code_page/deto_code_page.dart @@ -5,7 +5,6 @@ import 'package:flutter_icons/flutter_icons.dart'; import 'package:qr_flutter/qr_flutter.dart'; import 'package:akuCommunity/utils/headers.dart'; import 'package:akuCommunity/widget/dotted_line.dart'; -import 'package:akuCommunity/widget/common_app_bar.dart'; class DetoCodePage extends StatelessWidget { const DetoCodePage({Key key}) : super(key: key); diff --git a/lib/pages/goods_deto_page/deto_create_page/deto_create_page.dart b/lib/pages/goods_deto_page/deto_create_page/deto_create_page.dart index 4bd9c61d..14db6d84 100644 --- a/lib/pages/goods_deto_page/deto_create_page/deto_create_page.dart +++ b/lib/pages/goods_deto_page/deto_create_page/deto_create_page.dart @@ -5,7 +5,6 @@ import 'package:akuCommunity/utils/headers.dart'; import 'package:akuCommunity/base/assets_image.dart'; import 'package:akuCommunity/widget/common_image_picker.dart'; import 'package:akuCommunity/widget/bottom_button.dart'; -import 'package:akuCommunity/widget/common_app_bar.dart'; import 'widget/common_radio.dart'; import 'widget/common_picker.dart'; diff --git a/lib/pages/goods_deto_page/goods_deto_page.dart b/lib/pages/goods_deto_page/goods_deto_page.dart index 404919c9..c53e2311 100644 --- a/lib/pages/goods_deto_page/goods_deto_page.dart +++ b/lib/pages/goods_deto_page/goods_deto_page.dart @@ -3,11 +3,8 @@ import 'package:akuCommunity/utils/headers.dart'; import 'package:akuCommunity/widget/bee_scaffold.dart'; import 'package:flutter/material.dart'; import 'package:flutter/cupertino.dart'; -import 'package:get/get.dart'; import 'package:pull_to_refresh/pull_to_refresh.dart'; -import 'package:akuCommunity/routers/page_routers.dart'; import 'package:akuCommunity/widget/bottom_button.dart'; -import 'package:akuCommunity/widget/common_app_bar.dart'; import 'widget/goods_info_card.dart'; class GoodsDetoPage extends StatefulWidget { diff --git a/lib/pages/goods_manage_page/mine_goods_page/mine_goods_page.dart b/lib/pages/goods_manage_page/mine_goods_page/mine_goods_page.dart index 048f8e36..13d2d7a8 100644 --- a/lib/pages/goods_manage_page/mine_goods_page/mine_goods_page.dart +++ b/lib/pages/goods_manage_page/mine_goods_page/mine_goods_page.dart @@ -3,7 +3,6 @@ import 'package:flutter/material.dart'; import 'package:flutter/cupertino.dart'; import 'package:pull_to_refresh/pull_to_refresh.dart'; import 'package:akuCommunity/utils/headers.dart'; -import 'package:akuCommunity/widget/common_app_bar.dart'; class MineGoodsPage extends StatefulWidget { MineGoodsPage({Key key}) : super(key: key); diff --git a/lib/pages/industry_committee/committee_mailbox/committee_mailbox_page.dart b/lib/pages/industry_committee/committee_mailbox/committee_mailbox_page.dart index 4f43206a..d77fa7da 100644 --- a/lib/pages/industry_committee/committee_mailbox/committee_mailbox_page.dart +++ b/lib/pages/industry_committee/committee_mailbox/committee_mailbox_page.dart @@ -2,7 +2,6 @@ import 'package:akuCommunity/widget/bee_scaffold.dart'; import 'package:flutter/material.dart'; import 'package:flutter/cupertino.dart'; import 'package:akuCommunity/utils/headers.dart'; -import 'package:akuCommunity/widget/common_app_bar.dart'; class CommitteeMailboxPage extends StatefulWidget { CommitteeMailboxPage({Key key}) : super(key: key); diff --git a/lib/pages/industry_committee/industry_committee_page.dart b/lib/pages/industry_committee/industry_committee_page.dart index dbf8721d..b8ef62a8 100644 --- a/lib/pages/industry_committee/industry_committee_page.dart +++ b/lib/pages/industry_committee/industry_committee_page.dart @@ -5,7 +5,6 @@ import 'package:flutter/cupertino.dart'; import 'package:get/get.dart'; import 'package:url_launcher/url_launcher.dart'; import 'package:akuCommunity/utils/headers.dart'; -import 'package:akuCommunity/widget/common_app_bar.dart'; import 'widget/staff_list.dart'; class IndustryCommitteePage extends StatefulWidget { 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 71aa3e02..36fa7e6e 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 @@ -2,7 +2,6 @@ import 'package:akuCommunity/widget/bee_scaffold.dart'; import 'package:flutter/material.dart'; import 'package:flutter/cupertino.dart'; import 'package:akuCommunity/utils/headers.dart'; -import 'package:akuCommunity/widget/common_app_bar.dart'; import 'widget/bill_card.dart'; class LifePayBillPage extends StatefulWidget { diff --git a/lib/pages/life_pay/life_pay_info_page/life_pay_info_page.dart b/lib/pages/life_pay/life_pay_info_page/life_pay_info_page.dart index 1376797b..9306f601 100644 --- a/lib/pages/life_pay/life_pay_info_page/life_pay_info_page.dart +++ b/lib/pages/life_pay/life_pay_info_page/life_pay_info_page.dart @@ -4,7 +4,6 @@ import 'package:flutter/material.dart'; import 'package:flutter/cupertino.dart'; import 'package:akuCommunity/utils/headers.dart'; import 'package:akuCommunity/routers/page_routers.dart'; -import 'package:akuCommunity/widget/common_app_bar.dart'; import 'widget/details_card.dart'; import '../widget/submit_bar.dart'; diff --git a/lib/pages/mine_car_page/car_add_page/car_add_page.dart b/lib/pages/mine_car_page/car_add_page/car_add_page.dart index 46ad33c9..0d72d7a6 100644 --- a/lib/pages/mine_car_page/car_add_page/car_add_page.dart +++ b/lib/pages/mine_car_page/car_add_page/car_add_page.dart @@ -2,7 +2,6 @@ import 'package:akuCommunity/widget/bee_scaffold.dart'; import 'package:flutter/material.dart'; import 'package:flutter/cupertino.dart'; import 'package:akuCommunity/utils/headers.dart'; -import 'package:akuCommunity/widget/common_app_bar.dart'; import 'package:akuCommunity/widget/common_input.dart'; class CarAddPage extends StatefulWidget { diff --git a/lib/pages/notice_page/notice_page.dart b/lib/pages/notice_page/notice_page.dart index 72295394..49ea78a6 100644 --- a/lib/pages/notice_page/notice_page.dart +++ b/lib/pages/notice_page/notice_page.dart @@ -5,7 +5,6 @@ import 'package:flutter_html/flutter_html.dart'; import 'package:akuCommunity/utils/headers.dart'; import 'package:akuCommunity/routers/page_routers.dart'; import 'package:akuCommunity/widget/cached_image_wrapper.dart'; -import 'package:akuCommunity/widget/common_app_bar.dart'; const htmlData = '''

今天,宁波市住房和城乡建设局、宁波市自然资源和规 diff --git a/lib/pages/open_door_page/open_door_page.dart b/lib/pages/open_door_page/open_door_page.dart index f6717543..3fcf7c0a 100644 --- a/lib/pages/open_door_page/open_door_page.dart +++ b/lib/pages/open_door_page/open_door_page.dart @@ -3,8 +3,6 @@ import 'package:akuCommunity/widget/bee_scaffold.dart'; import 'package:flutter/material.dart'; import 'package:flutter/cupertino.dart'; import 'package:akuCommunity/utils/headers.dart'; -import 'package:akuCommunity/routers/page_routers.dart'; -import 'package:akuCommunity/widget/common_app_bar.dart'; import 'package:get/get.dart'; class OpenDoorPage extends StatefulWidget { diff --git a/lib/pages/personal/refund_select_page.dart b/lib/pages/personal/refund_select_page.dart index ef223eea..1bce5b6f 100644 --- a/lib/pages/personal/refund_select_page.dart +++ b/lib/pages/personal/refund_select_page.dart @@ -4,7 +4,6 @@ import 'package:flutter/material.dart'; import 'package:flutter/cupertino.dart'; import 'package:flutter_icons/flutter_icons.dart'; import 'package:akuCommunity/utils/headers.dart'; -import 'package:akuCommunity/base/base_style.dart'; import 'package:akuCommunity/routers/page_routers.dart'; import 'package:get/get.dart'; import 'widget/refund_shop_card.dart'; diff --git a/lib/pages/questionnaire_page/questionnaire_page.dart b/lib/pages/questionnaire_page/questionnaire_page.dart index c336d507..77327939 100644 --- a/lib/pages/questionnaire_page/questionnaire_page.dart +++ b/lib/pages/questionnaire_page/questionnaire_page.dart @@ -5,7 +5,6 @@ import 'package:flutter/cupertino.dart'; import 'package:pull_to_refresh/pull_to_refresh.dart'; import 'package:akuCommunity/routers/page_routers.dart'; import 'package:akuCommunity/widget/community_card.dart'; -import 'package:akuCommunity/widget/common_app_bar.dart'; import 'package:akuCommunity/utils/headers.dart'; class QuestionnairePage extends StatefulWidget { diff --git a/lib/pages/setting_page/about_page/about_page.dart b/lib/pages/setting_page/about_page/about_page.dart index a2233d5e..6c04aa9c 100644 --- a/lib/pages/setting_page/about_page/about_page.dart +++ b/lib/pages/setting_page/about_page/about_page.dart @@ -2,7 +2,6 @@ import 'package:akuCommunity/widget/bee_scaffold.dart'; import 'package:flutter/material.dart'; import 'package:flutter/cupertino.dart'; import 'package:akuCommunity/utils/headers.dart'; -import 'package:akuCommunity/widget/common_app_bar.dart'; class AboutPage extends StatelessWidget { const AboutPage({Key key}) : super(key: key); diff --git a/lib/pages/setting_page/feedback_page/feedback_page.dart b/lib/pages/setting_page/feedback_page/feedback_page.dart index 22fdc7e2..76b3859a 100644 --- a/lib/pages/setting_page/feedback_page/feedback_page.dart +++ b/lib/pages/setting_page/feedback_page/feedback_page.dart @@ -6,7 +6,6 @@ import 'package:flustars/flustars.dart'; import 'package:flutter/material.dart'; import 'package:flutter/cupertino.dart'; import 'package:akuCommunity/utils/headers.dart'; -import 'package:akuCommunity/widget/common_app_bar.dart'; import 'package:akuCommunity/widget/common_image_picker.dart'; import 'package:get/get.dart'; diff --git a/lib/pages/setting_page/invite_page/invite_page.dart b/lib/pages/setting_page/invite_page/invite_page.dart index ad76ec30..c6f63806 100644 --- a/lib/pages/setting_page/invite_page/invite_page.dart +++ b/lib/pages/setting_page/invite_page/invite_page.dart @@ -3,7 +3,6 @@ import 'package:flutter/material.dart'; import 'package:flutter/cupertino.dart'; import 'package:qr_flutter/qr_flutter.dart'; import 'package:akuCommunity/utils/headers.dart'; -import 'package:akuCommunity/widget/common_app_bar.dart'; class InvitePage extends StatelessWidget { const InvitePage({Key key}) : super(key: key); diff --git a/lib/pages/things_page/things_create_page/things_create_page.dart b/lib/pages/things_page/things_create_page/things_create_page.dart index 4c213b44..6442274f 100644 --- a/lib/pages/things_page/things_create_page/things_create_page.dart +++ b/lib/pages/things_page/things_create_page/things_create_page.dart @@ -3,7 +3,6 @@ import 'package:flutter/material.dart'; import 'package:flutter/cupertino.dart'; import 'package:akuCommunity/utils/headers.dart'; import 'package:akuCommunity/base/assets_image.dart'; -import 'package:akuCommunity/widget/common_app_bar.dart'; import 'package:akuCommunity/routers/page_routers.dart'; import 'package:akuCommunity/widget/common_image_picker.dart'; diff --git a/lib/pages/things_page/things_detail_page/widget/goods_info_card_button.dart b/lib/pages/things_page/things_detail_page/widget/goods_info_card_button.dart index d0e765ca..643945ab 100644 --- a/lib/pages/things_page/things_detail_page/widget/goods_info_card_button.dart +++ b/lib/pages/things_page/things_detail_page/widget/goods_info_card_button.dart @@ -5,7 +5,6 @@ import 'package:flutter_icons/flutter_icons.dart'; import 'package:akuCommunity/utils/headers.dart'; import 'package:get/get.dart'; import 'package:url_launcher/url_launcher.dart'; -import 'package:akuCommunity/routers/page_routers.dart'; class GoodsInfoCardButton extends StatelessWidget { GoodsInfoCardButton({Key key}) : super(key: key); diff --git a/lib/pages/things_page/things_evaluate_page/things_evaluate_page.dart b/lib/pages/things_page/things_evaluate_page/things_evaluate_page.dart index ff7bde47..b6d0675f 100644 --- a/lib/pages/things_page/things_evaluate_page/things_evaluate_page.dart +++ b/lib/pages/things_page/things_evaluate_page/things_evaluate_page.dart @@ -4,7 +4,6 @@ import 'package:flutter/cupertino.dart'; import 'package:flutter_icons/flutter_icons.dart'; import 'package:smooth_star_rating/smooth_star_rating.dart'; import 'package:akuCommunity/utils/headers.dart'; -import 'package:akuCommunity/widget/common_app_bar.dart'; import 'package:akuCommunity/routers/page_routers.dart'; class ThingsEvaluatePage extends StatefulWidget { diff --git a/lib/pages/visitor_access_page/visitor_pass_page.dart b/lib/pages/visitor_access_page/visitor_pass_page.dart index 449ae5f8..d7356930 100644 --- a/lib/pages/visitor_access_page/visitor_pass_page.dart +++ b/lib/pages/visitor_access_page/visitor_pass_page.dart @@ -4,7 +4,6 @@ import 'package:flutter/cupertino.dart'; import 'package:flutter_icons/flutter_icons.dart'; import 'package:akuCommunity/utils/headers.dart'; import 'package:akuCommunity/widget/dotted_line.dart'; -import 'package:akuCommunity/widget/common_app_bar.dart'; class VisitorPassPage extends StatefulWidget { VisitorPassPage({Key key}) : super(key: key); diff --git a/lib/pages/visitor_access_page/widget/record_item.dart b/lib/pages/visitor_access_page/widget/record_item.dart index f003e5c9..fa753cc7 100644 --- a/lib/pages/visitor_access_page/widget/record_item.dart +++ b/lib/pages/visitor_access_page/widget/record_item.dart @@ -3,7 +3,6 @@ import 'package:flutter/material.dart'; import 'package:flutter/cupertino.dart'; import 'package:flutter_icons/flutter_icons.dart'; import 'package:akuCommunity/utils/headers.dart'; -import 'package:akuCommunity/routers/page_routers.dart'; class RecordItem extends StatefulWidget { final bool isQRCode; diff --git a/lib/utils/logger/logger_dio_err.dart b/lib/utils/logger/logger_dio_err.dart index 2385e987..f885f68d 100644 --- a/lib/utils/logger/logger_dio_err.dart +++ b/lib/utils/logger/logger_dio_err.dart @@ -1,5 +1,4 @@ import 'package:akuCommunity/extensions/num_ext.dart'; -import 'package:common_utils/common_utils.dart'; import 'package:dio/dio.dart'; import 'package:flutter/material.dart'; import 'package:velocity_x/velocity_x.dart'; diff --git a/lib/utils/logger/logger_view.dart b/lib/utils/logger/logger_view.dart index 3b66fde2..266466f6 100644 --- a/lib/utils/logger/logger_view.dart +++ b/lib/utils/logger/logger_view.dart @@ -4,7 +4,6 @@ import 'package:akuCommunity/extensions/page_router.dart'; import 'package:akuCommunity/widget/bee_scaffold.dart'; import 'package:flutter/material.dart'; -import 'package:velocity_x/velocity_x.dart'; class LoggerFAB extends StatefulWidget { static openLogger(BuildContext context) { diff --git a/lib/widget/app_bar_action.dart b/lib/widget/app_bar_action.dart index 5f35f565..e24fd91c 100644 --- a/lib/widget/app_bar_action.dart +++ b/lib/widget/app_bar_action.dart @@ -4,7 +4,6 @@ import 'package:akuCommunity/pages/message_center_page/message_center_page.dart' import 'package:flutter/material.dart'; import 'package:flutter/cupertino.dart'; import 'package:akuCommunity/utils/headers.dart'; -import 'package:akuCommunity/routers/page_routers.dart'; class AppBarAction extends StatefulWidget { final IconData icon; diff --git a/lib/widget/goods_specs_sheet.dart b/lib/widget/goods_specs_sheet.dart index a59ce212..adb74948 100644 --- a/lib/widget/goods_specs_sheet.dart +++ b/lib/widget/goods_specs_sheet.dart @@ -181,63 +181,63 @@ class _GoodsSpecsSheetState extends State { ); } - Widget _paddingSelect(String title, List> selectList) { - return Padding( - padding: EdgeInsets.symmetric(horizontal: 52.w), - child: Column( - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - Text( - title, - style: TextStyle( - color: Color(0xff333333), - fontSize: 28.sp, - ), - ), - SizedBox(height: 20.w), - Wrap( - spacing: 30.w, - runSpacing: 20.w, - children: selectList - .map((item) => InkWell( - onTap: () { - selectList.forEach((item) { - item['isSelect'] = false; - }); - setState(() { - item['isSelect'] = true; - }); - }, - child: Container( - decoration: BoxDecoration( - color: item['isSelect'] - ? Color(0xfffff8e4) - : Color(0xffffffff), - border: Border.all( - color: item['isSelect'] - ? Color(0xffffc40c) - : Color(0xff979797), - width: 0.5), - borderRadius: BorderRadius.all(Radius.circular(4))), - padding: EdgeInsets.symmetric( - horizontal: 32.w, - vertical: 15.w, - ), - child: Text( - item['title'], - style: TextStyle( - fontSize: 28.sp, - color: Color(0xff333333), - ), - ), - ), - )) - .toList(), - ), - ], - ), - ); - } + // Widget _paddingSelect(String title, List> selectList) { + // return Padding( + // padding: EdgeInsets.symmetric(horizontal: 52.w), + // child: Column( + // crossAxisAlignment: CrossAxisAlignment.start, + // children: [ + // Text( + // title, + // style: TextStyle( + // color: Color(0xff333333), + // fontSize: 28.sp, + // ), + // ), + // SizedBox(height: 20.w), + // Wrap( + // spacing: 30.w, + // runSpacing: 20.w, + // children: selectList + // .map((item) => InkWell( + // onTap: () { + // selectList.forEach((item) { + // item['isSelect'] = false; + // }); + // setState(() { + // item['isSelect'] = true; + // }); + // }, + // child: Container( + // decoration: BoxDecoration( + // color: item['isSelect'] + // ? Color(0xfffff8e4) + // : Color(0xffffffff), + // border: Border.all( + // color: item['isSelect'] + // ? Color(0xffffc40c) + // : Color(0xff979797), + // width: 0.5), + // borderRadius: BorderRadius.all(Radius.circular(4))), + // padding: EdgeInsets.symmetric( + // horizontal: 32.w, + // vertical: 15.w, + // ), + // child: Text( + // item['title'], + // style: TextStyle( + // fontSize: 28.sp, + // color: Color(0xff333333), + // ), + // ), + // ), + // )) + // .toList(), + // ), + // ], + // ), + // ); + // } Widget _paddingNum() { return Padding(