Merge branch 'without_change'

# Conflicts:
#	lib/const/resource.dart
#	lib/constants/api.dart
#	lib/constants/application_objects.dart
#	lib/main.dart
#	lib/models/geographic_information/geographic_information_model.dart
#	lib/models/house_introduce/house_introduce_model.dart
#	lib/pages/house_introduce/house_detail_page.dart
#	lib/pages/house_introduce/house_introduce.dart
#	lib/utils/websocket/AlarmModel.dart
#	lib/utils/websocket/fire_dialog.dart
hmxc
章文轩 3 years ago
commit 58cff6462f

@ -315,9 +315,16 @@ class _Manager {
String get sharePayRecord => String get sharePayRecord =>
'/user/meterReadingShareDetails/findAllMeterShareOrderByTel'; '/user/meterReadingShareDetails/findAllMeterShareOrderByTel';
/// ///
String get houseType => String get houseType =>
'/user/houseTypeDescription/list'; '/user/houseTypeDescription/list';
///
String get surroundingEnterprises =>
'/user/surroundingEnterprises/list';
} }
class _Community { class _Community {

@ -6,6 +6,7 @@ import 'package:aku_community/pages/convenient_phone/convenient_phone_page.dart'
import 'package:aku_community/pages/electronic_commerc/electronic_commerc_page.dart'; import 'package:aku_community/pages/electronic_commerc/electronic_commerc_page.dart';
import 'package:aku_community/pages/event_activity/event_voting_page.dart'; import 'package:aku_community/pages/event_activity/event_voting_page.dart';
import 'package:aku_community/pages/express_packages/express_package_page.dart'; import 'package:aku_community/pages/express_packages/express_package_page.dart';
import 'package:aku_community/pages/geographic_information/geographic_information_page.dart';
import 'package:aku_community/pages/goods_deto_page/goods_deto_page.dart'; import 'package:aku_community/pages/goods_deto_page/goods_deto_page.dart';
import 'package:aku_community/pages/goods_manage_page/select_borrow_return_page.dart'; import 'package:aku_community/pages/goods_manage_page/select_borrow_return_page.dart';
import 'package:aku_community/pages/house_introduce/house_introduce.dart'; import 'package:aku_community/pages/house_introduce/house_introduce.dart';
@ -16,6 +17,7 @@ import 'package:aku_community/pages/opening_code_page/opening_code_page.dart';
import 'package:aku_community/pages/renovation_manage/new_renovation/new_renovation_page.dart'; import 'package:aku_community/pages/renovation_manage/new_renovation/new_renovation_page.dart';
import 'package:aku_community/pages/service_browse/service_browse_page.dart'; import 'package:aku_community/pages/service_browse/service_browse_page.dart';
import 'package:aku_community/pages/setting_page/settings_page.dart'; import 'package:aku_community/pages/setting_page/settings_page.dart';
import 'package:aku_community/pages/surrounding_enterprises/Surrounding_enterprises_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';
@ -93,8 +95,8 @@ List<AO> appObjects = [
AO('社区介绍', R.ASSETS_ICONS_INTRODUCE_PNG, () => CommunityIntroducePage()), AO('社区介绍', R.ASSETS_ICONS_INTRODUCE_PNG, () => CommunityIntroducePage()),
AO('家政服务', R.ASSETS_ICONS_HOUSE_KEEPING_PNG, () => HouseKeepingPage()), AO('家政服务', R.ASSETS_ICONS_HOUSE_KEEPING_PNG, () => HouseKeepingPage()),
AO('地理信息', R.ASSETS_ICONS_INTRODUCE_PNG, () => CommunityIntroducePage()), AO('地理信息', R.ASSETS_ICONS_INTRODUCE_PNG, () => GeographicInformationPage()),
AO('周边企业', R.ASSETS_ICONS_HOUSE_KEEPING_PNG, () => HouseKeepingPage()), AO('周边企业', R.ASSETS_ICONS_HOUSE_KEEPING_PNG, () => SurroundingEnterprisesPage()),
AO('住房介绍', R.ASSETS_ICONS_INTRODUCE_PNG, () => HouseIntroducePage()), AO('住房介绍', R.ASSETS_ICONS_INTRODUCE_PNG, () => HouseIntroducePage()),
// AO( // AO(
@ -183,7 +185,10 @@ List<String> _smartManagerApp = [
'家政服务', '家政服务',
'地理信息', '地理信息',
'周边企业', '周边企业',
'住房介绍', '住房介绍'
// '小区教育', // '小区教育',
// '健康运动', // '健康运动',
// '家政服务', // '家政服务',

@ -9,7 +9,6 @@ import 'package:aku_community/utils/headers.dart';
import 'package:bot_toast/bot_toast.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:flutter/services.dart';
import 'package:flutter_localizations/flutter_localizations.dart'; import 'package:flutter_localizations/flutter_localizations.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';
@ -23,17 +22,13 @@ void main() async {
WidgetsFlutterBinding.ensureInitialized(); WidgetsFlutterBinding.ensureInitialized();
///firebase crashlytics initalize ///firebase crashlytics initalize
// await MainInitialize.initFirebase(); //await MainInitialize.initFirebase();
MainInitialize.initTheme(); MainInitialize.initTheme();
//MainInitialize.initWechat(); MainInitialize.initWechat();
MainInitialize.initWebSocket(); MainInitialize.initWebSocket();
await MainInitialize.initJPush(); await MainInitialize.initJPush();
//
SystemChrome.setPreferredOrientations([DeviceOrientation.portraitUp])
.then((_) {
runApp(MyApp());
});
runApp(MyApp());
} }
class MyApp extends StatefulWidget { class MyApp extends StatefulWidget {
@ -78,6 +73,7 @@ class _MyAppState extends State<MyApp> {
], ],
supportedLocales: [const Locale('zh')], supportedLocales: [const Locale('zh')],
locale: Locale('zh'), locale: Locale('zh'),
//builder: BotToastInit(),
builder: (context, child) { builder: (context, child) {
return MediaQuery( return MediaQuery(
// //

@ -0,0 +1,40 @@
import 'package:aku_community/model/common/img_model.dart';
import 'package:flustars/flustars.dart';
class SurroundingEnterprisesModel {
int? id;
String? name;
String? content;
String? releaseDate;
List<ImgModel>? imgList;
DateTime? get getReleaseDate => DateUtil.getDateTime(releaseDate!);
SurroundingEnterprisesModel(
{this.id, this.name, this.content, this.releaseDate, this.imgList});
SurroundingEnterprisesModel.fromJson(Map<String, dynamic> json) {
id = json['id'];
name = json['name'];
content = json['content'];
releaseDate = json['releaseDate'];
if (json['imgList'] != null) {
imgList = [];
json['imgList'].forEach((v) {
imgList!.add(new ImgModel.fromJson(v));
});
}
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['id'] = this.id;
data['name'] = this.name;
data['content'] = this.content;
data['releaseDate'] = this.releaseDate;
if (this.imgList != null) {
data['imgList'] = this.imgList!.map((v) => v.toJson()).toList();
}
return data;
}
}

@ -0,0 +1,77 @@
import 'package:aku_community/models/geographic_information/geographic_information_model.dart';
import 'package:aku_community/models/house_introduce/house_introduce_model.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/base/base_style.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/community_introduce/community_introduce_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 GeographicInformationPage extends StatefulWidget {
GeographicInformationPage({Key? key,})
: super(key: key);
@override
_GeographicInformationPageState createState() => _GeographicInformationPageState();
}
class _GeographicInformationPageState extends State<GeographicInformationPage> {
GeographicInformationModel _model = GeographicInformationModel.init();
bool _onload = false;
@override
Widget build(BuildContext context) {
return BeeScaffold(
bodyColor: Colors.white,
title: '地理信息',
body:EasyRefresh(
firstRefresh: true,
header: MaterialHeader(),
onRefresh: () async {
BaseModel baseModel =
await NetUtil().get(API.manager.geographyInformation);
if (baseModel.status! && baseModel.data != null) {
_model = GeographicInformationModel.fromJson(baseModel.data);
}
_onload = false;
setState(() {});
},
child: _onload
? Container()
:
ListView(
children: [
SizedBox(
child: FadeInImage.assetNetwork(
placeholder: R.ASSETS_IMAGES_PLACEHOLDER_WEBP,
fit: BoxFit.cover,
image: API
.image(ImgModel.first(_model.imgUrls))),
width: double.infinity,
height: 424.w,
),
24.w.heightBox,
Padding(
padding: EdgeInsets.only(left: 32.w,right: 32.w,top: 40.w),
child: Text(
_model.content ?? '',
style: TextStyle(
fontSize: 26.sp,
color: (ktextSubColor),
fontWeight: FontWeight.bold),
)),
],
),
));
}
}

@ -1,7 +1,7 @@
import 'package:aku_community/models/house_introduce/house_introduce_model.dart'; import 'package:aku_community/models/house_introduce/house_introduce_model.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.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';
@ -9,9 +9,7 @@ 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/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/utils/network/base_model.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 HouseDetailPage extends StatefulWidget { class HouseDetailPage extends StatefulWidget {

@ -1,6 +1,5 @@
import 'package:aku_community/models/house_introduce/house_introduce_model.dart'; import 'package:aku_community/models/house_introduce/house_introduce_model.dart';
import 'package:aku_community/utils/hive_store.dart'; import 'package:aku_community/utils/hive_store.dart';
import 'package:aku_community/utils/websocket/tips_dialog.dart';
import 'package:flutter/cupertino.dart'; import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';

@ -0,0 +1,153 @@
import 'package:aku_community/models/house_introduce/house_introduce_model.dart';
import 'package:aku_community/models/surrounding_enterprises/surrounding_enterprises_model.dart';
import 'package:aku_community/pages/surrounding_enterprises/surrounding_enterprises_detail_page.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_easyrefresh/easy_refresh.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/app_theme.dart';
import 'package:aku_community/model/common/img_model.dart';
import 'package:aku_community/pages/things_page/widget/bee_list_view.dart';
import 'package:aku_community/utils/headers.dart';
import 'package:aku_community/widget/bee_scaffold.dart';
class SurroundingEnterprisesPage extends StatefulWidget {
SurroundingEnterprisesPage({Key? key}) : super(key: key);
@override
_SurroundingEnterprisesPageState createState() => _SurroundingEnterprisesPageState();
}
class _SurroundingEnterprisesPageState extends State<SurroundingEnterprisesPage> {
EasyRefreshController _refreshController = EasyRefreshController();
int _page = 1;
int _size = 10;
@override
void initState() {
super.initState();
// Future.delayed(Duration(milliseconds: 0), () async {
// var agreement = await HiveStore.appBox?.get('IndustryCommitteePage') ?? false;
// if (!agreement) {
// await TipsDialog.tipsDialog();
// HiveStore.appBox!.put('IndustryCommitteePage',true);
// }
// });
}
Widget _buildCard(SurroundingEnterprisesModel model) {
return GestureDetector(
onTap: (){
Get.to(SurroundingEnterprisesDetailPage(surroundingEnterprisesModel: model,));
},
child: Container(
padding: EdgeInsets.all(20.w),
color: Colors.white,
height: 250.w,
child: Row(
// .padding(EdgeInsets.all(20.w)).white.withRounded(value: 8.w).make()
crossAxisAlignment: CrossAxisAlignment.start,
children: [
ClipRRect(
borderRadius: BorderRadius.circular(4.w),
child: FadeInImage.assetNetwork(
placeholder: R.ASSETS_IMAGES_PLACEHOLDER_WEBP,
image: API.image(ImgModel.first(model.imgList)),
height: 200.w,
width: 240.w,
fit: BoxFit.fill,
),
),
24.wb,
Column(
crossAxisAlignment: CrossAxisAlignment.start,
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Container(
width: 440.w,
child: Text(
'${model.name}',
style: TextStyle(
fontSize: 30.sp,
fontWeight: FontWeight.bold,
color: ktextPrimary
),
maxLines: 4,
overflow: TextOverflow.ellipsis,
),
),
20.hb,
Container(
width: 440.w,
child: Text(
'${model.content}',
style: TextStyle(
fontSize: 24.sp,
color: ktextPrimary
),
maxLines: 2,
overflow: TextOverflow.ellipsis,
),
),
Spacer(),
Row(
children: [
'南宁人才公寓'
.text
.size(20.sp)
.color(ktextThirdColor)
.make(),
Spacer(),
'发布于:${model.getReleaseDate}'
.text
.size(20.sp)
.color(ktextThirdColor)
.make(),
],
)
],
),
],
),
),
);
}
Widget build(BuildContext context) {
return BeeScaffold(
title: '周边企业',
systemStyle: SystemStyle.genStyle(bottom: Color(0xFF2A2A2A)),
body: BeeListView<SurroundingEnterprisesModel>(
path: API.manager.surroundingEnterprises,
extraParams: {'pageNum': _page, 'size': _size},
convert: (model) {
return model.tableList!
.map((e) => SurroundingEnterprisesModel.fromJson(e))
.toList();
},
controller: _refreshController,
builder: (items) {
return ListView.separated(
padding: EdgeInsets.symmetric(vertical: 20.w),
itemBuilder: (context, index) {
return _buildCard(items[index]);
},
separatorBuilder: (context, index) => 20.hb,
itemCount: items.length,
);
},
),
);
}
}

@ -0,0 +1,83 @@
import 'package:aku_community/models/house_introduce/house_introduce_model.dart';
import 'package:aku_community/models/surrounding_enterprises/surrounding_enterprises_model.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/base/base_style.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/community_introduce/community_introduce_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 SurroundingEnterprisesDetailPage extends StatefulWidget {
final SurroundingEnterprisesModel surroundingEnterprisesModel;
SurroundingEnterprisesDetailPage({Key? key, required this.surroundingEnterprisesModel})
: super(key: key);
@override
_SurroundingEnterprisesDetailPageState createState() => _SurroundingEnterprisesDetailPageState();
}
class _SurroundingEnterprisesDetailPageState extends State<SurroundingEnterprisesDetailPage> {
@override
Widget build(BuildContext context) {
return BeeScaffold(
bodyColor: Colors.white,
title: '住房详情',
body: ListView(
children: [
SizedBox(
child: FadeInImage.assetNetwork(
placeholder: R.ASSETS_IMAGES_PLACEHOLDER_WEBP,
fit: BoxFit.cover,
image: API
.image(ImgModel.first(widget.surroundingEnterprisesModel.imgList))),
width: double.infinity,
height: 424.w,
),
// 24.w.heightBox,
// Padding(
// padding: EdgeInsets.symmetric(horizontal: 32.w),
// child:
// // widget.houseIntroduceModel.content!.text
// // .size(28.sp)
// // .color(ktextPrimary)
// // .make(),
// Text(
// widget.surroundingEnterprisesModel.name ?? '',
// style: TextStyle(
// fontSize: 30.sp,
// color: (ktextPrimary),
// fontWeight: FontWeight.bold),
// )),
// Padding(
// padding: EdgeInsets.only(left: 32.w,right: 32.w,top: 16.w),
// child: Text(
// '发布于:${widget.surroundingEnterprisesModel.getReleaseDate}' ,
// style: TextStyle(
// fontSize: 20.sp,
// color: (ktextThirdColor),
// fontWeight: FontWeight.bold),
// )),
Padding(
padding: EdgeInsets.only(left: 32.w,right: 32.w,top: 32.w),
child: Text(
widget.surroundingEnterprisesModel.content ?? '',
style: TextStyle(
fontSize: 26.sp,
color: (ktextSubColor),
fontWeight: FontWeight.bold),
)),
],
),
);
}
}

@ -1,20 +1,17 @@
import 'package:aku_community/models/house_introduce/house_introduce_model.dart'; import 'package:aku_community/models/house_introduce/house_introduce_model.dart';
import 'package:aku_community/pages/surrounding_enterprises/surrding_enterprises_detail_page.dart'; import 'package:aku_community/models/surrounding_enterprises/surrounding_enterprises_model.dart';
import 'package:aku_community/utils/hive_store.dart'; import 'package:aku_community/pages/surrounding_enterprises/surrounding_enterprises_detail_page.dart';
import 'package:aku_community/utils/websocket/tips_dialog.dart';
import 'package:flutter/cupertino.dart'; import 'package:flutter/cupertino.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: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/base/base_style.dart';
import 'package:aku_community/constants/api.dart'; import 'package:aku_community/constants/api.dart';
import 'package:aku_community/constants/app_theme.dart'; import 'package:aku_community/constants/app_theme.dart';
import 'package:aku_community/model/common/img_model.dart'; import 'package:aku_community/model/common/img_model.dart';
import 'package:aku_community/model/user/committee_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:aku_community/utils/headers.dart'; import 'package:aku_community/utils/headers.dart';
import 'package:aku_community/widget/bee_scaffold.dart'; import 'package:aku_community/widget/bee_scaffold.dart';
@ -31,6 +28,8 @@ class SurroundingEnterprisesPage extends StatefulWidget {
class _SurroundingEnterprisesPageState extends State<SurroundingEnterprisesPage> { class _SurroundingEnterprisesPageState extends State<SurroundingEnterprisesPage> {
EasyRefreshController _refreshController = EasyRefreshController(); EasyRefreshController _refreshController = EasyRefreshController();
int _page = 1;
int _size = 10;
@override @override
void initState() { void initState() {
super.initState(); super.initState();
@ -45,10 +44,10 @@ class _SurroundingEnterprisesPageState extends State<SurroundingEnterprisesPage>
} }
Widget _buildCard(HouseIntroduceModel model) { Widget _buildCard(SurroundingEnterprisesModel model) {
return GestureDetector( return GestureDetector(
onTap: (){ onTap: (){
Get.to(SurroundingEnterprisesDetailPage(houseIntroduceModel: model,)); Get.to(SurroundingEnterprisesDetailPage(surroundingEnterprisesModel: model,));
}, },
child: Container( child: Container(
padding: EdgeInsets.all(20.w), padding: EdgeInsets.all(20.w),
@ -63,7 +62,7 @@ class _SurroundingEnterprisesPageState extends State<SurroundingEnterprisesPage>
borderRadius: BorderRadius.circular(4.w), borderRadius: BorderRadius.circular(4.w),
child: FadeInImage.assetNetwork( child: FadeInImage.assetNetwork(
placeholder: R.ASSETS_IMAGES_PLACEHOLDER_WEBP, placeholder: R.ASSETS_IMAGES_PLACEHOLDER_WEBP,
image: API.image(ImgModel.first(model.imgUrls)), image: API.image(ImgModel.first(model.imgList)),
height: 200.w, height: 200.w,
width: 240.w, width: 240.w,
fit: BoxFit.fill, fit: BoxFit.fill,
@ -87,13 +86,36 @@ class _SurroundingEnterprisesPageState extends State<SurroundingEnterprisesPage>
overflow: TextOverflow.ellipsis, overflow: TextOverflow.ellipsis,
), ),
), ),
20.hb,
Container(
width: 440.w,
child: Text(
'${model.content}',
style: TextStyle(
fontSize: 24.sp,
color: ktextPrimary
),
maxLines: 2,
overflow: TextOverflow.ellipsis,
),
),
Spacer(),
Row(
children: [
'南宁人才公寓'
.text
.size(20.sp)
.color(ktextThirdColor)
.make(),
Spacer(), Spacer(),
'发布于:${model.getReleaseDate}' '发布于:${model.getReleaseDate}'
.text .text
.size(20.sp) .size(20.sp)
.color(ktextThirdColor) .color(ktextThirdColor)
.make(), .make(),
],
)
], ],
), ),
], ],
@ -104,13 +126,14 @@ class _SurroundingEnterprisesPageState extends State<SurroundingEnterprisesPage>
Widget build(BuildContext context) { Widget build(BuildContext context) {
return BeeScaffold( return BeeScaffold(
title: '住房介绍', title: '周边企业',
systemStyle: SystemStyle.genStyle(bottom: Color(0xFF2A2A2A)), systemStyle: SystemStyle.genStyle(bottom: Color(0xFF2A2A2A)),
body: BeeListView<HouseIntroduceModel>( body: BeeListView<SurroundingEnterprisesModel>(
path: API.manager.houseType, path: API.manager.surroundingEnterprises,
extraParams: {'pageNum': _page, 'size': _size},
convert: (model) { convert: (model) {
return model.tableList! return model.tableList!
.map((e) => HouseIntroduceModel.fromJson(e)) .map((e) => SurroundingEnterprisesModel.fromJson(e))
.toList(); .toList();
}, },
controller: _refreshController, controller: _refreshController,

@ -6,9 +6,11 @@ import 'package:flutter/material.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:aku_community/extensions/num_ext.dart';
import 'package:aku_community/pages/tab_navigator.dart'; import 'package:aku_community/pages/tab_navigator.dart';
import 'package:aku_community/utils/developer_util.dart'; import 'package:aku_community/utils/developer_util.dart';
import 'package:aku_community/utils/headers.dart'; import 'package:aku_community/utils/headers.dart';
import 'AlarmModel.dart'; import 'AlarmModel.dart';
class FireDialog { class FireDialog {
@ -21,12 +23,11 @@ class FireDialog {
title: getImage(alarmModel), title: getImage(alarmModel),
content: Column( content: Column(
children: [ children: [
Text(getTitle(alarmModel)), Text(getTitle(alarmModel)),
10.hb, 10.hb,
Text(getContent(alarmModel)), Text(getContent(alarmModel)),
], ],
), ),
actions: [ actions: [
@ -46,7 +47,6 @@ class FireDialog {
barrierDismissible: false, barrierDismissible: false,
); );
} }
static String getTitle(AlarmModel alarmModel){ static String getTitle(AlarmModel alarmModel){
switch(alarmModel.type){ switch(alarmModel.type){
case 1: case 1:
@ -78,7 +78,6 @@ class FireDialog {
} }
} }
static Widget getImage(AlarmModel alarmModel){ static Widget getImage(AlarmModel alarmModel){
switch(alarmModel.type){ switch(alarmModel.type){
case 1: case 1:

Loading…
Cancel
Save