|
|
@ -25,7 +25,7 @@ class HomePage extends StatefulWidget {
|
|
|
|
|
|
|
|
|
|
|
|
class _HomePageState extends State<HomePage> {
|
|
|
|
class _HomePageState extends State<HomePage> {
|
|
|
|
//自定义bar的菜单按钮
|
|
|
|
//自定义bar的菜单按钮
|
|
|
|
Widget _menuButton(IconData iconData, String text, Widget page) {
|
|
|
|
Widget _menuButton(String path, String text, Widget page) {
|
|
|
|
return Expanded(
|
|
|
|
return Expanded(
|
|
|
|
child: AkuButton(
|
|
|
|
child: AkuButton(
|
|
|
|
radius: 8.w,
|
|
|
|
radius: 8.w,
|
|
|
@ -36,9 +36,10 @@ class _HomePageState extends State<HomePage> {
|
|
|
|
child: Column(
|
|
|
|
child: Column(
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
Icon(
|
|
|
|
Image.asset(
|
|
|
|
iconData,
|
|
|
|
path,
|
|
|
|
size: 75.w,
|
|
|
|
width: 75.w,
|
|
|
|
|
|
|
|
height: 75.w,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
SizedBox(height: 8.w),
|
|
|
|
SizedBox(height: 8.w),
|
|
|
|
Text(
|
|
|
|
Text(
|
|
|
@ -275,11 +276,14 @@ class _HomePageState extends State<HomePage> {
|
|
|
|
child: Row(
|
|
|
|
child: Row(
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceAround,
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceAround,
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
_menuButton(Icons.wysiwyg, '一键报警', HomePage()),
|
|
|
|
|
|
|
|
_menuButton(Icons.work, '访客管理', HomePage()),
|
|
|
|
|
|
|
|
_menuButton(Icons.accessibility, '报事报修', HomePage()),
|
|
|
|
|
|
|
|
_menuButton(
|
|
|
|
_menuButton(
|
|
|
|
Icons.account_balance, '全部应用', ApplicationPage()),
|
|
|
|
R.ASSETS_HOME_IC_POLICE_PNG, '一键报警', HomePage()),
|
|
|
|
|
|
|
|
_menuButton(
|
|
|
|
|
|
|
|
R.ASSETS_HOME_IC_VISITORS_PNG, '访客管理', HomePage()),
|
|
|
|
|
|
|
|
_menuButton(
|
|
|
|
|
|
|
|
R.ASSETS_HOME_IC_SERVICE_PNG, '报事报修', HomePage()),
|
|
|
|
|
|
|
|
_menuButton(
|
|
|
|
|
|
|
|
R.ASSETS_HOME_IC_ALL_PNG, '全部应用', ApplicationPage()),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|