小赖 4 years ago
commit cde0af7021

Binary file not shown.

After

Width:  |  Height:  |  Size: 860 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

@ -9,10 +9,10 @@ import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:aku_community_manager/const/resource.dart'; import 'package:aku_community_manager/const/resource.dart';
import 'package:get/get.dart'; import 'package:get/get.dart';
class AnouncementCard { class AnouncementCardModel {
String title; String title;
String date; String date;
AnouncementCard( AnouncementCardModel(
this.title, this.title,
this.date, this.date,
); );
@ -107,7 +107,7 @@ class _AllAnouncementState extends State<AllAnouncement> {
Widget _anouncementList( Widget _anouncementList(
String date, String date,
List<AnouncementCard> cards, List<AnouncementCardModel> cards,
) { ) {
return Column( return Column(
children: [ children: [
@ -136,18 +136,18 @@ class _AllAnouncementState extends State<AllAnouncement> {
padding: EdgeInsets.only(left: 32.w, right: 32.w), padding: EdgeInsets.only(left: 32.w, right: 32.w),
children: [ children: [
_anouncementList('2020-10-22', [ _anouncementList('2020-10-22', [
AnouncementCard( AnouncementCardModel(
'关于国庆放假的通知和安排', '关于国庆放假的通知和安排',
'2020-10-22 10:00', '2020-10-22 10:00',
), ),
AnouncementCard( AnouncementCardModel(
'关于绿化组人员调动通知', '关于绿化组人员调动通知',
'2020-10-22 11:00', '2020-10-22 11:00',
), ),
]), ]),
_anouncementList('2020-10-20', [ _anouncementList('2020-10-20', [
AnouncementCard('关于中秋放假通知与工作安排', '2020-10-22 10:00'), AnouncementCardModel('关于中秋放假通知与工作安排', '2020-10-22 10:00'),
AnouncementCard('疫情期间对大家的表扬和鼓励', '2020-10-22 11:00'), AnouncementCardModel('疫情期间对大家的表扬和鼓励', '2020-10-22 11:00'),
]), ]),
], ],
), ),

@ -1,4 +1,6 @@
import 'package:aku_community_manager/ui/manage_pages/green_manage_page.dart';
import 'package:aku_community_manager/ui/sub_pages/activity_manager/activity_manager_page.dart'; import 'package:aku_community_manager/ui/sub_pages/activity_manager/activity_manager_page.dart';
import 'package:aku_community_manager/ui/sub_pages/visitor_manager/visitor_manager_page.dart';
import 'package:aku_ui/common_widgets/aku_material_button.dart'; import 'package:aku_ui/common_widgets/aku_material_button.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:get/get.dart'; import 'package:get/get.dart';
@ -39,7 +41,7 @@ class _ApplicationPageState extends State<ApplicationPage>
List<AppApplication> _recommandApplications = [ List<AppApplication> _recommandApplications = [
AppApplication( AppApplication(
'活动管理', R.ASSETS_HOME_IC_ACTIVITY_PNG, ActivityManagerPage()), '活动管理', R.ASSETS_HOME_IC_ACTIVITY_PNG, ActivityManagerPage()),
AppApplication('访客管理', R.ASSETS_HOME_IC_VISITORS_PNG, Scaffold()), AppApplication('访客管理', R.ASSETS_HOME_IC_VISITORS_PNG, VisitorManagerPage()),
AppApplication('便民电话', '', Scaffold()), AppApplication('便民电话', '', Scaffold()),
AppApplication('借还管理', R.ASSETS_HOME_IC_BORROW_PNG, Scaffold()), AppApplication('借还管理', R.ASSETS_HOME_IC_BORROW_PNG, Scaffold()),
AppApplication('工单管理', '', Scaffold()), AppApplication('工单管理', '', Scaffold()),
@ -47,7 +49,9 @@ class _ApplicationPageState extends State<ApplicationPage>
AppApplication('一键报警', R.ASSETS_HOME_IC_POLICE_PNG, Scaffold()), AppApplication('一键报警', R.ASSETS_HOME_IC_POLICE_PNG, Scaffold()),
AppApplication('问卷调查', '', Scaffold()), AppApplication('问卷调查', '', Scaffold()),
]; ];
List<AppApplication> _wisdomApplications=[
AppApplication('绿化管理', R.ASSETS_HOME_IC_GREENING_PNG, GreenManagePage()),
];
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
final appProvider = Provider.of<AppProvider>(context); final appProvider = Provider.of<AppProvider>(context);
@ -198,7 +202,17 @@ class _ApplicationPageState extends State<ApplicationPage>
}, },
itemCount: _recommandApplications.length, itemCount: _recommandApplications.length,
), ),
Text('23'), GridView.builder(
gridDelegate: SliverGridDelegateWithFixedCrossAxisCount(
crossAxisCount: 3,
),
physics: NeverScrollableScrollPhysics(),
itemBuilder: (context, index) {
final application = _wisdomApplications[index];
return _buildBottomAppCard(application);
},
itemCount: _wisdomApplications.length,
),
], ],
), ),
), ),

