[auto task] sort & format

hmxc
小赖 4 years ago
parent 0e92ca0133
commit 18392914e6

@ -1,5 +1,5 @@
// import 'package:aku_community/widget/bee_scaffold.dart'; // import 'package:aku_community/widget/bee_scaffold.dart';
import 'package:aku_community/ui/community/facility/facility_appointment_page.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:aku_community/const/resource.dart'; import 'package:aku_community/const/resource.dart';
@ -15,6 +15,7 @@ import 'package:aku_community/pages/setting_page/settings_page.dart';
import 'package:aku_community/pages/things_page/fixed_submit_page.dart'; import 'package:aku_community/pages/things_page/fixed_submit_page.dart';
import 'package:aku_community/pages/visitor_access_page/visitor_access_page.dart'; import 'package:aku_community/pages/visitor_access_page/visitor_access_page.dart';
import 'package:aku_community/ui/community/activity/activity_list_page.dart'; import 'package:aku_community/ui/community/activity/activity_list_page.dart';
import 'package:aku_community/ui/community/facility/facility_appointment_page.dart';
import 'package:aku_community/ui/home/application/all_application.dart'; import 'package:aku_community/ui/home/application/all_application.dart';
import 'package:aku_community/ui/manager/advice/advice_page.dart'; import 'package:aku_community/ui/manager/advice/advice_page.dart';
import 'package:aku_community/ui/manager/questionnaire/questionnaire_page.dart'; import 'package:aku_community/ui/manager/questionnaire/questionnaire_page.dart';

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

