From 1977601ec81c2812a36a99fa8000d7ae3246b02f Mon Sep 17 00:00:00 2001 From: laiiihz Date: Sat, 8 May 2021 13:33:24 +0800 Subject: [PATCH] [auto task] sort & format --- lib/generated_plugin_registrant.dart | 3 +-- lib/models/facility/facility_type_detail_model.dart | 1 + lib/ui/community/facility/facility_appointment_page.dart | 2 +- lib/ui/community/facility/facility_preorder_page.dart | 8 ++++---- lib/ui/community/facility/facility_type_card.dart | 2 +- lib/ui/community/facility/facility_type_detail_page.dart | 8 +++++--- lib/ui/market/category/category_page.dart | 2 +- lib/ui/market/goods/goods_card.dart | 5 +++-- lib/ui/market/goods/goods_detail_page.dart | 3 ++- 9 files changed, 19 insertions(+), 15 deletions(-) diff --git a/lib/generated_plugin_registrant.dart b/lib/generated_plugin_registrant.dart index 222a4e7a..8e0b1cb0 100644 --- a/lib/generated_plugin_registrant.dart +++ b/lib/generated_plugin_registrant.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); diff --git a/lib/models/facility/facility_type_detail_model.dart b/lib/models/facility/facility_type_detail_model.dart index fd246302..8e306b64 100644 --- a/lib/models/facility/facility_type_detail_model.dart +++ b/lib/models/facility/facility_type_detail_model.dart @@ -1,5 +1,6 @@ import 'package:equatable/equatable.dart'; import 'package:json_annotation/json_annotation.dart'; + part 'facility_type_detail_model.g.dart'; @JsonSerializable() diff --git a/lib/ui/community/facility/facility_appointment_page.dart b/lib/ui/community/facility/facility_appointment_page.dart index df4f79e0..b1e38297 100644 --- a/lib/ui/community/facility/facility_appointment_page.dart +++ b/lib/ui/community/facility/facility_appointment_page.dart @@ -1,10 +1,10 @@ -import 'package:aku_community/ui/community/facility/pick_facility_page.dart'; import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; import 'package:get/get.dart'; import 'package:aku_community/ui/community/facility/facility_appointment_view.dart'; +import 'package:aku_community/ui/community/facility/pick_facility_page.dart'; import 'package:aku_community/widget/bee_scaffold.dart'; import 'package:aku_community/widget/tab_bar/bee_tab_bar.dart'; diff --git a/lib/ui/community/facility/facility_preorder_page.dart b/lib/ui/community/facility/facility_preorder_page.dart index ee977764..6c5b1ace 100644 --- a/lib/ui/community/facility/facility_preorder_page.dart +++ b/lib/ui/community/facility/facility_preorder_page.dart @@ -1,5 +1,3 @@ -import 'package:aku_community/models/facility/facility_type_detail_model.dart'; -import 'package:aku_community/ui/community/facility/facility_type_detail_page.dart'; import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; @@ -11,7 +9,9 @@ import 'package:provider/provider.dart'; import 'package:aku_community/base/base_style.dart'; import 'package:aku_community/constants/api.dart'; import 'package:aku_community/constants/app_theme.dart'; +import 'package:aku_community/models/facility/facility_type_detail_model.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/profile/house/pick_my_house_page.dart'; import 'package:aku_community/utils/headers.dart'; import 'package:aku_community/utils/network/net_util.dart'; @@ -69,8 +69,8 @@ class _FacilityPreorderPageState extends State { width: 60.w, ), onTap: () async { - FacilityTypeDetailModel? model = - await Get.to(() => FacilityTypeDetailPage(model: typeModel, id: widget.id)); + FacilityTypeDetailModel? model = await Get.to(() => + FacilityTypeDetailPage(model: typeModel, id: widget.id)); if (model != null) typeModel = model; setState(() {}); }, diff --git a/lib/ui/community/facility/facility_type_card.dart b/lib/ui/community/facility/facility_type_card.dart index 99f3c309..314bd79a 100644 --- a/lib/ui/community/facility/facility_type_card.dart +++ b/lib/ui/community/facility/facility_type_card.dart @@ -1,4 +1,3 @@ -import 'package:aku_community/ui/community/facility/facility_preorder_page.dart'; import 'package:flutter/material.dart'; import 'package:get/get.dart'; @@ -7,6 +6,7 @@ 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/facility/facility_type_model.dart'; +import 'package:aku_community/ui/community/facility/facility_preorder_page.dart'; import 'package:aku_community/utils/headers.dart'; class FacilityTypeCard extends StatelessWidget { diff --git a/lib/ui/community/facility/facility_type_detail_page.dart b/lib/ui/community/facility/facility_type_detail_page.dart index f6f0a463..bec2036e 100644 --- a/lib/ui/community/facility/facility_type_detail_page.dart +++ b/lib/ui/community/facility/facility_type_detail_page.dart @@ -1,12 +1,14 @@ +import 'package:flutter/material.dart'; + +import 'package:flutter_easyrefresh/easy_refresh.dart'; +import 'package:get/get.dart'; + import 'package:aku_community/constants/api.dart'; import 'package:aku_community/models/facility/facility_type_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_divider.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'; class FacilityTypeDetailPage extends StatefulWidget { final int id; diff --git a/lib/ui/market/category/category_page.dart b/lib/ui/market/category/category_page.dart index 964f3799..82e7c172 100644 --- a/lib/ui/market/category/category_page.dart +++ b/lib/ui/market/category/category_page.dart @@ -1,7 +1,7 @@ -import 'package:aku_community/base/base_style.dart'; import 'package:flutter/cupertino.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/widget/bee_scaffold.dart'; diff --git a/lib/ui/market/goods/goods_card.dart b/lib/ui/market/goods/goods_card.dart index 44495bb5..2d874a2f 100644 --- a/lib/ui/market/goods/goods_card.dart +++ b/lib/ui/market/goods/goods_card.dart @@ -1,9 +1,10 @@ -import 'package:aku_community/ui/market/goods/goods_detail_page.dart'; import 'package:flutter/material.dart'; +import 'package:get/get.dart'; + import 'package:aku_community/base/base_style.dart'; +import 'package:aku_community/ui/market/goods/goods_detail_page.dart'; import 'package:aku_community/utils/headers.dart'; -import 'package:get/get.dart'; class GoodsCard extends StatelessWidget { const GoodsCard({Key? key}) : super(key: key); diff --git a/lib/ui/market/goods/goods_detail_page.dart b/lib/ui/market/goods/goods_detail_page.dart index e1437f3b..d742f19e 100644 --- a/lib/ui/market/goods/goods_detail_page.dart +++ b/lib/ui/market/goods/goods_detail_page.dart @@ -1,6 +1,7 @@ -import 'package:aku_community/widget/bee_scaffold.dart'; import 'package:flutter/material.dart'; +import 'package:aku_community/widget/bee_scaffold.dart'; + class GoodsDetailPage extends StatefulWidget { GoodsDetailPage({Key? key}) : super(key: key);