add home assets

hmxc
小赖 5 years ago
parent a4e0651233
commit 5ba390d09b

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

@ -37,13 +37,14 @@ class _ApplicationPageState extends State<ApplicationPage>
int _nowSelectedIndex = 0; int _nowSelectedIndex = 0;
List<AppApplication> _recommandApplications = [ List<AppApplication> _recommandApplications = [
AppApplication('活动管理', '', ActivityManagerPage()), AppApplication(
AppApplication('访客管理', '', Scaffold()), '活动管理', R.ASSETS_HOME_IC_ACTIVITY_PNG, ActivityManagerPage()),
AppApplication('访客管理', R.ASSETS_HOME_IC_VISITORS_PNG, Scaffold()),
AppApplication('便民电话', '', Scaffold()), AppApplication('便民电话', '', Scaffold()),
AppApplication('借还管理', '', Scaffold()), AppApplication('借还管理', R.ASSETS_HOME_IC_BORROW_PNG, Scaffold()),
AppApplication('工单管理', '', Scaffold()), AppApplication('工单管理', '', Scaffold()),
AppApplication('语音管家', '', Scaffold()), AppApplication('语音管家', '', Scaffold()),
AppApplication('一键报警', '', Scaffold()), AppApplication('一键报警', R.ASSETS_HOME_IC_POLICE_PNG, Scaffold()),
AppApplication('问卷调查', '', Scaffold()), AppApplication('问卷调查', '', Scaffold()),
]; ];
@ -245,10 +246,10 @@ class _ApplicationPageState extends State<ApplicationPage>
child: Column( child: Column(
mainAxisAlignment: MainAxisAlignment.center, mainAxisAlignment: MainAxisAlignment.center,
children: [ children: [
SizedBox( Image.asset(
height: 75.w, application.assetPath,
width: 75.w, height: 72.w,
child: Placeholder(), width: 72.w,
), ),
AkuBox.h(8), AkuBox.h(8),
Text(application.name), Text(application.name),

@ -24,7 +24,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 assetPath, String text, Widget page) {
return Expanded( return Expanded(
child: AkuButton( child: AkuButton(
radius: 8.w, radius: 8.w,
@ -35,9 +35,10 @@ class _HomePageState extends State<HomePage> {
child: Column( child: Column(
mainAxisAlignment: MainAxisAlignment.center, mainAxisAlignment: MainAxisAlignment.center,
children: [ children: [
Icon( Image.asset(
iconData, assetPath,
size: 75.w, height: 75.w,
width: 75.w,
), ),
SizedBox(height: 8.w), SizedBox(height: 8.w),
Text( Text(
@ -274,11 +275,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()),
], ],
), ),
), ),

Loading…
Cancel
Save