[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/ui/community/facility/facility_appointment_page.dart';
import 'package:flutter/material.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/visitor_access_page/visitor_access_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/manager/advice/advice_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: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:package_info_plus_web/package_info_plus_web.dart';
import 'package:shared_preferences_web/shared_preferences_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
void registerPlugins(Registrar registrar) {
DeviceInfoPlusPlugin.registerWith(registrar);

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

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

@ -157,8 +157,8 @@ class _LifePayDetailPageState extends State<LifePayDetailPage> {
i++) {
for (var j = 0;
j <
widget.model!.dailyPaymentTypeVos![i].detailedVoList!
.length;
widget.model!.dailyPaymentTypeVos![i]
.detailedVoList!.length;
j++) {
String id =
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';
class MessageFunc {
static Future<SystemMessageDetailModel> getSystemMessageDetial(int? id) async {
static Future<SystemMessageDetailModel> getSystemMessageDetial(
int? id) async {
BaseModel baseModel =
await NetUtil().get(API.message.getSystemMessageDetial, params: {
'sysMessageId': id,

@ -125,7 +125,8 @@ class _AlarmPageState extends State<AlarmPage> {
child: Text(
(appProvider.location == null)
? '加载中……'
: appProvider.location!['address'] as String,
: appProvider.location!['address']
as String,
style: TextStyle(
color: Color(0xff666666),
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/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/painters/user_bottom_bar_painter.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/widget/views/application_view.dart';

@ -1,8 +1,6 @@
import 'dart:async';
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/material.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/user_provider.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 {
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/material.dart';
import 'package:bot_toast/bot_toast.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:aku_community/const/resource.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 'home/home_page.dart';
import 'personal/personal_page.dart';

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

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

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

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

@ -133,7 +133,8 @@ class _ChatCardState extends State<ChatCard> {
),
);
} else {
widget.model!.likeNames!.removeWhere((element) =>
widget.model!.likeNames!.removeWhere(
(element) =>
element.name ==
userProvider.userInfoModel!.nickName);
}
@ -298,8 +299,8 @@ class _ChatCardState extends State<ChatCard> {
clipBehavior: Clip.antiAlias,
child: FadeInImage.assetNetwork(
placeholder: R.ASSETS_IMAGES_PLACEHOLDER_WEBP,
image:
API.image(ImgModel.first(widget.model!.headSculptureImgUrl)),
image: API
.image(ImgModel.first(widget.model!.headSculptureImgUrl)),
height: 86.w,
width: 86.w,
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/tab_bar/bee_tab_bar.dart';
import 'package:flutter/material.dart';
class FacilityAppointmentPage extends StatefulWidget {
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/constants/api.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/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: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: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/widget/bee_scaffold.dart';
class PickFacilityPage extends StatefulWidget {
PickFacilityPage({Key? key}) : super(key: key);

@ -79,8 +79,13 @@ class _AdviceCardState extends State<AdviceCard> {
thickness: 1.w,
color: Color(0xFFE8E8E8),
),
widget.model!.content!.text.size(28.w).black.make().pSymmetric(h: 28.w),
HorizontalImageView(widget.model!.imgUrls!.map((e) => e.url).toList()),
widget.model!.content!.text
.size(28.w)
.black
.make()
.pSymmetric(h: 28.w),
HorizontalImageView(
widget.model!.imgUrls!.map((e) => e.url).toList()),
widget.model!.score == null
? SizedBox()
: 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_easyrefresh/easy_refresh.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')
class MarketData {
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/widget/bee_scaffold.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 {
MarketPage({Key? key}) : super(key: key);

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

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

@ -1,6 +1,7 @@
import 'package:flutter/material.dart';
import 'package:aku_community/widget/bee_scaffold.dart';
import 'package:aku_community/widget/tab_bar/bee_tab_bar.dart';
import 'package:flutter/material.dart';
class OrderPage extends StatefulWidget {
final int initIndex;

@ -10,7 +10,9 @@ import 'package:aku_community/utils/headers.dart';
class BeeImagePicker {
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(
title: title.text.isIntrinsic.make(),
actions: [

Loading…
Cancel
Save