diff --git a/assets/home/ic_Patrol.png b/assets/home/ic_Patrol.png new file mode 100644 index 0000000..7af20d3 Binary files /dev/null and b/assets/home/ic_Patrol.png differ diff --git a/assets/home/ic_activity.png b/assets/home/ic_activity.png new file mode 100644 index 0000000..1bc8449 Binary files /dev/null and b/assets/home/ic_activity.png differ diff --git a/assets/home/ic_article.png b/assets/home/ic_article.png new file mode 100644 index 0000000..e8c8969 Binary files /dev/null and b/assets/home/ic_article.png differ diff --git a/assets/home/ic_borrow.png b/assets/home/ic_borrow.png new file mode 100644 index 0000000..7d5aa8f Binary files /dev/null and b/assets/home/ic_borrow.png differ diff --git a/assets/home/ic_decoration.png b/assets/home/ic_decoration.png new file mode 100644 index 0000000..0276af1 Binary files /dev/null and b/assets/home/ic_decoration.png differ diff --git a/assets/home/ic_greening.png b/assets/home/ic_greening.png new file mode 100644 index 0000000..c0a4482 Binary files /dev/null and b/assets/home/ic_greening.png differ diff --git a/lib/ui/home/application/applications_page.dart b/lib/ui/home/application/applications_page.dart index ce4f2bb..93e8eff 100644 --- a/lib/ui/home/application/applications_page.dart +++ b/lib/ui/home/application/applications_page.dart @@ -37,13 +37,14 @@ class _ApplicationPageState extends State int _nowSelectedIndex = 0; List _recommandApplications = [ - AppApplication('活动管理', '', ActivityManagerPage()), - AppApplication('访客管理', '', Scaffold()), + AppApplication( + '活动管理', R.ASSETS_HOME_IC_ACTIVITY_PNG, ActivityManagerPage()), + AppApplication('访客管理', R.ASSETS_HOME_IC_VISITORS_PNG, Scaffold()), AppApplication('便民电话', '', Scaffold()), - AppApplication('借还管理', '', Scaffold()), + AppApplication('借还管理', R.ASSETS_HOME_IC_BORROW_PNG, Scaffold()), AppApplication('工单管理', '', Scaffold()), AppApplication('语音管家', '', Scaffold()), - AppApplication('一键报警', '', Scaffold()), + AppApplication('一键报警', R.ASSETS_HOME_IC_POLICE_PNG, Scaffold()), AppApplication('问卷调查', '', Scaffold()), ]; @@ -245,10 +246,10 @@ class _ApplicationPageState extends State child: Column( mainAxisAlignment: MainAxisAlignment.center, children: [ - SizedBox( - height: 75.w, - width: 75.w, - child: Placeholder(), + Image.asset( + application.assetPath, + height: 72.w, + width: 72.w, ), AkuBox.h(8), Text(application.name), diff --git a/lib/ui/home/home_page.dart b/lib/ui/home/home_page.dart index 22709ba..eeeb48e 100644 --- a/lib/ui/home/home_page.dart +++ b/lib/ui/home/home_page.dart @@ -25,7 +25,7 @@ class HomePage extends StatefulWidget { class _HomePageState extends State { //自定义bar的菜单按钮 - Widget _menuButton(String path, String text, Widget page) { + Widget _menuButton(String assetPath, String text, Widget page) { return Expanded( child: AkuButton( radius: 8.w, @@ -37,9 +37,9 @@ class _HomePageState extends State { mainAxisAlignment: MainAxisAlignment.center, children: [ Image.asset( - path, - width: 75.w, + assetPath, height: 75.w, + width: 75.w, ), SizedBox(height: 8.w), Text(