add facility page

hmxc
小赖 4 years ago
parent 9aaba0905e
commit a4a423eb38

@ -0,0 +1,4 @@
analyzer:
errors:
unused_import: error

@ -1,4 +1,5 @@
import 'package:akuCommunity/pages/goods_manage_page/select_borrow_return_page.dart';
import 'package:akuCommunity/ui/community/facility/pick_facility_page.dart';
import 'package:flutter/material.dart';
import 'package:akuCommunity/const/resource.dart';
@ -72,6 +73,7 @@ List<AO> appObjects = [
// AO('装修管理', R.ASSETS_APPLICATIONS_DECORATION_PNG, FitupManagePage()),
AO('借还管理', R.ASSETS_APPLICATIONS_BORROW_PNG, () => SelectBorrowReturnPage()),
AO('一键报警', R.ASSETS_APPLICATIONS_POLICE_PNG, () => AlarmPage()),
AO('设施预约', R.ASSETS_ICONS_USER_ICON_SZ_PNG, () => PickFacilityPage()),
];
List<AO> userAppObjects = [
@ -120,6 +122,7 @@ List<String> _smartManagerApp = [
// '装修管理',
'借还管理',
'一键报警',
'设施预约',
];
///

@ -2,7 +2,6 @@ import 'package:akuCommunity/widget/picker/bee_date_picker.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:bot_toast/bot_toast.dart';
import 'package:flustars/flustars.dart';
import 'package:flutter_icons/flutter_icons.dart';
import 'package:get/get.dart';
@ -265,7 +264,7 @@ class _VisitorAccessPageState extends State<VisitorAccessPage> {
color: Color(0xffffc40c),
elevation: 0,
child: Text(
'生成通行证',
'分享',
style: TextStyle(
fontWeight: FontWeight.w600,
fontSize: 32.sp,

@ -0,0 +1,24 @@
import 'package:akuCommunity/widget/bee_scaffold.dart';
import 'package:flutter/material.dart';
class FacilityPage extends StatefulWidget {
FacilityPage({Key key}) : super(key: key);
@override
_FacilityPageState createState() => _FacilityPageState();
}
class _FacilityPageState extends State<FacilityPage> {
@override
Widget build(BuildContext context) {
return BeeScaffold(
title: '设施预约',
actions: [
IconButton(
icon: Icon(Icons.add_circle_outline_rounded, color: Colors.black87),
onPressed: () {},
),
],
);
}
}

@ -0,0 +1,18 @@
import 'package:akuCommunity/widget/bee_scaffold.dart';
import 'package:flutter/material.dart';
class PickFacilityPage extends StatefulWidget {
PickFacilityPage({Key key}) : super(key: key);
@override
_PickFacilityPageState createState() => _PickFacilityPageState();
}
class _PickFacilityPageState extends State<PickFacilityPage> {
@override
Widget build(BuildContext context) {
return BeeScaffold(
title: '选择设施',
);
}
}

@ -13,3 +13,28 @@ build() {
@Task()
clean() => defaultClean();
@Task()
void sort() {
Pub.run('import_sorter:main');
}
@Task()
void format() {
DartFmt.format(libDir);
}
@Task()
@Depends(sort, format)
void git() {
log(' commit to git');
run(
'git',
arguments: [
'commit',
'-a',
'-m',
'[auto task] sort & format',
],
);
}

Loading…
Cancel
Save