remove unused import

hmxc
张萌 4 years ago
parent a30cd27785
commit 9e4d7b974a

@ -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;

@ -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;

@ -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);

@ -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 {

@ -56,41 +56,41 @@ class _CommunityIndexState extends State<CommunityIndex>
];
}
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(

@ -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;

@ -39,49 +39,49 @@ class _TrendCardState extends State<TrendCard> {
_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: <Widget>[
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: <Widget>[
// 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(

@ -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;

@ -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);

@ -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;

@ -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';

@ -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';

@ -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';

@ -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';

@ -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);

@ -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';

@ -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 {

@ -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);

@ -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);

@ -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 {

@ -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 {

@ -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';

@ -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 {

@ -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 = '''
<p>

@ -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 {

@ -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';

@ -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 {

@ -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);

@ -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';

@ -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);

@ -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';

@ -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);

@ -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 {

@ -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);

@ -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;

@ -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';

@ -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) {

@ -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;

@ -181,63 +181,63 @@ class _GoodsSpecsSheetState extends State<GoodsSpecsSheet> {
);
}
Widget _paddingSelect(String title, List<Map<String, dynamic>> 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<Map<String, dynamic>> 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(

Loading…
Cancel
Save