sort import && format code

hmxc
张萌 4 years ago
parent 0054c82027
commit e1998de41d

@ -80,7 +80,8 @@ List<AO> appObjects = [
AO('投诉表扬', R.ASSETS_APPLICATIONS_COMPLAINT_PNG, AO('投诉表扬', R.ASSETS_APPLICATIONS_COMPLAINT_PNG,
() => AdvicePage(type: AdviceType.COMPLAIN)), () => AdvicePage(type: AdviceType.COMPLAIN)),
AO('问卷调查', R.ASSETS_APPLICATIONS_QUESTION_PNG, () => QuestionnairePage()), AO('问卷调查', R.ASSETS_APPLICATIONS_QUESTION_PNG, () => QuestionnairePage()),
AO('装修管理', R.ASSETS_APPLICATIONS_DECORATION_PNG,()=> RenovationManagePage()), AO('装修管理', R.ASSETS_APPLICATIONS_DECORATION_PNG,
() => RenovationManagePage()),
AO('借还管理', R.ASSETS_APPLICATIONS_BORROW_PNG, () => SelectBorrowReturnPage()), AO('借还管理', R.ASSETS_APPLICATIONS_BORROW_PNG, () => SelectBorrowReturnPage()),
AO('一键报警', R.ASSETS_APPLICATIONS_POLICE_PNG, () => AlarmPage()), AO('一键报警', R.ASSETS_APPLICATIONS_POLICE_PNG, () => AlarmPage()),
AO('设施预约', R.ASSETS_ICONS_TOOL_FACILITY_PNG, () => FacilityAppointmentPage()), AO('设施预约', R.ASSETS_ICONS_TOOL_FACILITY_PNG, () => FacilityAppointmentPage()),

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

@ -1,8 +1,9 @@
import 'package:aku_community/base/base_style.dart'; import 'package:flutter/material.dart';
import 'package:flustars/flustars.dart'; import 'package:flustars/flustars.dart';
import 'package:aku_community/base/base_style.dart';
import 'package:aku_community/model/common/img_model.dart'; import 'package:aku_community/model/common/img_model.dart';
import 'package:flutter/material.dart';
class ActivityItemModel { class ActivityItemModel {
int? id; int? id;

@ -1,7 +1,8 @@
import 'package:equatable/equatable.dart'; import 'package:equatable/equatable.dart';
import 'package:json_annotation/json_annotation.dart';
import 'package:aku_community/model/common/img_model.dart'; import 'package:aku_community/model/common/img_model.dart';
import 'package:json_annotation/json_annotation.dart';
part 'community_introduce_model.g.dart'; part 'community_introduce_model.g.dart';
@JsonSerializable() @JsonSerializable()

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

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

@ -1,7 +1,8 @@
import 'package:equatable/equatable.dart'; import 'package:equatable/equatable.dart';
import 'package:json_annotation/json_annotation.dart';
import 'package:aku_community/model/common/img_model.dart'; import 'package:aku_community/model/common/img_model.dart';
import 'package:json_annotation/json_annotation.dart';
part 'electronic_commerc_list_model.g.dart'; part 'electronic_commerc_list_model.g.dart';
@JsonSerializable() @JsonSerializable()

@ -28,10 +28,9 @@ class ExpressPackageListModel extends Equatable {
}); });
factory ExpressPackageListModel.fromJson(Map<String, dynamic> json) => factory ExpressPackageListModel.fromJson(Map<String, dynamic> json) =>
_$ExpressPackageListModelFromJson(json); _$ExpressPackageListModelFromJson(json);
String get createDateString => DateUtil.formatDateStr(this.createDate, String get createDateString =>
format: 'yyyy-MM-dd HH:mm'); DateUtil.formatDateStr(this.createDate, format: 'yyyy-MM-dd HH:mm');
@override @override
List<Object?> get props => throw UnimplementedError(); List<Object?> get props => throw UnimplementedError();
} }

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

@ -1,6 +1,7 @@
import 'package:flutter/material.dart';
import 'package:equatable/equatable.dart'; import 'package:equatable/equatable.dart';
import 'package:flustars/flustars.dart'; import 'package:flustars/flustars.dart';
import 'package:flutter/material.dart';
import 'package:json_annotation/json_annotation.dart'; import 'package:json_annotation/json_annotation.dart';
import 'package:aku_community/model/common/img_model.dart'; import 'package:aku_community/model/common/img_model.dart';

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

@ -1,8 +1,8 @@
import 'package:equatable/equatable.dart'; import 'package:equatable/equatable.dart';
import 'package:json_annotation/json_annotation.dart';
import 'package:aku_community/model/community/activity_item_model.dart'; import 'package:aku_community/model/community/activity_item_model.dart';
import 'package:aku_community/model/community/community_topic_model.dart'; import 'package:aku_community/model/community/community_topic_model.dart';
import 'package:json_annotation/json_annotation.dart';
part 'search_model.g.dart'; part 'search_model.g.dart';

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