@ -9,7 +9,7 @@ class ArticleBorrowDetailModel {
String get borrowStatus { String get borrowStatus {
switch (this.status) { switch (this.status) {
case 1: case 1:
return '正常'; return '正常';
case 2: case 2:
return '破损'; return '破损';
case 3: case 3:

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

@ -120,7 +120,8 @@ class GoodsInfoCard extends StatelessWidget {
_builTile('物品重量', BeeMap.goodsOutweight[model!.weight!]!), _builTile('物品重量', BeeMap.goodsOutweight[model!.weight!]!),
_builTile('出户时间', model!.expectedTime!), _builTile('出户时间', model!.expectedTime!),
_builTile('物品名称', model!.name!), _builTile('物品名称', model!.name!),
_builTile('搬运方式', BeeMap.goodsOutApproach[model!.approach!]!), _builTile(
'搬运方式', BeeMap.goodsOutApproach[model!.approach!]!),
]), ]),
), ),
Container( Container(

@ -157,8 +157,8 @@ class _LifePayDetailPageState extends State<LifePayDetailPage> {
i++) { i++) {
for (var j = 0; for (var j = 0;
j < j <
widget.model!.dailyPaymentTypeVos![i].detailedVoList! widget.model!.dailyPaymentTypeVos![i]
.length; .detailedVoList!.length;
j++) { j++) {
String id = String id =
widget.model!.dailyPaymentTypeVos![i].id.toString() + widget.model!.dailyPaymentTypeVos![i].id.toString() +

@ -4,7 +4,8 @@ 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';
class MessageFunc { class MessageFunc {
static Future<SystemMessageDetailModel> getSystemMessageDetial(int? id) async { static Future<SystemMessageDetailModel> getSystemMessageDetial(
int? id) async {
BaseModel baseModel = BaseModel baseModel =
await NetUtil().get(API.message.getSystemMessageDetial, params: { await NetUtil().get(API.message.getSystemMessageDetial, params: {
'sysMessageId': id, 'sysMessageId': id,

@ -125,7 +125,8 @@ class _AlarmPageState extends State<AlarmPage> {
child: Text( child: Text(
(appProvider.location == null) (appProvider.location == null)
? '加载中……' ? '加载中……'
: appProvider.location!['address'] as String, : appProvider.location!['address']
as String,
style: TextStyle( style: TextStyle(
color: Color(0xff666666), color: Color(0xff666666),
fontSize: 28.sp, fontSize: 28.sp,

@ -1,4 +1,3 @@
import 'package:aku_community/ui/profile/order/order_page.dart';
import 'package:flutter/cupertino.dart'; import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
@ -15,6 +14,7 @@ import 'package:aku_community/pages/personal/user_profile_page.dart';
import 'package:aku_community/pages/sign/sign_in_page.dart'; import 'package:aku_community/pages/sign/sign_in_page.dart';
import 'package:aku_community/painters/user_bottom_bar_painter.dart'; import 'package:aku_community/painters/user_bottom_bar_painter.dart';
import 'package:aku_community/provider/user_provider.dart'; import 'package:aku_community/provider/user_provider.dart';
import 'package:aku_community/ui/profile/order/order_page.dart';
import 'package:aku_community/utils/headers.dart'; import 'package:aku_community/utils/headers.dart';
import 'package:aku_community/widget/views/application_view.dart'; import 'package:aku_community/widget/views/application_view.dart';

@ -1,8 +1,6 @@
import 'dart:async'; import 'dart:async';
import 'dart:ui'; import 'dart:ui';
import 'package:aku_community/widget/bee_back_button.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/services.dart'; import 'package:flutter/services.dart';
@ -28,6 +26,8 @@ import 'package:aku_community/pages/tab_navigator.dart';
import 'package:aku_community/provider/sign_up_provider.dart'; import 'package:aku_community/provider/sign_up_provider.dart';
import 'package:aku_community/provider/user_provider.dart'; import 'package:aku_community/provider/user_provider.dart';
import 'package:aku_community/utils/headers.dart'; import 'package:aku_community/utils/headers.dart';
import 'package:aku_community/widget/bee_back_button.dart';
import 'package:aku_community/widget/bee_scaffold.dart';
class SignInPage extends StatefulWidget { class SignInPage extends StatefulWidget {
SignInPage({Key? key}) : super(key: key); SignInPage({Key? key}) : super(key: key);

@ -1,12 +1,12 @@
import 'package:aku_community/ui/market/market_page.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:bot_toast/bot_toast.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:aku_community/const/resource.dart'; import 'package:aku_community/const/resource.dart';
import 'package:aku_community/ui/community/community_views/community_page.dart'; import 'package:aku_community/ui/community/community_views/community_page.dart';
import 'package:aku_community/ui/market/market_page.dart';
import 'package:aku_community/widget/bee_scaffold.dart'; import 'package:aku_community/widget/bee_scaffold.dart';
import 'home/home_page.dart'; import 'home/home_page.dart';
import 'personal/personal_page.dart'; import 'personal/personal_page.dart';

@ -99,7 +99,8 @@ class _FixedDetailPageState extends State<FixedDetailPage> {
borderRadius: BorderRadius.circular(36.w), borderRadius: BorderRadius.circular(36.w),
color: Colors.transparent, color: Colors.transparent,
), ),
child: BeeMap.fixTag[model.appReportRepairVo!.type!]!.text.black child: BeeMap
.fixTag[model.appReportRepairVo!.type!]!.text.black
.size(20.sp) .size(20.sp)
.make(), .make(),
), ),

@ -1,8 +1,8 @@
import 'package:collection/collection.dart' show IterableExtension;
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:amap_flutter_location/amap_flutter_location.dart'; import 'package:amap_flutter_location/amap_flutter_location.dart';
import 'package:amap_flutter_location/amap_location_option.dart'; import 'package:amap_flutter_location/amap_location_option.dart';
import 'package:collection/collection.dart' show IterableExtension;
import 'package:dio/dio.dart'; import 'package:dio/dio.dart';
import 'package:power_logger/power_logger.dart'; import 'package:power_logger/power_logger.dart';

@ -77,7 +77,8 @@ class ActivityCard extends StatelessWidget {
.make(), .make(),
].row().pSymmetric(h: 24.w), ].row().pSymmetric(h: 24.w),
[ [
StackAvatar(avatars: model!.headImgURls!.map((e) => e.url).toList()), StackAvatar(
avatars: model!.headImgURls!.map((e) => e.url).toList()),
Spacer(), Spacer(),
MaterialButton( MaterialButton(
elevation: 0, elevation: 0,

@ -163,7 +163,8 @@ class _ActivityDetailPageState extends State<ActivityDetailPage> {
child: Row( child: Row(
children: [ children: [
StackAvatar( StackAvatar(
avatars: model!.headImgURls!.map((e) => e.url).toList(), avatars:
model!.headImgURls!.map((e) => e.url).toList(),
), ),
Spacer(), Spacer(),
'已有${model!.countRegistration}人参加' '已有${model!.countRegistration}人参加'

@ -133,9 +133,10 @@ class _ChatCardState extends State<ChatCard> {
), ),
); );
} else { } else {
widget.model!.likeNames!.removeWhere((element) => widget.model!.likeNames!.removeWhere(
element.name == (element) =>
userProvider.userInfoModel!.nickName); element.name ==
userProvider.userInfoModel!.nickName);
} }
widget.model!.isLike = widget.model!.isLike =
(widget.model!.isLike == 1) ? 0 : 1; (widget.model!.isLike == 1) ? 0 : 1;
@ -298,8 +299,8 @@ class _ChatCardState extends State<ChatCard> {
clipBehavior: Clip.antiAlias, clipBehavior: Clip.antiAlias,
child: FadeInImage.assetNetwork( child: FadeInImage.assetNetwork(
placeholder: R.ASSETS_IMAGES_PLACEHOLDER_WEBP, placeholder: R.ASSETS_IMAGES_PLACEHOLDER_WEBP,
image: image: API
API.image(ImgModel.first(widget.model!.headSculptureImgUrl)), .image(ImgModel.first(widget.model!.headSculptureImgUrl)),
height: 86.w, height: 86.w,
width: 86.w, width: 86.w,
fit: BoxFit.cover, fit: BoxFit.cover,

@ -1,6 +1,7 @@
import 'package:flutter/material.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 FacilityAppointmentPage extends StatefulWidget { class FacilityAppointmentPage extends StatefulWidget {
FacilityAppointmentPage({Key? key}) : super(key: key); FacilityAppointmentPage({Key? key}) : super(key: key);

@ -1,7 +1,8 @@
import 'package:flutter/material.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/model/common/img_model.dart'; import 'package:aku_community/model/common/img_model.dart';
import 'package:flutter/material.dart';
import 'package:aku_community/models/facility/facility_type_model.dart'; import 'package:aku_community/models/facility/facility_type_model.dart';
import 'package:aku_community/utils/headers.dart'; import 'package:aku_community/utils/headers.dart';

@ -1,12 +1,13 @@
import 'package:aku_community/constants/api.dart';
import 'package:aku_community/pages/things_page/widget/bee_list_view.dart';
import 'package:aku_community/ui/community/facility/facility_type_card.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:aku_community/widget/bee_scaffold.dart';
import 'package:aku_community/models/facility/facility_type_model.dart';
import 'package:flutter_easyrefresh/easy_refresh.dart'; import 'package:flutter_easyrefresh/easy_refresh.dart';
import 'package:aku_community/constants/api.dart';
import 'package:aku_community/models/facility/facility_type_model.dart';
import 'package:aku_community/pages/things_page/widget/bee_list_view.dart';
import 'package:aku_community/ui/community/facility/facility_type_card.dart';
import 'package:aku_community/utils/headers.dart'; import 'package:aku_community/utils/headers.dart';
import 'package:aku_community/widget/bee_scaffold.dart';
class PickFacilityPage extends StatefulWidget { class PickFacilityPage extends StatefulWidget {
PickFacilityPage({Key? key}) : super(key: key); PickFacilityPage({Key? key}) : super(key: key);

@ -79,8 +79,13 @@ class _AdviceCardState extends State<AdviceCard> {
thickness: 1.w, thickness: 1.w,
color: Color(0xFFE8E8E8), color: Color(0xFFE8E8E8),
), ),
widget.model!.content!.text.size(28.w).black.make().pSymmetric(h: 28.w), widget.model!.content!.text
HorizontalImageView(widget.model!.imgUrls!.map((e) => e.url).toList()), .size(28.w)
.black
.make()
.pSymmetric(h: 28.w),
HorizontalImageView(
widget.model!.imgUrls!.map((e) => e.url).toList()),
widget.model!.score == null widget.model!.score == null
? SizedBox() ? SizedBox()
: Divider( : Divider(

@ -1,9 +1,11 @@
import 'package:aku_community/utils/headers.dart';
import 'package:aku_community/widget/bee_scaffold.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:aku_community/utils/headers.dart';
import 'package:aku_community/widget/bee_scaffold.dart';
@Deprecated('NO NEED THIS CLASS IN FUTURE') @Deprecated('NO NEED THIS CLASS IN FUTURE')
class MarketData { class MarketData {
final String name; final String name;

@ -1,8 +1,10 @@
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:aku_community/ui/market/_market_data.dart'; import 'package:aku_community/ui/market/_market_data.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 MarketPage extends StatefulWidget { class MarketPage extends StatefulWidget {
MarketPage({Key? key}) : super(key: key); MarketPage({Key? key}) : super(key: key);

@ -185,7 +185,8 @@ class _AddHousePageState extends State<AddHousePage> {
text: _item?.houseName, text: _item?.houseName,
hintText: '请选择楼栋、单元、室', hintText: '请选择楼栋、单元、室',
onTap: () async { onTap: () async {
HouseItem? tempItem = await Get.to(() => PickBuildingPage()); HouseItem? tempItem =
await Get.to(() => PickBuildingPage());
if (tempItem != null) _item = tempItem; if (tempItem != null) _item = tempItem;
setState(() {}); setState(() {});
}, },
@ -271,7 +272,8 @@ class _AddHousePageState extends State<AddHousePage> {
if (_roleType == 3) { if (_roleType == 3) {
params.putIfAbsent( params.putIfAbsent(
'effectiveTimeStart', () => NetUtil.getDate(_range!.start)); 'effectiveTimeStart', () => NetUtil.getDate(_range!.start));
params.putIfAbsent('effectiveTimeEnd', () => NetUtil.getDate(_range!.end)); params.putIfAbsent(
'effectiveTimeEnd', () => NetUtil.getDate(_range!.end));
} }
VoidCallback cancel = BotToast.showLoading(); VoidCallback cancel = BotToast.showLoading();
BaseModel model = await NetUtil().post( BaseModel model = await NetUtil().post(

@ -24,12 +24,12 @@ class HouseCard extends StatelessWidget {
const HouseCard.fail({ const HouseCard.fail({
Key? key, Key? key,
required this.model, required this.model,
}) : type = CardAuthType.FAIL, }) : type = CardAuthType.FAIL,
super(key: key); super(key: key);
const HouseCard.success({ const HouseCard.success({
Key? key, Key? key,
required this.model, required this.model,
}) : type = CardAuthType.SUCCESS, }) : type = CardAuthType.SUCCESS,
super(key: key); super(key: key);
String get _assetPath { String get _assetPath {

@ -1,4 +1,3 @@
import 'package:aku_community/model/user/pick_building_model.dart'; import 'package:aku_community/model/user/pick_building_model.dart';
class HouseItem { class HouseItem {

@ -1,6 +1,7 @@
import 'package:flutter/material.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 OrderPage extends StatefulWidget { class OrderPage extends StatefulWidget {
final int initIndex; final int initIndex;

@ -10,7 +10,9 @@ import 'package:aku_community/utils/headers.dart';
class BeeImagePicker { class BeeImagePicker {
static Future<File?> pick( static Future<File?> pick(
{required String title, double maxWidth = 1000, double maxHeight = 1000}) async { {required String title,
double maxWidth = 1000,
double maxHeight = 1000}) async {
PickedFile? file = await Get.bottomSheet(CupertinoActionSheet( PickedFile? file = await Get.bottomSheet(CupertinoActionSheet(
title: title.text.isIntrinsic.make(), title: title.text.isIntrinsic.make(),
actions: [ actions: [

Loading…
Cancel
Save