@ -0,0 +1,148 @@
import 'package:aku_community_manager/style/app_style.dart';
import 'package:aku_community_manager/tools/widget_tool.dart';
import 'package:aku_community_manager/ui/widgets/common/aku_scaffold.dart';
import 'package:aku_ui/common_widgets/aku_common_widgets.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:aku_community_manager/const/resource.dart';
class GreenManageCardModel {
String title;
String task;
String timestart;
String timeend;
String name;
GreenManageCardModel(this.title,this.task,this.timestart,this.timeend,this.name);
}
class GreenManagePage extends StatefulWidget {
GreenManagePage({Key key}) : super(key: key);
@override
_GreenManagePageState createState() => _GreenManagePageState();
}
class _GreenManagePageState extends State<GreenManagePage> {
List<GreenManageCardModel> _cards=[
GreenManageCardModel('中部广场周围绿化调整', '除杂草、松土、培土', '2020-10-08','2020-10-18', '杨雄会', ),
GreenManageCardModel('东区周围绿化调整', '修剪、造型', '2020-10-08', '2020-10-18', '刘小青'),
GreenManageCardModel('西区周围绿化调整', '修剪、造型', '2020-10-10', '2020-10-20', '张空间'),
GreenManageCardModel('北区周围绿化调整', '修剪造型', '2020-10-15', '2020-10-25', '凯尔希'),
];
@override
Widget build(BuildContext context) {
return AkuScaffold(
title: '绿化管理',
body: ListView(
padding: EdgeInsets.only(left: 32.w, right: 32.w),
children: _cards.map((e) => _greenManageCard(e.title, e.task, e.timestart, e.timeend, e.name),).toList(),
),
);
}
///绿
Widget _greenManageCard(String title, String task, String timestart,
String timeend, String name) {
return Column(
children: [
AkuBox.h(16),
//
AkuButton(
onPressed: () {},
child: Container(
height: 302.w,
width: 686.w,
padding: EdgeInsets.only(
left: 24.w,
right: 24.w,
bottom: 40.w,
),
color: Color(0xFFFFFFFF),
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Container(
height: 93.w,
alignment: Alignment.centerLeft,
child: Text(
title,
style: TextStyle(
color: AppStyle.primaryTextColor,
fontSize: 32.w,
fontWeight: FontWeight.bold),
),
),
Divider(
height: 1.w,
),
AkuBox.h(24),
Row(
children: [
Image.asset(
R.ASSETS_MANAGE_IC_RENWU_PNG,
width: 40.w,
height: 40.w,
),
AkuBox.w(4),
Text('任务概要',
style: TextStyle(
color: AppStyle.primaryTextColor,
fontSize: 28.sp,
)),
Spacer(),
Text(
task,
style: AppStyle().primaryStyle,
),
],
),
Spacer(),
Row(
children: [
Image.asset(
R.ASSETS_MANAGE_IC_TIME_PNG,
width: 40.w,
height: 40.w,
),
AkuBox.w(4),
Text('时间期限',
style: TextStyle(
color: AppStyle.primaryTextColor, fontSize: 28.sp)),
Spacer(),
Text(
'$timestart$timeend',
style: AppStyle().primaryStyle,
),
],
),
Spacer(),
Row(
children: [
Image.asset(
R.ASSETS_MESSAGE_IC_PEOPLE_PNG,
width: 40.w,
height: 40.w,
),
AkuBox.w(4),
Text('负责人员',
style: TextStyle(
color: AppStyle.primaryTextColor,
fontSize: 28.sp,
)),
Spacer(),
Text(
name,
style: AppStyle().primaryStyle,
),
],
),
],
),
),
),
],
);
}
}

@ -74,6 +74,7 @@ flutter:
- assets/home/ - assets/home/
- assets/user/ - assets/user/
- assets/message/ - assets/message/
- assets/manage/
- assets/static_temp/ - assets/static_temp/
- assets/static_fix/ - assets/static_fix/

Loading…
Cancel
Save