@ -1,15 +1,17 @@
import 'package:flutter/material.dart';
import 'package:flutter_easyrefresh/easy_refresh.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:velocity_x/velocity_x.dart';
import 'package:aku_community/base/base_style.dart'; import 'package:aku_community/base/base_style.dart';
import 'package:aku_community/const/resource.dart';
import 'package:aku_community/constants/api.dart'; import 'package:aku_community/constants/api.dart';
import 'package:aku_community/model/common/img_model.dart'; import 'package:aku_community/model/common/img_model.dart';
import 'package:aku_community/models/community_introduce/community_introduce_model.dart'; import 'package:aku_community/models/community_introduce/community_introduce_model.dart';
import 'package:aku_community/utils/network/base_model.dart'; import 'package:aku_community/utils/network/base_model.dart';
import 'package:aku_community/utils/network/net_util.dart'; import 'package:aku_community/utils/network/net_util.dart';
import 'package:aku_community/widget/bee_scaffold.dart'; import 'package:aku_community/widget/bee_scaffold.dart';
import 'package:flutter/material.dart';
import 'package:aku_community/const/resource.dart';
import 'package:flutter_easyrefresh/easy_refresh.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:velocity_x/velocity_x.dart';
class CommunityIntroducePage extends StatefulWidget { class CommunityIntroducePage extends StatefulWidget {
CommunityIntroducePage({Key? key}) : super(key: key); CommunityIntroducePage({Key? key}) : super(key: key);

@ -1,15 +1,16 @@
import 'package:aku_community/base/base_style.dart';
import 'package:aku_community/constants/api.dart';
import 'package:aku_community/model/common/img_model.dart';
import 'package:aku_community/pages/electronic_commerc/electronic_commerc_detail_page.dart';
import 'package:flustars/flustars.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:aku_community/models/electronic_commerc/electronic_commerc_list_model.dart'; import 'package:flustars/flustars.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart'; import 'package:get/get.dart';
import 'package:velocity_x/velocity_x.dart'; import 'package:velocity_x/velocity_x.dart';
import 'package:aku_community/base/base_style.dart';
import 'package:aku_community/const/resource.dart'; import 'package:aku_community/const/resource.dart';
import 'package:aku_community/constants/api.dart';
import 'package:aku_community/model/common/img_model.dart';
import 'package:aku_community/models/electronic_commerc/electronic_commerc_list_model.dart';
import 'package:aku_community/pages/electronic_commerc/electronic_commerc_detail_page.dart';
class ElectronicCommercCard extends StatefulWidget { class ElectronicCommercCard extends StatefulWidget {
final ElectronicCommercListModel model; final ElectronicCommercListModel model;

@ -1,25 +1,29 @@
import 'package:aku_community/base/base_style.dart'; import 'package:flutter/material.dart';
import 'package:aku_community/constants/api.dart';
import 'package:aku_community/utils/network/base_model.dart';
import 'package:aku_community/utils/network/net_util.dart';
import 'package:aku_community/widget/bee_scaffold.dart';
import 'package:bot_toast/bot_toast.dart'; import 'package:bot_toast/bot_toast.dart';
import 'package:flustars/flustars.dart'; import 'package:flustars/flustars.dart';
import 'package:flutter/material.dart';
import 'package:flutter_easyrefresh/easy_refresh.dart'; import 'package:flutter_easyrefresh/easy_refresh.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:aku_community/models/electronic_commerc/electronic_commerc_detail_model.dart';
import 'package:velocity_x/velocity_x.dart'; import 'package:velocity_x/velocity_x.dart';
import 'package:aku_community/base/base_style.dart';
import 'package:aku_community/constants/api.dart';
import 'package:aku_community/models/electronic_commerc/electronic_commerc_detail_model.dart';
import 'package:aku_community/utils/network/base_model.dart';
import 'package:aku_community/utils/network/net_util.dart';
import 'package:aku_community/widget/bee_scaffold.dart';
class ElectronicCommercDetailPage extends StatefulWidget { class ElectronicCommercDetailPage extends StatefulWidget {
final int id; final int id;
ElectronicCommercDetailPage({Key? key, required this.id}) : super(key: key); ElectronicCommercDetailPage({Key? key, required this.id}) : super(key: key);
@override @override
_ElectronicCommercDetailPageState createState() => _ElectronicCommercDetailPageState(); _ElectronicCommercDetailPageState createState() =>
_ElectronicCommercDetailPageState();
} }
class _ElectronicCommercDetailPageState extends State<ElectronicCommercDetailPage> { class _ElectronicCommercDetailPageState
extends State<ElectronicCommercDetailPage> {
late EasyRefreshController _easyRefreshController; late EasyRefreshController _easyRefreshController;
bool _onload = true; bool _onload = true;
late ElectronicCommercDetailModel _detailModel; late ElectronicCommercDetailModel _detailModel;
@ -38,18 +42,19 @@ class _ElectronicCommercDetailPageState extends State<ElectronicCommercDetailPag
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return BeeScaffold( return BeeScaffold(
title: _onload?'':_detailModel.electronicCommerceCategoryName, title: _onload ? '' : _detailModel.electronicCommerceCategoryName,
bodyColor: Colors.white, bodyColor: Colors.white,
body: EasyRefresh( body: EasyRefresh(
firstRefresh: true, firstRefresh: true,
header: MaterialHeader(), header: MaterialHeader(),
onRefresh: () async { onRefresh: () async {
BaseModel baseModel = await NetUtil() BaseModel baseModel =
.get(API.manager.electronicCommercDetail, params: { await NetUtil().get(API.manager.electronicCommercDetail, params: {
"electronicCommerceId": widget.id, "electronicCommerceId": widget.id,
}); });
if (baseModel.status! && baseModel.data != null) { if (baseModel.status! && baseModel.data != null) {
_detailModel = ElectronicCommercDetailModel.fromJson(baseModel.data); _detailModel =
ElectronicCommercDetailModel.fromJson(baseModel.data);
} else { } else {
BotToast.showText(text: '无法获取信息'); BotToast.showText(text: '无法获取信息');
} }
@ -102,4 +107,4 @@ class _ElectronicCommercDetailPageState extends State<ElectronicCommercDetailPag
Widget _emptyWidget() { Widget _emptyWidget() {
return Container(); return Container();
} }
} }

@ -1,16 +1,18 @@
import 'package:flutter/material.dart';
import 'package:bot_toast/bot_toast.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:shimmer/shimmer.dart';
import 'package:velocity_x/velocity_x.dart';
import 'package:aku_community/constants/api.dart'; import 'package:aku_community/constants/api.dart';
import 'package:aku_community/extensions/num_ext.dart';
import 'package:aku_community/models/electronic_commerc/electronic_commerc_category_model.dart';
import 'package:aku_community/pages/electronic_commerc/electronic_commerc_view.dart'; import 'package:aku_community/pages/electronic_commerc/electronic_commerc_view.dart';
import 'package:aku_community/utils/network/base_model.dart'; import 'package:aku_community/utils/network/base_model.dart';
import 'package:aku_community/utils/network/net_util.dart'; import 'package:aku_community/utils/network/net_util.dart';
import 'package:aku_community/widget/bee_scaffold.dart'; import 'package:aku_community/widget/bee_scaffold.dart';
import 'package:aku_community/widget/tab_bar/bee_tab_bar.dart'; import 'package:aku_community/widget/tab_bar/bee_tab_bar.dart';
import 'package:bot_toast/bot_toast.dart';
import 'package:flutter/material.dart';
import 'package:shimmer/shimmer.dart';
import 'package:velocity_x/velocity_x.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:aku_community/extensions/num_ext.dart';
import 'package:aku_community/models/electronic_commerc/electronic_commerc_category_model.dart';
class ElectronicCommercPage extends StatefulWidget { class ElectronicCommercPage extends StatefulWidget {
ElectronicCommercPage({Key? key}) : super(key: key); ElectronicCommercPage({Key? key}) : super(key: key);

@ -1,12 +1,14 @@
import 'package:aku_community/constants/api.dart';
import 'package:aku_community/pages/electronic_commerc/electronic_commerc_card.dart';
import 'package:aku_community/pages/things_page/widget/bee_list_view.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter_easyrefresh/easy_refresh.dart'; import 'package:flutter_easyrefresh/easy_refresh.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:aku_community/models/electronic_commerc/electronic_commerc_list_model.dart';
import 'package:velocity_x/velocity_x.dart'; import 'package:velocity_x/velocity_x.dart';
import 'package:aku_community/constants/api.dart';
import 'package:aku_community/models/electronic_commerc/electronic_commerc_list_model.dart';
import 'package:aku_community/pages/electronic_commerc/electronic_commerc_card.dart';
import 'package:aku_community/pages/things_page/widget/bee_list_view.dart';
class ElectronicCommercView extends StatefulWidget { class ElectronicCommercView extends StatefulWidget {
final int id; final int id;
ElectronicCommercView({Key? key, required this.id}) : super(key: key); ElectronicCommercView({Key? key, required this.id}) : super(key: key);
@ -40,9 +42,7 @@ class _ElectronicCommercViewState extends State<ElectronicCommercView> {
return BeeListView( return BeeListView(
path: API.manager.electronicCommercList, path: API.manager.electronicCommercList,
controller: _refreshController, controller: _refreshController,
extraParams: { extraParams: {"electronicCommerceCategoryId": widget.id},
"electronicCommerceCategoryId":widget.id
},
convert: (models) { convert: (models) {
return models.tableList! return models.tableList!
.map((e) => ElectronicCommercListModel.fromJson(e)) .map((e) => ElectronicCommercListModel.fromJson(e))

@ -1,16 +1,16 @@
import 'package:aku_community/constants/api.dart';
import 'package:aku_community/models/express_package/express_package_list_model.dart';
import 'package:aku_community/utils/network/base_model.dart';
import 'package:aku_community/utils/network/net_util.dart';
import 'package:bot_toast/bot_toast.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:bot_toast/bot_toast.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:velocity_x/velocity_x.dart'; import 'package:velocity_x/velocity_x.dart';
import 'package:aku_community/base/base_style.dart'; import 'package:aku_community/base/base_style.dart';
import 'package:aku_community/const/resource.dart'; import 'package:aku_community/const/resource.dart';
import 'package:aku_community/constants/api.dart';
import 'package:aku_community/extensions/widget_list_ext.dart'; import 'package:aku_community/extensions/widget_list_ext.dart';
import 'package:aku_community/models/express_package/express_package_list_model.dart';
import 'package:aku_community/utils/network/base_model.dart';
import 'package:aku_community/utils/network/net_util.dart';
import 'package:aku_community/widget/bee_divider.dart'; import 'package:aku_community/widget/bee_divider.dart';
class ExpressPackageCard extends StatefulWidget { class ExpressPackageCard extends StatefulWidget {

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

@ -37,10 +37,8 @@ class GoodsInfoCard extends StatelessWidget {
Color _getColor(int? state) { Color _getColor(int? state) {
switch (state) { switch (state) {
case 1: case 1:
return kDarkPrimaryColor; return kDarkPrimaryColor;
case 2: case 2:
return ktextSubColor; return ktextSubColor;
default: default:
return kDangerColor; return kDangerColor;

@ -19,8 +19,7 @@ import 'package:aku_community/widget/buttons/radio_button.dart';
class BorrowGoodsDetailPage extends StatefulWidget { class BorrowGoodsDetailPage extends StatefulWidget {
final int articleId; final int articleId;
final List<int>? receiveIds; final List<int>? receiveIds;
BorrowGoodsDetailPage( BorrowGoodsDetailPage({Key? key, required this.articleId, this.receiveIds})
{Key? key, required this.articleId, this.receiveIds})
: super(key: key); : super(key: key);
@override @override
@ -67,8 +66,7 @@ class _BorrowGoodsDetailPageState extends State<BorrowGoodsDetailPage> {
? _empty() ? _empty()
: ListView( : ListView(
padding: EdgeInsets.symmetric(vertical: 12.w), padding: EdgeInsets.symmetric(vertical: 12.w),
children: [..._models.map((e) => _goodsCard(e)).toList()] children: [..._models.map((e) => _goodsCard(e)).toList()]),
),
), ),
bottomNavi: _onload ? _empty() : _bottomButton(), bottomNavi: _onload ? _empty() : _bottomButton(),
); );

@ -1,4 +1,5 @@
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter_easyrefresh/easy_refresh.dart'; import 'package:flutter_easyrefresh/easy_refresh.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart'; import 'package:get/get.dart';
@ -74,9 +75,7 @@ class _BorrowGoodsPageState extends State<BorrowGoodsPage> {
_receiveIds = List.generate(models.tableList?.length ?? 0, _receiveIds = List.generate(models.tableList?.length ?? 0,
(index) => BorrowGoodsSubmitModel.init()); (index) => BorrowGoodsSubmitModel.init());
print(_submitIds); print(_submitIds);
setState(() { setState(() {});
});
return models.tableList! return models.tableList!
.map((e) => ArticleBorrowModel.fromJson(e)) .map((e) => ArticleBorrowModel.fromJson(e))
.toList(); .toList();

@ -1,14 +1,10 @@
// Dart imports: // Dart imports:
import 'package:aku_community/constants/api.dart';
import 'package:aku_community/models/news/news_category_model.dart';
import 'package:aku_community/utils/network/base_model.dart';
import 'package:aku_community/utils/network/net_util.dart';
import 'package:bot_toast/bot_toast.dart';
import 'package:flutter/cupertino.dart'; import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:badges/badges.dart'; import 'package:badges/badges.dart';
import 'package:bot_toast/bot_toast.dart';
import 'package:flutter_easyrefresh/easy_refresh.dart'; import 'package:flutter_easyrefresh/easy_refresh.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart'; import 'package:get/get.dart';
@ -16,8 +12,10 @@ import 'package:provider/provider.dart';
import 'package:velocity_x/velocity_x.dart'; import 'package:velocity_x/velocity_x.dart';
import 'package:aku_community/const/resource.dart'; import 'package:aku_community/const/resource.dart';
import 'package:aku_community/constants/api.dart';
import 'package:aku_community/model/community/activity_item_model.dart'; import 'package:aku_community/model/community/activity_item_model.dart';
import 'package:aku_community/model/community/board_model.dart'; import 'package:aku_community/model/community/board_model.dart';
import 'package:aku_community/models/news/news_category_model.dart';
import 'package:aku_community/pages/home/widget/animate_app_bar.dart'; import 'package:aku_community/pages/home/widget/animate_app_bar.dart';
import 'package:aku_community/pages/message_center_page/message_center_page.dart'; import 'package:aku_community/pages/message_center_page/message_center_page.dart';
import 'package:aku_community/provider/app_provider.dart'; import 'package:aku_community/provider/app_provider.dart';
@ -29,6 +27,8 @@ import 'package:aku_community/ui/home/home_title.dart';
import 'package:aku_community/ui/home/public_infomation/public_infomation_page.dart'; import 'package:aku_community/ui/home/public_infomation/public_infomation_page.dart';
import 'package:aku_community/utils/headers.dart'; import 'package:aku_community/utils/headers.dart';
import 'package:aku_community/utils/login_util.dart'; import 'package:aku_community/utils/login_util.dart';
import 'package:aku_community/utils/network/base_model.dart';
import 'package:aku_community/utils/network/net_util.dart';
import 'package:aku_community/widget/buttons/column_action_button.dart'; import 'package:aku_community/widget/buttons/column_action_button.dart';
import 'package:aku_community/widget/views/application_box.dart'; import 'package:aku_community/widget/views/application_box.dart';
import 'package:aku_community/widget/views/application_view.dart'; import 'package:aku_community/widget/views/application_view.dart';

@ -1,6 +1,3 @@
import 'package:aku_community/pages/life_pay/pay_finish_page.dart';
import 'package:aku_community/utils/network/base_model.dart';
import 'package:aku_community/utils/network/net_util.dart';
import 'package:flutter/cupertino.dart'; import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
@ -13,12 +10,15 @@ import 'package:aku_community/base/base_style.dart';
import 'package:aku_community/constants/api.dart'; import 'package:aku_community/constants/api.dart';
import 'package:aku_community/model/manager/life_pay_model.dart'; import 'package:aku_community/model/manager/life_pay_model.dart';
import 'package:aku_community/pages/life_pay/life_pay_record_page.dart'; import 'package:aku_community/pages/life_pay/life_pay_record_page.dart';
import 'package:aku_community/pages/life_pay/pay_finish_page.dart';
import 'package:aku_community/pages/life_pay/widget/life_pay_detail_page.dart'; import 'package:aku_community/pages/life_pay/widget/life_pay_detail_page.dart';
import 'package:aku_community/pages/things_page/widget/bee_list_view.dart'; import 'package:aku_community/pages/things_page/widget/bee_list_view.dart';
import 'package:aku_community/provider/app_provider.dart'; import 'package:aku_community/provider/app_provider.dart';
import 'package:aku_community/ui/profile/house/pick_my_house_page.dart'; import 'package:aku_community/ui/profile/house/pick_my_house_page.dart';
import 'package:aku_community/utils/bee_parse.dart'; import 'package:aku_community/utils/bee_parse.dart';
import 'package:aku_community/utils/headers.dart'; import 'package:aku_community/utils/headers.dart';
import 'package:aku_community/utils/network/base_model.dart';
import 'package:aku_community/utils/network/net_util.dart';
import 'package:aku_community/widget/bee_divider.dart'; import 'package:aku_community/widget/bee_divider.dart';
import 'package:aku_community/widget/bee_scaffold.dart'; import 'package:aku_community/widget/bee_scaffold.dart';
import 'package:aku_community/widget/buttons/bee_check_radio.dart'; import 'package:aku_community/widget/buttons/bee_check_radio.dart';
@ -396,11 +396,11 @@ class _LifePayPageState extends State<LifePayPage> {
color: kPrimaryColor, color: kPrimaryColor,
padding: EdgeInsets.symmetric(horizontal: 50.w, vertical: 15.w), padding: EdgeInsets.symmetric(horizontal: 50.w, vertical: 15.w),
onPressed: () async { onPressed: () async {
BaseModel baseModel = await NetUtil() BaseModel baseModel =
.post('/user/dailyPayment/pay', params: { await NetUtil().post('/user/dailyPayment/pay', params: {
"ids": _ids, "ids": _ids,
"payType":1, // "payType": 1, //
"payPrice":_totalCost "payPrice": _totalCost
}); });
if (baseModel.status ?? false) { if (baseModel.status ?? false) {
Get.off(() => PayFinishPage()); Get.off(() => PayFinishPage());

@ -1,8 +1,9 @@
import 'package:aku_community/utils/headers.dart';
import 'package:aku_community/widget/bee_back_button.dart';
import 'package:flutter/cupertino.dart'; import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:aku_community/utils/headers.dart';
import 'package:aku_community/widget/bee_back_button.dart';
class PayFinishPage extends StatelessWidget { class PayFinishPage extends StatelessWidget {
const PayFinishPage({Key? key}) : super(key: key); const PayFinishPage({Key? key}) : super(key: key);
@ -36,7 +37,11 @@ class PayFinishPage extends StatelessWidget {
end: Alignment.bottomCenter), end: Alignment.bottomCenter),
), ),
alignment: Alignment.center, alignment: Alignment.center,
child: Icon(CupertinoIcons.checkmark_alt,size:150.w ,color: Colors.white,), child: Icon(
CupertinoIcons.checkmark_alt,
size: 150.w,
color: Colors.white,
),
), ),
70.w.heightBox, 70.w.heightBox,
'支付成功'.text.size(48.sp).color(Colors.white).bold.make(), '支付成功'.text.size(48.sp).color(Colors.white).bold.make(),

@ -253,7 +253,7 @@ class _LifePayDetailPageState extends State<LifePayDetailPage> {
color: kPrimaryColor, color: kPrimaryColor,
padding: EdgeInsets.symmetric(horizontal: 50.w, vertical: 15.w), padding: EdgeInsets.symmetric(horizontal: 50.w, vertical: 15.w),
onPressed: () { onPressed: () {
Get.back(result: [_payNum, _payTotal,_ids]); Get.back(result: [_payNum, _payTotal, _ids]);
}, },
child: '选好了'.text.black.size(32.sp).bold.make(), child: '选好了'.text.black.size(32.sp).bold.make(),
), ),

@ -1,5 +1,3 @@
import 'package:aku_community/constants/api.dart';
import 'package:aku_community/utils/network/net_util.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:amap_flutter_base/amap_flutter_base.dart'; import 'package:amap_flutter_base/amap_flutter_base.dart';
@ -12,9 +10,11 @@ import 'package:provider/provider.dart';
import 'package:url_launcher/url_launcher.dart'; import 'package:url_launcher/url_launcher.dart';
import 'package:velocity_x/velocity_x.dart'; import 'package:velocity_x/velocity_x.dart';
import 'package:aku_community/constants/api.dart';
import 'package:aku_community/pages/one_alarm/alarm_detail_page.dart'; import 'package:aku_community/pages/one_alarm/alarm_detail_page.dart';
import 'package:aku_community/provider/app_provider.dart'; import 'package:aku_community/provider/app_provider.dart';
import 'package:aku_community/utils/headers.dart'; import 'package:aku_community/utils/headers.dart';
import 'package:aku_community/utils/network/net_util.dart';
import 'package:aku_community/widget/bee_scaffold.dart'; import 'package:aku_community/widget/bee_scaffold.dart';
class PermissionUtil { class PermissionUtil {
@ -221,18 +221,18 @@ class _AlarmPageState extends State<AlarmPage> {
child: MaterialButton( child: MaterialButton(
shape: RoundedRectangleBorder( shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(172.w)), borderRadius: BorderRadius.circular(172.w)),
onPressed: () async{ onPressed: () async {
setState(() { setState(() {
_makephonenum('tel:110'); _makephonenum('tel:110');
}); });
if (appProvider.selectedHouse?.status==4) { if (appProvider.selectedHouse?.status == 4) {
await NetUtil().post(API.manager.recordAlarmInfo,params: { await NetUtil()
"estateId":appProvider.selectedHouse?.estateId, .post(API.manager.recordAlarmInfo, params: {
"estateId":
appProvider.selectedHouse?.estateId,
}); });
} }
}, },
child: Icon( child: Icon(
Feather.phone_call, Feather.phone_call,

@ -1,12 +1,14 @@
import 'package:aku_community/base/base_style.dart';
import 'package:aku_community/pages/renovation_manage/renovation_manage_detail_page.dart';
import 'package:aku_community/pages/renovation_manage/renovation_map.dart';
import 'package:flustars/flustars.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flustars/flustars.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart'; import 'package:get/get.dart';
import 'package:velocity_x/velocity_x.dart'; import 'package:velocity_x/velocity_x.dart';
import 'package:aku_community/base/base_style.dart';
import 'package:aku_community/const/resource.dart'; import 'package:aku_community/const/resource.dart';
import 'package:aku_community/pages/renovation_manage/renovation_manage_detail_page.dart';
import 'package:aku_community/pages/renovation_manage/renovation_map.dart';
class RenovationManageCard extends StatefulWidget { class RenovationManageCard extends StatefulWidget {
final int index; final int index;
@ -21,7 +23,7 @@ class _RenovationManageCardState extends State<RenovationManageCard> {
Widget build(BuildContext context) { Widget build(BuildContext context) {
return GestureDetector( return GestureDetector(
onTap: () { onTap: () {
Get.to(()=>RenovationManageDetailPage()); Get.to(() => RenovationManageDetailPage());
}, },
child: Container( child: Container(
margin: EdgeInsets.only(top: 16.w), margin: EdgeInsets.only(top: 16.w),

@ -1,13 +1,15 @@
import 'dart:math'; import 'dart:math';
import 'package:aku_community/base/base_style.dart';
import 'package:aku_community/pages/renovation_manage/renovation_map.dart';
import 'package:aku_community/widget/bee_scaffold.dart';
import 'package:flustars/flustars.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:velocity_x/velocity_x.dart';
import 'package:flustars/flustars.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:velocity_x/velocity_x.dart';
import 'package:aku_community/base/base_style.dart';
import 'package:aku_community/const/resource.dart'; import 'package:aku_community/const/resource.dart';
import 'package:aku_community/pages/renovation_manage/renovation_map.dart';
import 'package:aku_community/widget/bee_scaffold.dart';
class RenovationManageDetailPage extends StatefulWidget { class RenovationManageDetailPage extends StatefulWidget {
RenovationManageDetailPage({Key? key}) : super(key: key); RenovationManageDetailPage({Key? key}) : super(key: key);
@ -25,7 +27,11 @@ class _RenovationManageDetailPageState
title: '装修详情', title: '装修详情',
body: ListView( body: ListView(
padding: EdgeInsets.symmetric(vertical: 24.w), padding: EdgeInsets.symmetric(vertical: 24.w),
children: [_buildInfo(), _buildFinishWorkCheck(),_buildCycleCheck(),], children: [
_buildInfo(),
_buildFinishWorkCheck(),
_buildCycleCheck(),
],
), ),
); );
} }
@ -213,7 +219,6 @@ class _RenovationManageDetailPageState
); );
} }
_buildFinishWorkCheck() { _buildFinishWorkCheck() {
return _akuTitleBox( return _akuTitleBox(
'完工检查', '完工检查',
@ -246,7 +251,7 @@ class _RenovationManageDetailPageState
child: Text( child: Text(
'检查内容', '检查内容',
style: TextStyle( style: TextStyle(
color:ktextPrimary, color: ktextPrimary,
fontSize: 28.w, fontSize: 28.w,
), ),
), ),
@ -272,12 +277,7 @@ class _RenovationManageDetailPageState
format: 'yyyy-MM-dd', format: 'yyyy-MM-dd',
), ),
), ),
_buildRow( _buildRow(title: '接受人', subTitle: '黄鑫', onTap: () {}),
title: '接受人',
subTitle: '黄鑫',
onTap: () {
}
),
_buildRow(title: '所属项目', subTitle: '装修管理'), _buildRow(title: '所属项目', subTitle: '装修管理'),
_buildRow( _buildRow(
title: '开始日期', title: '开始日期',
@ -285,7 +285,7 @@ class _RenovationManageDetailPageState
'2020-10-23 10:24:56', '2020-10-23 10:24:56',
format: 'yyyy-MM-dd', format: 'yyyy-MM-dd',
), ),
onTap:() { onTap: () {
// showBottomSheet( // showBottomSheet(
// child: Column( // child: Column(
// mainAxisSize: MainAxisSize.min, // mainAxisSize: MainAxisSize.min,
@ -336,7 +336,7 @@ class _RenovationManageDetailPageState
), ),
_buildRow( _buildRow(
title: '检查周期', title: '检查周期',
subTitle:'2020-10-23 10:24:56', subTitle: '2020-10-23 10:24:56',
onTap: () { onTap: () {
// showAkuSheet( // showAkuSheet(
// child: Column( // child: Column(
@ -420,8 +420,7 @@ class _RenovationManageDetailPageState
// ).then((value) { // ).then((value) {
// setState(() {}); // setState(() {});
// }); // });
} }),
),
Padding( Padding(
padding: EdgeInsets.symmetric( padding: EdgeInsets.symmetric(
vertical: 28.w, vertical: 28.w,
@ -451,8 +450,6 @@ class _RenovationManageDetailPageState
); );
} }
_buildRow({ _buildRow({
String? title, String? title,
String? subTitle, String? subTitle,

@ -1,7 +1,8 @@
import 'package:flutter/material.dart';
import 'package:aku_community/pages/renovation_manage/renovation_manage_view.dart'; import 'package:aku_community/pages/renovation_manage/renovation_manage_view.dart';
import 'package:aku_community/widget/bee_scaffold.dart'; import 'package:aku_community/widget/bee_scaffold.dart';
import 'package:aku_community/widget/tab_bar/bee_tab_bar.dart'; import 'package:aku_community/widget/tab_bar/bee_tab_bar.dart';
import 'package:flutter/material.dart';
class RenovationManagePage extends StatefulWidget { class RenovationManagePage extends StatefulWidget {
RenovationManagePage({Key? key}) : super(key: key); RenovationManagePage({Key? key}) : super(key: key);

@ -1,6 +1,7 @@
import 'package:aku_community/pages/renovation_manage/renovation_manage_card.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:aku_community/pages/renovation_manage/renovation_manage_card.dart';
class RenovationManageView extends StatefulWidget { class RenovationManageView extends StatefulWidget {
final int index; final int index;
RenovationManageView({Key? key, required this.index}) : super(key: key); RenovationManageView({Key? key, required this.index}) : super(key: key);

@ -33,7 +33,7 @@ class RenovationMap {
-1: '申请中', -1: '申请中',
-2: '申请未通过', -2: '申请未通过',
-3: '申请通过', -3: '申请通过',
0:'待处理', 0: '待处理',
1: '已付押金', 1: '已付押金',
2: '装修中', 2: '装修中',
3: '完工检查申请中', 3: '完工检查申请中',

@ -1,14 +1,16 @@
import 'package:aku_community/base/base_style.dart';
import 'package:aku_community/models/service_browse/service_browse_list_mode.dart';
import 'package:aku_community/utils/link_text_parase.dart';
import 'package:aku_community/widget/bee_scaffold.dart';
import 'package:flustars/flustars.dart';
import 'package:flutter/gestures.dart'; import 'package:flutter/gestures.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flustars/flustars.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:url_launcher/url_launcher.dart'; import 'package:url_launcher/url_launcher.dart';
import 'package:velocity_x/velocity_x.dart'; import 'package:velocity_x/velocity_x.dart';
import 'package:aku_community/base/base_style.dart';
import 'package:aku_community/models/service_browse/service_browse_list_mode.dart';
import 'package:aku_community/utils/link_text_parase.dart';
import 'package:aku_community/widget/bee_scaffold.dart';
class ServiceBrowseDetailPage extends StatefulWidget { class ServiceBrowseDetailPage extends StatefulWidget {
final ServiceBrowseListModel model; final ServiceBrowseListModel model;
ServiceBrowseDetailPage({Key? key, required this.model}) : super(key: key); ServiceBrowseDetailPage({Key? key, required this.model}) : super(key: key);

@ -1,15 +1,17 @@
import 'package:flutter/material.dart';
import 'package:flustars/flustars.dart';
import 'package:flutter_easyrefresh/easy_refresh.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart';
import 'package:velocity_x/velocity_x.dart';
import 'package:aku_community/base/base_style.dart'; import 'package:aku_community/base/base_style.dart';
import 'package:aku_community/constants/api.dart'; import 'package:aku_community/constants/api.dart';
import 'package:aku_community/models/service_browse/service_browse_list_mode.dart'; import 'package:aku_community/models/service_browse/service_browse_list_mode.dart';
import 'package:aku_community/pages/service_browse/service_browse_detail_page.dart'; import 'package:aku_community/pages/service_browse/service_browse_detail_page.dart';
import 'package:aku_community/pages/things_page/widget/bee_list_view.dart'; import 'package:aku_community/pages/things_page/widget/bee_list_view.dart';
import 'package:aku_community/widget/bee_scaffold.dart'; import 'package:aku_community/widget/bee_scaffold.dart';
import 'package:flustars/flustars.dart';
import 'package:flutter/material.dart';
import 'package:flutter_easyrefresh/easy_refresh.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart';
import 'package:velocity_x/velocity_x.dart';
class ServiceBrowsePage extends StatefulWidget { class ServiceBrowsePage extends StatefulWidget {
ServiceBrowsePage({Key? key}) : super(key: key); ServiceBrowsePage({Key? key}) : super(key: key);
@ -60,7 +62,9 @@ class _ServiceBrowsePageState extends State<ServiceBrowsePage> {
Widget _buildCard(ServiceBrowseListModel model) { Widget _buildCard(ServiceBrowseListModel model) {
return MaterialButton( return MaterialButton(
onPressed: () { onPressed: () {
Get.to(() => ServiceBrowseDetailPage(model: model,)); Get.to(() => ServiceBrowseDetailPage(
model: model,
));
}, },
elevation: 0, elevation: 0,
color: Colors.white, color: Colors.white,

@ -52,7 +52,7 @@ class UserProvider extends ChangeNotifier {
Future updateProfile() async { Future updateProfile() async {
_userInfoModel = await SignFunc.getUserInfo(); _userInfoModel = await SignFunc.getUserInfo();
if (_userInfoModel != null && !kIsWeb && !Platform.isMacOS) { if (_userInfoModel != null && !kIsWeb && !Platform.isMacOS) {
await JPush().setAlias(_userInfoModel?.id.toString()??''); await JPush().setAlias(_userInfoModel?.id.toString() ?? '');
} }
notifyListeners(); notifyListeners();
} }

@ -38,7 +38,7 @@ class _FacilityAppointmentPageState extends State<FacilityAppointmentPage>
actions: [ actions: [
IconButton( IconButton(
icon: Icon(CupertinoIcons.add_circled), icon: Icon(CupertinoIcons.add_circled),
onPressed: () async{ onPressed: () async {
await Get.to(() => PickFacilityPage()); await Get.to(() => PickFacilityPage());
childKey.currentState!.callRefresh(); childKey.currentState!.callRefresh();
}, },
@ -54,7 +54,9 @@ class _FacilityAppointmentPageState extends State<FacilityAppointmentPage>
type: FacilityAppointmentType.MY, type: FacilityAppointmentType.MY,
key: childKey, key: childKey,
), ),
FacilityAppointmentView(type: FacilityAppointmentType.HISTORY,), FacilityAppointmentView(
type: FacilityAppointmentType.HISTORY,
),
], ],
controller: _tabController, controller: _tabController,
), ),

@ -1,4 +1,3 @@
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter_easyrefresh/easy_refresh.dart'; import 'package:flutter_easyrefresh/easy_refresh.dart';

@ -1,4 +1,3 @@
import 'package:aku_community/ui/community/facility/fcility_order_date_list_page.dart';
import 'package:flutter/cupertino.dart'; import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
@ -13,6 +12,7 @@ import 'package:aku_community/constants/app_theme.dart';
import 'package:aku_community/models/facility/facility_type_detail_model.dart'; import 'package:aku_community/models/facility/facility_type_detail_model.dart';
import 'package:aku_community/provider/app_provider.dart'; import 'package:aku_community/provider/app_provider.dart';
import 'package:aku_community/ui/community/facility/facility_type_detail_page.dart'; import 'package:aku_community/ui/community/facility/facility_type_detail_page.dart';
import 'package:aku_community/ui/community/facility/fcility_order_date_list_page.dart';
import 'package:aku_community/ui/profile/house/pick_my_house_page.dart'; import 'package:aku_community/ui/profile/house/pick_my_house_page.dart';
import 'package:aku_community/utils/headers.dart'; import 'package:aku_community/utils/headers.dart';
import 'package:aku_community/utils/network/net_util.dart'; import 'package:aku_community/utils/network/net_util.dart';
@ -122,7 +122,6 @@ class _FacilityPreorderPageState extends State<FacilityPreorderPage> {
materialTapTargetSize: MaterialTapTargetSize.shrinkWrap, materialTapTargetSize: MaterialTapTargetSize.shrinkWrap,
height: 120.w, height: 120.w,
onPressed: () async { onPressed: () async {
DateTime? date = await BeeDatePicker.pick( DateTime? date = await BeeDatePicker.pick(
startDate == null startDate == null
? DateTime.now().add(Duration(minutes: 90)) ? DateTime.now().add(Duration(minutes: 90))
@ -209,19 +208,33 @@ class _FacilityPreorderPageState extends State<FacilityPreorderPage> {
Widget _hasBeenOrder() { Widget _hasBeenOrder() {
return CupertinoAlertDialog( return CupertinoAlertDialog(
title: '此设施已被预约'.text.size(32.sp).bold.color(ktextPrimary).isIntrinsic.make(), title: '此设施已被预约'
content: '是否查看此设施已被预约时段?'.text.size(28.sp).color(ktextPrimary).isIntrinsic.make(), .text
.size(32.sp)
.bold
.color(ktextPrimary)
.isIntrinsic
.make(),
content: '是否查看此设施已被预约时段?'
.text
.size(28.sp)
.color(ktextPrimary)
.isIntrinsic
.make(),
actions: [ actions: [
CupertinoActionSheetAction( CupertinoActionSheetAction(
onPressed: () { onPressed: () {
Get.back(); Get.back();
}, },
child: '取消'.text.size(30.sp).color(ktextPrimary).isIntrinsic.make()), child:
'取消'.text.size(30.sp).color(ktextPrimary).isIntrinsic.make()),
CupertinoActionSheetAction( CupertinoActionSheetAction(
onPressed: () { onPressed: () {
Get.off(() => FacilityOrderDateListPage(facilitiesId: typeModel!.id)); Get.off(
() => FacilityOrderDateListPage(facilitiesId: typeModel!.id));
}, },
child: '查看'.text.size(30.sp).color(kPrimaryColor).isIntrinsic.make()), child:
'查看'.text.size(30.sp).color(kPrimaryColor).isIntrinsic.make()),
], ],
); );
} }

@ -1,13 +1,15 @@
import 'package:flutter/material.dart';
import 'package:flutter_easyrefresh/easy_refresh.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:velocity_x/velocity_x.dart';
import 'package:aku_community/base/base_style.dart'; import 'package:aku_community/base/base_style.dart';
import 'package:aku_community/constants/api.dart'; import 'package:aku_community/constants/api.dart';
import 'package:aku_community/models/facility/facility_order_date_list_model.dart'; import 'package:aku_community/models/facility/facility_order_date_list_model.dart';
import 'package:aku_community/pages/things_page/widget/bee_list_view.dart'; import 'package:aku_community/pages/things_page/widget/bee_list_view.dart';
import 'package:aku_community/widget/bee_divider.dart'; import 'package:aku_community/widget/bee_divider.dart';
import 'package:aku_community/widget/bee_scaffold.dart'; import 'package:aku_community/widget/bee_scaffold.dart';
import 'package:flutter/material.dart';
import 'package:flutter_easyrefresh/easy_refresh.dart';
import 'package:velocity_x/velocity_x.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
class FacilityOrderDateListPage extends StatefulWidget { class FacilityOrderDateListPage extends StatefulWidget {
final int facilitiesId; final int facilitiesId;

@ -1,13 +1,14 @@
import 'package:flutter/material.dart';
import 'package:flustars/flustars.dart';
import 'package:get/get.dart';
import 'package:aku_community/base/base_style.dart';
import 'package:aku_community/constants/api.dart'; import 'package:aku_community/constants/api.dart';
import 'package:aku_community/model/common/img_model.dart'; import 'package:aku_community/model/common/img_model.dart';
import 'package:aku_community/models/news/news_item_model.dart'; import 'package:aku_community/models/news/news_item_model.dart';
import 'package:aku_community/ui/home/public_infomation/public_information_detail_page.dart'; import 'package:aku_community/ui/home/public_infomation/public_information_detail_page.dart';
import 'package:flustars/flustars.dart';
import 'package:flutter/material.dart';
import 'package:aku_community/base/base_style.dart';
import 'package:aku_community/utils/headers.dart'; import 'package:aku_community/utils/headers.dart';
import 'package:get/get.dart';
class PublicInfomationCard extends StatelessWidget { class PublicInfomationCard extends StatelessWidget {
final NewsItemModel model; final NewsItemModel model;
@ -20,7 +21,7 @@ class PublicInfomationCard extends StatelessWidget {
elevation: 0, elevation: 0,
materialTapTargetSize: MaterialTapTargetSize.shrinkWrap, materialTapTargetSize: MaterialTapTargetSize.shrinkWrap,
onPressed: () { onPressed: () {
Get.to(() => PublicInformationDetailPage(id:this.model.id)); Get.to(() => PublicInformationDetailPage(id: this.model.id));
}, },
padding: EdgeInsets.zero, padding: EdgeInsets.zero,
child: Container( child: Container(

@ -1,12 +1,13 @@
import 'package:flutter/material.dart';
import 'package:flutter_easyrefresh/easy_refresh.dart';
import 'package:aku_community/constants/api.dart'; import 'package:aku_community/constants/api.dart';
import 'package:aku_community/models/news/news_category_model.dart'; import 'package:aku_community/models/news/news_category_model.dart';
import 'package:aku_community/models/news/news_item_model.dart'; import 'package:aku_community/models/news/news_item_model.dart';
import 'package:aku_community/pages/things_page/widget/bee_list_view.dart'; import 'package:aku_community/pages/things_page/widget/bee_list_view.dart';
import 'package:flutter/material.dart';
import 'package:aku_community/ui/home/public_infomation/public_infomation_card.dart'; import 'package:aku_community/ui/home/public_infomation/public_infomation_card.dart';
import 'package:aku_community/utils/headers.dart'; import 'package:aku_community/utils/headers.dart';
import 'package:flutter_easyrefresh/easy_refresh.dart';
class PublicInfomationView extends StatefulWidget { class PublicInfomationView extends StatefulWidget {
final NewsCategoryModel model; final NewsCategoryModel model;

@ -1,3 +1,13 @@
import 'package:flutter/gestures.dart';
import 'package:flutter/material.dart';
import 'package:bot_toast/bot_toast.dart';
import 'package:flustars/flustars.dart';
import 'package:flutter_easyrefresh/easy_refresh.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:url_launcher/url_launcher.dart';
import 'package:velocity_x/velocity_x.dart';
import 'package:aku_community/base/base_style.dart'; import 'package:aku_community/base/base_style.dart';
import 'package:aku_community/constants/api.dart'; import 'package:aku_community/constants/api.dart';
import 'package:aku_community/models/news/news_detail_model.dart'; import 'package:aku_community/models/news/news_detail_model.dart';
@ -5,14 +15,6 @@ import 'package:aku_community/utils/link_text_parase.dart';
import 'package:aku_community/utils/network/base_model.dart'; import 'package:aku_community/utils/network/base_model.dart';
import 'package:aku_community/utils/network/net_util.dart'; import 'package:aku_community/utils/network/net_util.dart';
import 'package:aku_community/widget/bee_scaffold.dart'; import 'package:aku_community/widget/bee_scaffold.dart';
import 'package:bot_toast/bot_toast.dart';
import 'package:flustars/flustars.dart';
import 'package:flutter/gestures.dart';
import 'package:flutter/material.dart';
import 'package:flutter_easyrefresh/easy_refresh.dart';
import 'package:url_launcher/url_launcher.dart';
import 'package:velocity_x/velocity_x.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
class PublicInformationDetailPage extends StatefulWidget { class PublicInformationDetailPage extends StatefulWidget {
final int id; final int id;

@ -1,7 +1,6 @@
import 'package:aku_community/utils/network/base_model.dart';
import 'package:bot_toast/bot_toast.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:bot_toast/bot_toast.dart';
import 'package:dio/dio.dart'; import 'package:dio/dio.dart';
import 'package:flustars/flustars.dart'; import 'package:flustars/flustars.dart';
import 'package:flutter_easyrefresh/easy_refresh.dart'; import 'package:flutter_easyrefresh/easy_refresh.dart';
@ -17,6 +16,7 @@ import 'package:aku_community/model/manager/suggestion_or_complain_model.dart';
import 'package:aku_community/ui/manager/advice/advice_add_comment_page.dart'; import 'package:aku_community/ui/manager/advice/advice_add_comment_page.dart';
import 'package:aku_community/ui/manager/advice/advice_evaluate_page.dart'; import 'package:aku_community/ui/manager/advice/advice_evaluate_page.dart';
import 'package:aku_community/utils/headers.dart'; import 'package:aku_community/utils/headers.dart';
import 'package:aku_community/utils/network/base_model.dart';
import 'package:aku_community/utils/network/net_util.dart'; import 'package:aku_community/utils/network/net_util.dart';
import 'package:aku_community/widget/bee_scaffold.dart'; import 'package:aku_community/widget/bee_scaffold.dart';
import 'package:aku_community/widget/buttons/bottom_button.dart'; import 'package:aku_community/widget/buttons/bottom_button.dart';

@ -1,10 +1,10 @@
import 'package:aku_community/constants/api.dart';
import 'package:aku_community/model/common/img_model.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:get/get.dart'; import 'package:get/get.dart';
import 'package:aku_community/base/base_style.dart'; import 'package:aku_community/base/base_style.dart';
import 'package:aku_community/constants/api.dart';
import 'package:aku_community/model/common/img_model.dart';
import 'package:aku_community/models/market/goods_item.dart'; import 'package:aku_community/models/market/goods_item.dart';
import 'package:aku_community/ui/market/goods/goods_detail_page.dart'; import 'package:aku_community/ui/market/goods/goods_detail_page.dart';
import 'package:aku_community/utils/headers.dart'; import 'package:aku_community/utils/headers.dart';

@ -1,4 +1,3 @@
import 'package:aku_community/widget/buttons/bottom_button.dart';
import 'package:flutter/cupertino.dart'; import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
@ -19,11 +18,12 @@ import 'package:aku_community/models/market/goods_item.dart';
import 'package:aku_community/provider/user_provider.dart'; import 'package:aku_community/provider/user_provider.dart';
import 'package:aku_community/ui/market/goods/goods_card.dart'; import 'package:aku_community/ui/market/goods/goods_card.dart';
import 'package:aku_community/ui/market/search/search_goods_page.dart'; import 'package:aku_community/ui/market/search/search_goods_page.dart';
import 'package:aku_community/utils/headers.dart';
import 'package:aku_community/utils/network/base_model.dart'; import 'package:aku_community/utils/network/base_model.dart';
import 'package:aku_community/utils/network/net_util.dart'; import 'package:aku_community/utils/network/net_util.dart';
import 'package:aku_community/widget/bee_back_button.dart'; import 'package:aku_community/widget/bee_back_button.dart';
import 'package:aku_community/widget/bee_scaffold.dart'; import 'package:aku_community/widget/bee_scaffold.dart';
import 'package:aku_community/utils/headers.dart'; import 'package:aku_community/widget/buttons/bottom_button.dart';
/// ///
class GoodsDetailPage extends StatefulWidget { class GoodsDetailPage extends StatefulWidget {
@ -128,7 +128,6 @@ class _GoodsDetailPageState extends State<GoodsDetailPage> {
.size(36.sp) .size(36.sp)
.bold .bold
.color(Colors.red) .color(Colors.red)
.make(), .make(),
8.w.widthBox, 8.w.widthBox,
'¥${_goodsModel.markingPrice}' '¥${_goodsModel.markingPrice}'

@ -1,6 +1,5 @@
// import 'package:aku_community/base/base_style.dart'; // import 'package:aku_community/base/base_style.dart';
import 'package:aku_community/ui/market/order/my_order_page.dart';
import 'package:flutter/cupertino.dart'; import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
@ -16,6 +15,7 @@ import 'package:aku_community/models/market/market_category_model.dart';
import 'package:aku_community/ui/market/category/category_card.dart'; import 'package:aku_community/ui/market/category/category_card.dart';
import 'package:aku_community/ui/market/category/category_page.dart'; import 'package:aku_community/ui/market/category/category_page.dart';
import 'package:aku_community/ui/market/goods/goods_card.dart'; import 'package:aku_community/ui/market/goods/goods_card.dart';
import 'package:aku_community/ui/market/order/my_order_page.dart';
import 'package:aku_community/ui/market/search/search_goods_page.dart'; import 'package:aku_community/ui/market/search/search_goods_page.dart';
import 'package:aku_community/utils/headers.dart'; import 'package:aku_community/utils/headers.dart';
import 'package:aku_community/utils/network/base_model.dart'; import 'package:aku_community/utils/network/base_model.dart';

@ -1,19 +1,21 @@
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart';
import 'package:velocity_x/velocity_x.dart';
import 'package:aku_community/base/base_style.dart'; import 'package:aku_community/base/base_style.dart';
import 'package:aku_community/const/resource.dart';
import 'package:aku_community/constants/api.dart'; import 'package:aku_community/constants/api.dart';
import 'package:aku_community/extensions/widget_list_ext.dart';
import 'package:aku_community/model/common/img_model.dart'; import 'package:aku_community/model/common/img_model.dart';
import 'package:aku_community/models/market/order/my_order_list_model.dart'; import 'package:aku_community/models/market/order/my_order_list_model.dart';
import 'package:aku_community/ui/market/order/my_order_detail_page.dart'; import 'package:aku_community/ui/market/order/my_order_detail_page.dart';
import 'package:aku_community/ui/market/order/my_order_evaluation_page.dart'; import 'package:aku_community/ui/market/order/my_order_evaluation_page.dart';
import 'package:aku_community/ui/market/order/my_order_func.dart'; import 'package:aku_community/ui/market/order/my_order_func.dart';
import 'package:aku_community/ui/market/order/my_order_refund_page.dart'; import 'package:aku_community/ui/market/order/my_order_refund_page.dart';
import 'package:aku_community/widget/buttons/card_bottom_button.dart';
import 'package:aku_community/widget/bee_divider.dart'; import 'package:aku_community/widget/bee_divider.dart';
import 'package:flutter/material.dart'; import 'package:aku_community/widget/buttons/card_bottom_button.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart';
import 'package:velocity_x/velocity_x.dart';
import 'package:aku_community/const/resource.dart';
import 'package:aku_community/extensions/widget_list_ext.dart';
class MyOrderCard extends StatefulWidget { class MyOrderCard extends StatefulWidget {
final MyOrderListModel model; final MyOrderListModel model;
@ -30,7 +32,9 @@ class _MyOrderCardState extends State<MyOrderCard> {
Widget build(BuildContext context) { Widget build(BuildContext context) {
return GestureDetector( return GestureDetector(
onTap: () { onTap: () {
Get.to(() => MyOrderDetailPage(model: widget.model,)); Get.to(() => MyOrderDetailPage(
model: widget.model,
));
}, },
child: Container( child: Container(
width: double.infinity, width: double.infinity,

@ -1,5 +1,15 @@
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_easyrefresh/easy_refresh.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:velocity_x/velocity_x.dart';
import 'package:waterfall_flow/waterfall_flow.dart';
import 'package:aku_community/base/base_style.dart'; import 'package:aku_community/base/base_style.dart';
import 'package:aku_community/const/resource.dart';
import 'package:aku_community/constants/api.dart'; import 'package:aku_community/constants/api.dart';
import 'package:aku_community/extensions/widget_list_ext.dart';
import 'package:aku_community/model/common/img_model.dart'; import 'package:aku_community/model/common/img_model.dart';
import 'package:aku_community/models/market/goods_item.dart'; import 'package:aku_community/models/market/goods_item.dart';
import 'package:aku_community/models/market/order/my_order_list_model.dart'; import 'package:aku_community/models/market/order/my_order_list_model.dart';
@ -7,14 +17,6 @@ import 'package:aku_community/ui/market/goods/goods_card.dart';
import 'package:aku_community/ui/market/order/my_order_func.dart'; import 'package:aku_community/ui/market/order/my_order_func.dart';
import 'package:aku_community/widget/bee_divider.dart'; import 'package:aku_community/widget/bee_divider.dart';
import 'package:aku_community/widget/bee_scaffold.dart'; import 'package:aku_community/widget/bee_scaffold.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_easyrefresh/easy_refresh.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:velocity_x/velocity_x.dart';
import 'package:aku_community/const/resource.dart';
import 'package:waterfall_flow/waterfall_flow.dart';
import 'package:aku_community/extensions/widget_list_ext.dart';
class MyOrderDetailPage extends StatefulWidget { class MyOrderDetailPage extends StatefulWidget {
final MyOrderListModel model; final MyOrderListModel model;

@ -1,4 +1,11 @@
import 'package:flutter/material.dart';
import 'package:flutter_rating_bar/flutter_rating_bar.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:velocity_x/velocity_x.dart';
import 'package:aku_community/base/base_style.dart'; import 'package:aku_community/base/base_style.dart';
import 'package:aku_community/const/resource.dart';
import 'package:aku_community/constants/api.dart'; import 'package:aku_community/constants/api.dart';
import 'package:aku_community/model/common/img_model.dart'; import 'package:aku_community/model/common/img_model.dart';
import 'package:aku_community/models/market/order/my_order_list_model.dart'; import 'package:aku_community/models/market/order/my_order_list_model.dart';
@ -7,11 +14,6 @@ import 'package:aku_community/widget/bee_divider.dart';
import 'package:aku_community/widget/bee_scaffold.dart'; import 'package:aku_community/widget/bee_scaffold.dart';
import 'package:aku_community/widget/buttons/bottom_button.dart'; import 'package:aku_community/widget/buttons/bottom_button.dart';
import 'package:aku_community/widget/others/bee_text_field.dart'; import 'package:aku_community/widget/others/bee_text_field.dart';
import 'package:flutter/material.dart';
import 'package:flutter_rating_bar/flutter_rating_bar.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:velocity_x/velocity_x.dart';
import 'package:aku_community/const/resource.dart';
class MyOrderEvaluationPage extends StatefulWidget { class MyOrderEvaluationPage extends StatefulWidget {
final MyOrderListModel model; final MyOrderListModel model;
@ -69,11 +71,7 @@ class _MyOrderEvaluationPageState extends State<MyOrderEvaluationPage> {
children: [ children: [
Row( Row(
children: [ children: [
'商品信息'.text '商品信息'.text.size(32.sp).bold.color(ktextPrimary).make(),
.size(32.sp)
.bold
.color(ktextPrimary)
.make(),
Spacer(), Spacer(),
// widget.model.statusString.text // widget.model.statusString.text
// .size(30.sp) // .size(30.sp)

@ -1,8 +1,10 @@
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:aku_community/ui/market/order/my_order_view.dart'; import 'package:aku_community/ui/market/order/my_order_view.dart';
import 'package:aku_community/widget/bee_scaffold.dart'; import 'package:aku_community/widget/bee_scaffold.dart';
import 'package:aku_community/widget/tab_bar/bee_tab_bar.dart'; import 'package:aku_community/widget/tab_bar/bee_tab_bar.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
class MyOrderPage extends StatefulWidget { class MyOrderPage extends StatefulWidget {
MyOrderPage({Key? key}) : super(key: key); MyOrderPage({Key? key}) : super(key: key);

@ -1,4 +1,10 @@
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:velocity_x/velocity_x.dart';
import 'package:aku_community/base/base_style.dart'; import 'package:aku_community/base/base_style.dart';
import 'package:aku_community/const/resource.dart';
import 'package:aku_community/constants/api.dart'; import 'package:aku_community/constants/api.dart';
import 'package:aku_community/model/common/img_model.dart'; import 'package:aku_community/model/common/img_model.dart';
import 'package:aku_community/models/market/order/my_order_list_model.dart'; import 'package:aku_community/models/market/order/my_order_list_model.dart';
@ -8,15 +14,10 @@ import 'package:aku_community/widget/bee_scaffold.dart';
import 'package:aku_community/widget/buttons/aku_single_check_button.dart'; import 'package:aku_community/widget/buttons/aku_single_check_button.dart';
import 'package:aku_community/widget/buttons/bottom_button.dart'; import 'package:aku_community/widget/buttons/bottom_button.dart';
import 'package:aku_community/widget/others/bee_text_field.dart'; import 'package:aku_community/widget/others/bee_text_field.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:velocity_x/velocity_x.dart';
import 'package:aku_community/const/resource.dart';
class MyOrderRefundPage extends StatefulWidget { class MyOrderRefundPage extends StatefulWidget {
final MyOrderListModel model; final MyOrderListModel model;
MyOrderRefundPage({Key? key, required this.model}) MyOrderRefundPage({Key? key, required this.model}) : super(key: key);
: super(key: key);
@override @override
_MyOrderRefundPageState createState() => _MyOrderRefundPageState(); _MyOrderRefundPageState createState() => _MyOrderRefundPageState();
@ -51,7 +52,8 @@ class _MyOrderRefundPageState extends State<MyOrderRefundPage> {
), ),
bottomNavi: BottomButton( bottomNavi: BottomButton(
onPressed: () async { onPressed: () async {
await MyOrderFunc.refundOrder(widget.model.id, _editingController.text); await MyOrderFunc.refundOrder(
widget.model.id, _editingController.text);
}, },
child: '确认提交'.text.size(32.sp).color(ktextPrimary).bold.make()), child: '确认提交'.text.size(32.sp).color(ktextPrimary).bold.make()),
); );
@ -69,11 +71,7 @@ class _MyOrderRefundPageState extends State<MyOrderRefundPage> {
children: [ children: [
Row( Row(
children: [ children: [
'商品信息'.text '商品信息'.text.size(32.sp).bold.color(ktextPrimary).make(),
.size(32.sp)
.bold
.color(ktextPrimary)
.make(),
Spacer(), Spacer(),
// widget.model.statusString.text // widget.model.statusString.text
// .size(30.sp) // .size(30.sp)

@ -1,12 +1,14 @@
import 'package:aku_community/constants/api.dart';
import 'package:aku_community/models/market/order/my_order_list_model.dart';
import 'package:aku_community/pages/things_page/widget/bee_list_view.dart';
import 'package:aku_community/ui/market/order/my_order_card.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter_easyrefresh/easy_refresh.dart'; import 'package:flutter_easyrefresh/easy_refresh.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:velocity_x/velocity_x.dart'; import 'package:velocity_x/velocity_x.dart';
import 'package:aku_community/constants/api.dart';
import 'package:aku_community/models/market/order/my_order_list_model.dart';
import 'package:aku_community/pages/things_page/widget/bee_list_view.dart';
import 'package:aku_community/ui/market/order/my_order_card.dart';
class MyOrderView extends StatefulWidget { class MyOrderView extends StatefulWidget {
final int index; final int index;
MyOrderView({Key? key, required this.index}) : super(key: key); MyOrderView({Key? key, required this.index}) : super(key: key);
@ -34,9 +36,7 @@ class _MyOrderViewState extends State<MyOrderView> {
return BeeListView( return BeeListView(
path: API.market.myOrderList, path: API.market.myOrderList,
controller: _refreshController, controller: _refreshController,
extraParams: { extraParams: {"orderStart": widget.index},
"orderStart":widget.index
},
convert: (models) { convert: (models) {
return models.tableList! return models.tableList!
.map((e) => MyOrderListModel.fromJson(e)) .map((e) => MyOrderListModel.fromJson(e))
@ -44,7 +44,7 @@ class _MyOrderViewState extends State<MyOrderView> {
}, },
builder: (items) { builder: (items) {
return ListView.separated( return ListView.separated(
padding: EdgeInsets.symmetric(vertical: 24.w,horizontal: 32.w), padding: EdgeInsets.symmetric(vertical: 24.w, horizontal: 32.w),
itemBuilder: (context, index) { itemBuilder: (context, index) {
return MyOrderCard( return MyOrderCard(
model: items[index], model: items[index],

@ -1,12 +1,14 @@
import 'dart:io'; import 'dart:io';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:velocity_x/velocity_x.dart';
import 'package:aku_community/base/base_style.dart'; import 'package:aku_community/base/base_style.dart';
import 'package:aku_community/widget/bee_scaffold.dart'; import 'package:aku_community/widget/bee_scaffold.dart';
import 'package:aku_community/widget/buttons/bottom_button.dart'; import 'package:aku_community/widget/buttons/bottom_button.dart';
import 'package:aku_community/widget/picker/grid_image_picker.dart'; import 'package:aku_community/widget/picker/grid_image_picker.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:velocity_x/velocity_x.dart';
class AddSecondGoodsPage extends StatefulWidget { class AddSecondGoodsPage extends StatefulWidget {
AddSecondGoodsPage({Key? key}) : super(key: key); AddSecondGoodsPage({Key? key}) : super(key: key);

@ -1,12 +1,14 @@
import 'package:aku_community/models/market/goods_item.dart';
import 'package:aku_community/ui/market/goods/goods_card.dart';
import 'package:aku_community/ui/market/second_hand/add_second_hand_goods_page.dart';
import 'package:aku_community/widget/bee_scaffold.dart';
import 'package:flutter/cupertino.dart'; import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart'; import 'package:get/get.dart';
import 'package:waterfall_flow/waterfall_flow.dart'; import 'package:waterfall_flow/waterfall_flow.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:aku_community/models/market/goods_item.dart';
import 'package:aku_community/ui/market/goods/goods_card.dart';
import 'package:aku_community/ui/market/second_hand/add_second_hand_goods_page.dart';
import 'package:aku_community/widget/bee_scaffold.dart';
class SecondHandPage extends StatefulWidget { class SecondHandPage extends StatefulWidget {
SecondHandPage({Key? key}) : super(key: key); SecondHandPage({Key? key}) : super(key: key);

@ -1,21 +1,21 @@
import 'package:aku_community/base/base_style.dart';
import 'package:aku_community/constants/api.dart';
import 'package:aku_community/model/common/img_model.dart';
import 'package:aku_community/model/community/activity_item_model.dart';
import 'package:aku_community/model/community/community_topic_model.dart';
import 'package:aku_community/models/search/search_model.dart';
import 'package:aku_community/utils/network/base_model.dart';
import 'package:aku_community/utils/network/net_util.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter_easyrefresh/easy_refresh.dart'; import 'package:flutter_easyrefresh/easy_refresh.dart';
import 'package:get/get.dart'; import 'package:get/get.dart';
import 'package:velocity_x/velocity_x.dart';
import 'package:aku_community/base/base_style.dart';
import 'package:aku_community/constants/api.dart';
import 'package:aku_community/constants/application_objects.dart'; import 'package:aku_community/constants/application_objects.dart';
import 'package:aku_community/model/common/img_model.dart';
import 'package:aku_community/model/community/activity_item_model.dart';
import 'package:aku_community/model/community/community_topic_model.dart';
import 'package:aku_community/models/search/search_model.dart';
import 'package:aku_community/utils/headers.dart'; import 'package:aku_community/utils/headers.dart';
import 'package:aku_community/utils/login_util.dart'; import 'package:aku_community/utils/login_util.dart';
import 'package:aku_community/utils/network/base_model.dart';
import 'package:aku_community/utils/network/net_util.dart';
import 'package:aku_community/widget/bee_back_button.dart'; import 'package:aku_community/widget/bee_back_button.dart';
import 'package:velocity_x/velocity_x.dart';
class BeeSearch extends StatefulWidget { class BeeSearch extends StatefulWidget {
BeeSearch({Key? key}) : super(key: key); BeeSearch({Key? key}) : super(key: key);
@ -167,7 +167,8 @@ class _BeeSearchState extends State<BeeSearch> {
.size(28.sp) .size(28.sp)
.color(ktextPrimary) .color(ktextPrimary)
.maxLines(2) .maxLines(2)
.bold.overflow(TextOverflow.ellipsis) .bold
.overflow(TextOverflow.ellipsis)
.isIntrinsic .isIntrinsic
.make() .make()
.expand(), .expand(),
@ -189,11 +190,7 @@ class _BeeSearchState extends State<BeeSearch> {
width: 24.w, width: 24.w,
), ),
12.wb, 12.wb,
'${model.activityNum}' '${model.activityNum}'.text.maxLines(1).size(22.sp).make()
.text
.maxLines(1)
.size(22.sp)
.make()
], ],
), ),
) )
@ -279,7 +276,7 @@ class _BeeSearchState extends State<BeeSearch> {
child: GridView.count( child: GridView.count(
crossAxisCount: 1, crossAxisCount: 1,
shrinkWrap: true, shrinkWrap: true,
childAspectRatio: 4/1, childAspectRatio: 4 / 1,
mainAxisSpacing: 20.w, mainAxisSpacing: 20.w,
physics: NeverScrollableScrollPhysics(), physics: NeverScrollableScrollPhysics(),
children: _getNullSafeObjects(_searchModel.activityVoList) children: _getNullSafeObjects(_searchModel.activityVoList)
@ -293,8 +290,7 @@ class _BeeSearchState extends State<BeeSearch> {
child: GridView.count( child: GridView.count(
crossAxisCount: 1, crossAxisCount: 1,
shrinkWrap: true, shrinkWrap: true,
childAspectRatio: 4/1, childAspectRatio: 4 / 1,
mainAxisSpacing: 20.w, mainAxisSpacing: 20.w,
physics: NeverScrollableScrollPhysics(), physics: NeverScrollableScrollPhysics(),
children: [ children: [

@ -37,11 +37,7 @@ class BeeMap {
1: '自己搬运', 1: '自己搬运',
2: '搬家公司', 2: '搬家公司',
}; };
static Map<int, String> goodsOutStatus = { static Map<int, String> goodsOutStatus = {1: '审核中', 2: '审核通过', 3: '审核失败'};
1:'审核中',
2:'审核通过',
3:'审核失败'
};
static Map<int, String> borrowStatus = {1: '出借中', 2: '已归还'}; static Map<int, String> borrowStatus = {1: '出借中', 2: '已归还'};

@ -1,5 +1,3 @@
class LinkTextParase { class LinkTextParase {
static List<String> stringParase(String text, {Pattern? pattern}) { static List<String> stringParase(String text, {Pattern? pattern}) {
List<String> _listString = []; List<String> _listString = [];

@ -1,7 +1,5 @@
// Flutter imports:
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
// Package imports:
import 'package:flutter_screenutil/flutter_screenutil.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:velocity_x/velocity_x.dart'; import 'package:velocity_x/velocity_x.dart';

@ -1,8 +1,10 @@
import 'package:aku_community/base/base_style.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:velocity_x/velocity_x.dart'; import 'package:velocity_x/velocity_x.dart';
import 'package:aku_community/base/base_style.dart';
class CardBottomButton extends StatelessWidget { class CardBottomButton extends StatelessWidget {
final String text; final String text;
final Color textColor; final Color textColor;
@ -17,16 +19,16 @@ class CardBottomButton extends StatelessWidget {
this.hasBorder = false, this.hasBorder = false,
required this.onPressed}) required this.onPressed})
: super(key: key); : super(key: key);
CardBottomButton.white( CardBottomButton.white({
{Key? key, Key? key,
required this.text, required this.text,
required this.onPressed, required this.onPressed,
}) : this.bgColor = Colors.white, }) : this.bgColor = Colors.white,
this.textColor = ktextPrimary, this.textColor = ktextPrimary,
this.hasBorder = true, this.hasBorder = true,
super(key: key); super(key: key);
CardBottomButton.yellow( CardBottomButton.yellow({
{Key? key, Key? key,
required this.text, required this.text,
required this.onPressed, required this.onPressed,
}) : this.bgColor = Color(0xFFFFC40C), }) : this.bgColor = Color(0xFFFFC40C),

@ -1,7 +1,9 @@
import 'package:aku_community/base/base_style.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:aku_community/base/base_style.dart';
class BeeTextField extends StatefulWidget { class BeeTextField extends StatefulWidget {
final TextEditingController controller; final TextEditingController controller;
final VoidCallback? onChange; final VoidCallback? onChange;

Loading…
Cancel
Save