remove old codes and remove used import.

hmxc
小赖 4 years ago
parent fe550f3494
commit e8821b08ef

@ -1,73 +0,0 @@
class AkuShopClassModel {
int cid;
String mainName;
List<Data> data;
AkuShopClassModel({this.cid, this.mainName, this.data});
AkuShopClassModel.fromJson(Map<String, dynamic> json) {
cid = json['cid'];
mainName = json['main_name'];
if (json['data'] != null) {
data = [];
json['data'].forEach((v) {
data.add(new Data.fromJson(v));
});
}
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['cid'] = this.cid;
data['main_name'] = this.mainName;
if (this.data != null) {
data['data'] = this.data.map((v) => v.toJson()).toList();
}
return data;
}
}
class Data {
String nextName;
List<Info> info;
Data({this.nextName, this.info});
Data.fromJson(Map<String, dynamic> json) {
nextName = json['next_name'];
if (json['info'] != null) {
info = [];
json['info'].forEach((v) {
info.add(new Info.fromJson(v));
});
}
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['next_name'] = this.nextName;
if (this.info != null) {
data['info'] = this.info.map((v) => v.toJson()).toList();
}
return data;
}
}
class Info {
String sonName;
String imgurl;
Info({this.sonName, this.imgurl});
Info.fromJson(Map<String, dynamic> json) {
sonName = json['son_name'];
imgurl = json['imgurl'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['son_name'] = this.sonName;
data['imgurl'] = this.imgurl;
return data;
}
}

@ -1,264 +0,0 @@
class AkuShopModel {
String activityType;
String activityid;
String couponCondition;
String couponexplain;
String couponurl;
String deposit;
String depositDeduct;
String discount;
String generalIndex;
String guideArticle;
String isBrand;
String isExplosion;
String isLive;
String isShipping;
String isquality;
String itemdesc;
String itemendprice;
String itemid;
String itempic;
String itempicCopy;
String itemprice;
String itemsale;
String itemsale2;
String itemshorttitle;
String itemtitle;
String me;
String onlineUsers;
String originalArticle;
String originalImg;
String planlink;
String reportStatus;
String sellerId;
String sellerName;
String sellernick;
String shopid;
String shopname;
String shoptype;
String sonCategory;
String startTime;
String starttime;
String taobaoImage;
String tkmoney;
String tkrates;
String tktype;
String todaycouponreceive;
String todaysale;
String userid;
String videoid;
String xid;
String couponreceive;
String fqcat;
String endTime;
String downType;
String cuntao;
String couponsurplus;
String couponstarttime;
String couponreceive2;
String couponnum;
String couponmoney;
String couponendtime;
String productId;
int count;
bool isCheck;
AkuShopModel(
{this.activityType,
this.activityid,
this.couponCondition,
this.couponexplain,
this.couponurl,
this.deposit,
this.depositDeduct,
this.discount,
this.generalIndex,
this.guideArticle,
this.isBrand,
this.isExplosion,
this.isLive,
this.isShipping,
this.isquality,
this.itemdesc,
this.itemendprice,
this.itemid,
this.itempic,
this.itempicCopy,
this.itemprice,
this.itemsale,
this.itemsale2,
this.itemshorttitle,
this.itemtitle,
this.me,
this.onlineUsers,
this.originalArticle,
this.originalImg,
this.planlink,
this.reportStatus,
this.sellerId,
this.sellerName,
this.sellernick,
this.shopid,
this.shopname,
this.shoptype,
this.sonCategory,
this.startTime,
this.starttime,
this.taobaoImage,
this.tkmoney,
this.tkrates,
this.tktype,
this.todaycouponreceive,
this.todaysale,
this.userid,
this.videoid,
this.xid,
this.couponreceive,
this.fqcat,
this.endTime,
this.downType,
this.cuntao,
this.couponsurplus,
this.couponstarttime,
this.couponreceive2,
this.couponnum,
this.couponmoney,
this.couponendtime,
this.productId,
this.count,
this.isCheck});
AkuShopModel.fromJson(Map<String, dynamic> json) {
activityType = json['activity_type'];
activityid = json['activityid'];
couponCondition = json['coupon_condition'];
couponexplain = json['couponexplain'];
couponurl = json['couponurl'];
deposit = json['deposit'];
depositDeduct = json['deposit_deduct'];
discount = json['discount'];
generalIndex = json['general_index'];
guideArticle = json['guide_article'];
isBrand = json['is_brand'];
isExplosion = json['is_explosion'];
isLive = json['is_live'];
isShipping = json['is_shipping'];
isquality = json['isquality'];
itemdesc = json['itemdesc'];
itemendprice = json['itemendprice'];
itemid = json['itemid'];
itempic = json['itempic'];
itempicCopy = json['itempic_copy'];
itemprice = json['itemprice'];
itemsale = json['itemsale'];
itemsale2 = json['itemsale2'];
itemshorttitle = json['itemshorttitle'];
itemtitle = json['itemtitle'];
me = json['me'];
onlineUsers = json['online_users'];
originalArticle = json['original_article'];
originalImg = json['original_img'];
planlink = json['planlink'];
reportStatus = json['report_status'];
sellerId = json['seller_id'];
sellerName = json['seller_name'];
sellernick = json['sellernick'];
shopid = json['shopid'];
shopname = json['shopname'];
shoptype = json['shoptype'];
sonCategory = json['son_category'];
startTime = json['start_time'];
starttime = json['starttime'];
taobaoImage = json['taobao_image'];
tkmoney = json['tkmoney'];
tkrates = json['tkrates'];
tktype = json['tktype'];
todaycouponreceive = json['todaycouponreceive'];
todaysale = json['todaysale'];
userid = json['userid'];
videoid = json['videoid'];
xid = json['xid'];
couponreceive = json['couponreceive'];
fqcat = json['fqcat'];
endTime = json['end_time'];
downType = json['down_type'];
cuntao = json['cuntao'];
couponsurplus = json['couponsurplus'];
couponstarttime = json['couponstarttime'];
couponreceive2 = json['couponreceive2'];
couponnum = json['couponnum'];
couponmoney = json['couponmoney'];
couponendtime = json['couponendtime'];
productId = json['product_id'];
count = json['count'];
isCheck = json['isCheck'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['activity_type'] = this.activityType;
data['activityid'] = this.activityid;
data['coupon_condition'] = this.couponCondition;
data['couponexplain'] = this.couponexplain;
data['couponurl'] = this.couponurl;
data['deposit'] = this.deposit;
data['deposit_deduct'] = this.depositDeduct;
data['discount'] = this.discount;
data['general_index'] = this.generalIndex;
data['guide_article'] = this.guideArticle;
data['is_brand'] = this.isBrand;
data['is_explosion'] = this.isExplosion;
data['is_live'] = this.isLive;
data['is_shipping'] = this.isShipping;
data['isquality'] = this.isquality;
data['itemdesc'] = this.itemdesc;
data['itemendprice'] = this.itemendprice;
data['itemid'] = this.itemid;
data['itempic'] = this.itempic;
data['itempic_copy'] = this.itempicCopy;
data['itemprice'] = this.itemprice;
data['itemsale'] = this.itemsale;
data['itemsale2'] = this.itemsale2;
data['itemshorttitle'] = this.itemshorttitle;
data['itemtitle'] = this.itemtitle;
data['me'] = this.me;
data['online_users'] = this.onlineUsers;
data['original_article'] = this.originalArticle;
data['original_img'] = this.originalImg;
data['planlink'] = this.planlink;
data['report_status'] = this.reportStatus;
data['seller_id'] = this.sellerId;
data['seller_name'] = this.sellerName;
data['sellernick'] = this.sellernick;
data['shopid'] = this.shopid;
data['shopname'] = this.shopname;
data['shoptype'] = this.shoptype;
data['son_category'] = this.sonCategory;
data['start_time'] = this.startTime;
data['starttime'] = this.starttime;
data['taobao_image'] = this.taobaoImage;
data['tkmoney'] = this.tkmoney;
data['tkrates'] = this.tkrates;
data['tktype'] = this.tktype;
data['todaycouponreceive'] = this.todaycouponreceive;
data['todaysale'] = this.todaysale;
data['userid'] = this.userid;
data['videoid'] = this.videoid;
data['xid'] = this.xid;
data['couponreceive'] = this.couponreceive;
data['fqcat'] = this.fqcat;
data['end_time'] = this.endTime;
data['down_type'] = this.downType;
data['cuntao'] = this.cuntao;
data['couponsurplus'] = this.couponsurplus;
data['couponstarttime'] = this.couponstarttime;
data['couponreceive2'] = this.couponreceive2;
data['couponnum'] = this.couponnum;
data['couponmoney'] = this.couponmoney;
data['couponendtime'] = this.couponendtime;
data['product_id'] = this.productId;
data['count'] = this.count;
data['isCheck'] = this.isCheck;
return data;
}
}

@ -11,7 +11,6 @@ import 'package:provider/provider.dart';
import 'package:velocity_x/velocity_x.dart'; import 'package:velocity_x/velocity_x.dart';
import 'package:akuCommunity/const/resource.dart'; import 'package:akuCommunity/const/resource.dart';
import 'package:akuCommunity/model/aku_shop_model.dart';
import 'package:akuCommunity/model/community/activity_item_model.dart'; import 'package:akuCommunity/model/community/activity_item_model.dart';
import 'package:akuCommunity/model/community/board_model.dart'; import 'package:akuCommunity/model/community/board_model.dart';
import 'package:akuCommunity/pages/home/widget/animate_app_bar.dart'; import 'package:akuCommunity/pages/home/widget/animate_app_bar.dart';
@ -43,7 +42,6 @@ class _HomePageState extends State<HomePage>
ScrollController _scrollController; ScrollController _scrollController;
List<AkuShopModel> _shopList = [];
List<dynamic> data; List<dynamic> data;
EasyRefreshController _refreshController = EasyRefreshController(); EasyRefreshController _refreshController = EasyRefreshController();

@ -14,7 +14,6 @@ import 'package:akuCommunity/constants/api.dart';
import 'package:akuCommunity/model/manager/life_pay_model.dart'; import 'package:akuCommunity/model/manager/life_pay_model.dart';
import 'package:akuCommunity/pages/life_pay/widget/life_pay_detail_page.dart'; import 'package:akuCommunity/pages/life_pay/widget/life_pay_detail_page.dart';
import 'package:akuCommunity/pages/things_page/widget/bee_list_view.dart'; import 'package:akuCommunity/pages/things_page/widget/bee_list_view.dart';
import 'package:akuCommunity/provider/user_provider.dart';
import 'package:akuCommunity/utils/bee_parse.dart'; import 'package:akuCommunity/utils/bee_parse.dart';
import 'package:akuCommunity/utils/headers.dart'; import 'package:akuCommunity/utils/headers.dart';
import 'package:akuCommunity/widget/bee_divider.dart'; import 'package:akuCommunity/widget/bee_divider.dart';
@ -54,7 +53,6 @@ class _LifePayPageState extends State<LifePayPage> {
} }
Widget _buildHouseCard() { Widget _buildHouseCard() {
UserProvider userProvider = Provider.of<UserProvider>(context);
AppProvider appProvider = Provider.of<AppProvider>(context); AppProvider appProvider = Provider.of<AppProvider>(context);
return Material( return Material(
color: kForeGroundColor, color: kForeGroundColor,
@ -224,7 +222,6 @@ class _LifePayPageState extends State<LifePayPage> {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
UserProvider userProvider = Provider.of<UserProvider>(context);
final appProvider = Provider.of<AppProvider>(context); final appProvider = Provider.of<AppProvider>(context);
return BeeScaffold( return BeeScaffold(
title: '生活缴费', title: '生活缴费',

@ -7,7 +7,6 @@ import 'package:provider/provider.dart';
import 'package:akuCommunity/base/base_style.dart'; import 'package:akuCommunity/base/base_style.dart';
import 'package:akuCommunity/model/manager/life_pay_model.dart'; import 'package:akuCommunity/model/manager/life_pay_model.dart';
import 'package:akuCommunity/provider/app_provider.dart'; import 'package:akuCommunity/provider/app_provider.dart';
import 'package:akuCommunity/provider/user_provider.dart';
import 'package:akuCommunity/utils/bee_parse.dart'; import 'package:akuCommunity/utils/bee_parse.dart';
import 'package:akuCommunity/utils/headers.dart'; import 'package:akuCommunity/utils/headers.dart';
import 'package:akuCommunity/widget/bee_scaffold.dart'; import 'package:akuCommunity/widget/bee_scaffold.dart';
@ -102,7 +101,6 @@ class _LifePayDetailPageState extends State<LifePayDetailPage> {
} }
Widget _buildCard(DailyPaymentTypeVos model) { Widget _buildCard(DailyPaymentTypeVos model) {
UserProvider userProvider = Provider.of<UserProvider>(context);
final appProvider = Provider.of<AppProvider>(context); final appProvider = Provider.of<AppProvider>(context);
return Container( return Container(
padding: EdgeInsets.symmetric(horizontal: 32.w, vertical: 20.w), padding: EdgeInsets.symmetric(horizontal: 32.w, vertical: 20.w),

@ -65,7 +65,6 @@ class _MyHousePageState extends State<MyHousePage> {
Widget _buildCard(int currentHouseId, String estateName, int index, Widget _buildCard(int currentHouseId, String estateName, int index,
{bool paid = false}) { {bool paid = false}) {
UserProvider userProvider = Provider.of<UserProvider>(context);
AppProvider appProvider = Provider.of<AppProvider>(context); AppProvider appProvider = Provider.of<AppProvider>(context);
return Container( return Container(
padding: EdgeInsets.symmetric(horizontal: 32.w, vertical: 32.w), padding: EdgeInsets.symmetric(horizontal: 32.w, vertical: 32.w),

@ -1,200 +0,0 @@
// import 'package:akuCommunity/pages/common/common_page.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_icons/flutter_icons.dart';
import 'package:velocity_x/velocity_x.dart';
import 'package:akuCommunity/utils/headers.dart';
import 'package:akuCommunity/widget/bee_scaffold.dart';
class ShopMessagePage extends StatefulWidget {
ShopMessagePage({Key key}) : super(key: key);
@override
_ShopMessagePageState createState() => _ShopMessagePageState();
}
class _ShopMessagePageState extends State<ShopMessagePage> {
List<Map<String, dynamic>> _listNotice = [
{
'status': '已读',
'type': '您的订单已签收',
'imagePath': 'assets/example/tz1.png',
'content': '您购买的 轻便自由,男士针织休闲西装 已签收',
'lookType': '查看快递'
},
{
'status': '已读',
'type': '您的订单已发货',
'imagePath': 'assets/example/tz2.png',
'content': '您购买的 亚瑟士/Asic Gel轻跑鞋黑武士 已发货 ',
'lookType': '查看快递'
},
{
'status': '已读',
'type': '交易退款成功',
'imagePath': 'assets/example/tz3.png',
'content': '您的订单已退款成功 来自退款编号6236402934702983',
'lookType': '查看详情'
},
];
@override
void initState() {
super.initState();
}
void _onRefresh() async {
await Future.delayed(Duration(milliseconds: 1500));
}
void _onLoading() async {
await Future.delayed(Duration(milliseconds: 1500));
if (mounted) setState(() {});
}
// void refundRouter() {
// CommonPage(
// bundle: Bundle()
// ..putMap('commentMap', {
// 'title': '退款详情',
// 'isActions': false,
// }),
// ).to;
// }
void expressRouter() {}
@override
void dispose() {
super.dispose();
}
InkWell _inkWellLook(String type, content, lookType) {
return InkWell(
onTap: () {
// lookType == '查看详情' ? refundRouter() : expressRouter();
},
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Text(
lookType,
style: TextStyle(fontSize: 28.sp, color: Color(0xff333333)),
),
Icon(AntDesign.right, size: 40.sp),
],
),
);
}
Container _containerCard(String status, type, imagePath, content, lookType) {
return Container(
margin: EdgeInsets.only(
top: 32.w,
left: 32.w,
right: 32.w,
),
padding:
EdgeInsets.only(top: 21.w, bottom: 14.w, left: 30.w, right: 20.w),
decoration: BoxDecoration(
color: Color(0xffffffff),
borderRadius: BorderRadius.all(Radius.circular(4)),
boxShadow: <BoxShadow>[
BoxShadow(
color: Colors.grey.withOpacity(0.1),
offset: Offset(1, 1),
blurRadius: 10.0),
],
),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Container(
padding: EdgeInsets.only(left: 2.w),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Text(
'商城通知',
style: TextStyle(
fontWeight: FontWeight.w600,
fontSize: 32.sp,
color: Color(0xff333333)),
),
Text(
status,
style:
TextStyle(fontSize: 32.sp, color: Color(0xff999999)),
),
],
),
SizedBox(height: 5.w),
Text(type,
style:
TextStyle(fontSize: 28.sp, color: Color(0xff333333))),
SizedBox(height: 8.w),
Row(
children: [
Image.asset(
imagePath,
height: 120.w,
width: 120.w,
),
SizedBox(width: 32.w),
Container(
width: 439.w,
child: Text(
content,
maxLines: 2,
overflow: TextOverflow.ellipsis,
style: TextStyle(
fontSize: 28.sp, color: Color(0xff999999)),
),
),
],
),
],
),
),
SizedBox(height: 30.w),
Divider(),
_inkWellLook(type, content, lookType),
],
),
);
}
@override
Widget build(BuildContext context) {
return BeeScaffold(
title: '商城通知',
actions: [
InkWell(
onTap: () {},
child: Container(
padding: EdgeInsets.fromLTRB(32.w, 28.w, 32.w, 20.w),
child: '清空'.text.black.size(28.sp).make(),
alignment: Alignment.center,
),
)
],
body: ListView.builder(
itemBuilder: (context, index) => _containerCard(
_listNotice[index]['status'],
_listNotice[index]['type'],
_listNotice[index]['imagePath'],
_listNotice[index]['content'],
_listNotice[index]['lookType'],
),
itemCount: _listNotice.length,
),
);
}
}

@ -156,7 +156,7 @@ class _AlarmPageState extends State<AlarmPage> {
spreadRadius: 1, spreadRadius: 1,
) )
]), ]),
child: FlatButton( child: MaterialButton(
padding: EdgeInsets.zero, padding: EdgeInsets.zero,
shape: RoundedRectangleBorder( shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(66.w)), borderRadius: BorderRadius.circular(66.w)),
@ -181,7 +181,7 @@ class _AlarmPageState extends State<AlarmPage> {
decoration: decoration:
BoxDecoration(color: Color(0xFFFFFFFF).withOpacity(0.9)), BoxDecoration(color: Color(0xFFFFFFFF).withOpacity(0.9)),
child: Stack( child: Stack(
overflow: Overflow.visible, clipBehavior: Clip.none,
alignment: Alignment.topCenter, alignment: Alignment.topCenter,
children: [ children: [
Positioned( Positioned(
@ -215,7 +215,7 @@ class _AlarmPageState extends State<AlarmPage> {
) )
], ],
), ),
child: FlatButton( child: MaterialButton(
shape: RoundedRectangleBorder( shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(172.w)), borderRadius: BorderRadius.circular(172.w)),
onPressed: () { onPressed: () {

@ -32,7 +32,6 @@ class UserProfilePage extends StatefulWidget {
class _UserProfilePageState extends State<UserProfilePage> { class _UserProfilePageState extends State<UserProfilePage> {
int _sex = 1; int _sex = 1;
DateTime _birthday = DateTime.now();
Widget _buildTile(String title, Widget suffix, {VoidCallback onPressed}) { Widget _buildTile(String title, Widget suffix, {VoidCallback onPressed}) {
return MaterialButton( return MaterialButton(
color: Colors.white, color: Colors.white,

@ -272,10 +272,11 @@ class _SignInPageState extends State<SignInPage> {
), ),
SizedBox(height: 59.w), SizedBox(height: 59.w),
_inkWellLogin(), _inkWellLogin(),
10.hb,
Row( Row(
mainAxisAlignment: MainAxisAlignment.center, mainAxisAlignment: MainAxisAlignment.center,
children: [ children: [
FlatButton( MaterialButton(
shape: StadiumBorder(), shape: StadiumBorder(),
padding: EdgeInsets.zero, padding: EdgeInsets.zero,
onPressed: () => Get.to(AgreementPage()), onPressed: () => Get.to(AgreementPage()),
@ -284,9 +285,10 @@ class _SignInPageState extends State<SignInPage> {
style: TextStyle( style: TextStyle(
color: Colors.lightBlue, color: Colors.lightBlue,
), ),
)), ),
),
SizedBox(width: 15.w), SizedBox(width: 15.w),
FlatButton( MaterialButton(
shape: StadiumBorder(), shape: StadiumBorder(),
padding: EdgeInsets.zero, padding: EdgeInsets.zero,
onPressed: () => Get.to(() => PrivacyPage()), onPressed: () => Get.to(() => PrivacyPage()),
@ -295,7 +297,8 @@ class _SignInPageState extends State<SignInPage> {
style: TextStyle( style: TextStyle(
color: Colors.lightBlue, color: Colors.lightBlue,
), ),
)) ),
),
], ],
), ),
], ],

@ -364,10 +364,7 @@ class _ChatCardState extends State<ChatCard> {
.color(Color(0xFF999999)) .color(Color(0xFF999999))
.make(), .make(),
_isMyself _isMyself
? FlatButton( ? TextButton(
materialTapTargetSize:
MaterialTapTargetSize.shrinkWrap,
height: 48.w,
onPressed: () async { onPressed: () async {
bool result = bool result =
await Get.dialog(CupertinoAlertDialog( await Get.dialog(CupertinoAlertDialog(

@ -162,7 +162,7 @@ class _AdviceDetailPageState extends State<AdviceDetailPage> {
return BeeScaffold( return BeeScaffold(
title: '查看详情', title: '查看详情',
actions: [ actions: [
FlatButton( TextButton(
onPressed: () => onPressed: () =>
Get.to(() => AdviceEvaluatePage(id: widget.model.id)), Get.to(() => AdviceEvaluatePage(id: widget.model.id)),
child: '评价'.text.make(), child: '评价'.text.make(),

@ -91,7 +91,7 @@ class _AdvicePageState extends State<AdvicePage> with TickerProviderStateMixin {
return BeeScaffold( return BeeScaffold(
title: title, title: title,
actions: [ actions: [
FlatButton( TextButton(
onPressed: () => setState(() => _selectedMode = !_selectedMode), onPressed: () => setState(() => _selectedMode = !_selectedMode),
child: (_selectedMode ? '完成' : '编辑').text.make(), child: (_selectedMode ? '完成' : '编辑').text.make(),
), ),

@ -20,7 +20,7 @@ class _BeeCheckButtonState extends State<BeeCheckButton> {
bool get isSelect => widget.groupValue == widget.value; bool get isSelect => widget.groupValue == widget.value;
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return FlatButton( return MaterialButton(
onPressed: () { onPressed: () {
widget.onChange(widget.value); widget.onChange(widget.value);
}, },

Loading…
Cancel
Save