切图替换

hmxc
张萌 4 years ago
parent b791b9aa7a
commit 614717a984

Binary file not shown.

After

Width:  |  Height:  |  Size: 658 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.8 KiB

@ -1,4 +1,4 @@
import 'package:aku_community_manager/const/resource.dart';
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_back_button.dart';

@ -1,4 +1,4 @@
import 'package:aku_community_manager/const/resource.dart';
import 'package:aku_community_manager/provider/user_provider.dart';
import 'package:aku_community_manager/style/app_style.dart';
import 'package:aku_community_manager/tools/screen_tool.dart';
@ -226,7 +226,9 @@ class _HomePageState extends State<HomePage> {
minWidth: 78.w,
//
height: double.infinity,
onPressed: () {},
onPressed: () {
Get.to(Message());
},
child: Column(children: [
Image.asset(
R.ASSETS_HOME_IC_NEWS_PNG,

@ -1,3 +1,4 @@
import 'package:aku_community_manager/const/resource.dart';
import 'package:aku_community_manager/style/app_style.dart';
import 'package:aku_community_manager/ui/home/messages/system_message.dart';
import 'package:aku_community_manager/ui/widgets/common/aku_scaffold.dart';
@ -17,17 +18,17 @@ class Message extends StatefulWidget {
class _MessageState extends State<Message> {
Widget _messageTypeImage(String type){
Icon path;
String path;
Color ca;
Color cb;
switch (type) {
case'系统消息' :
path=Icon(Icons.system_update,size: 66.w,) ;
path=R.ASSETS_MESSAGE_IC_TONGZHI_PNG;
ca=Color(0xFFFFDE9A);
cb=Color(0xFFFFB00A);
break;
case '评论消息':
path=Icon(Icons.message,size: 66.w,) ;
path=R.ASSETS_MESSAGE_IC_PINGLUN_PNG;
ca=Color(0xFF81D1FF);
cb=Color(0xFF1792FF);
break;
@ -46,7 +47,7 @@ class _MessageState extends State<Message> {
cb,
]),
),
child: path,
child: Image.asset(path,width: 70.w,height: 70.w,),
);
}
Widget _messageListTile(String date, Widget messageImage, String title,String text,int number,Widget page) {
@ -61,6 +62,7 @@ class _MessageState extends State<Message> {
top: 24.w,
left: 32.w,
bottom: 24.w,
right: 31.w,
),
child: Row(
mainAxisAlignment: MainAxisAlignment.center,

@ -3,6 +3,7 @@ import 'package:aku_community_manager/ui/widgets/common/aku_scaffold.dart';
import 'package:aku_ui/aku_ui.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:aku_community_manager/const/resource.dart';
class SystemMessage extends StatefulWidget {
SystemMessage({Key key}) : super(key: key);
@ -58,7 +59,7 @@ class _SystemMessageState extends State<SystemMessage> {
SizedBox(height:24.w),
Row(
children: [
Icon(Icons.contact_page, size: 40.w),
Image.asset(R.ASSETS_MESSAGE_IC_PEOPLE_PNG,width: 40.w,height: 40.w,),
SizedBox(
width: 4.w,
),
@ -78,10 +79,7 @@ class _SystemMessageState extends State<SystemMessage> {
SizedBox(height:16.w),
Row(
children: [
Icon(
Icons.phone,
size: 40.w,
),
Image.asset(R.ASSETS_MESSAGE_IC_PHONE_PNG,width: 40.w,height: 40.w,),
SizedBox(
width: 4.w,
),
@ -97,10 +95,7 @@ class _SystemMessageState extends State<SystemMessage> {
SizedBox(height:16.w),
Row(
children: [
Icon(
Icons.airplanemode_active,
size: 40.w,
),
Image.asset(R.ASSETS_MESSAGE_IC_AREA_PNG,width: 40.w,height: 40.w,),
SizedBox(
width: 4.w,
),

@ -1,4 +1,4 @@
import 'package:aku_community_manager/const/resource.dart';
import 'package:aku_community_manager/provider/user_provider.dart';
import 'package:aku_community_manager/style/app_style.dart';
import 'package:aku_community_manager/ui/login/login_page.dart';

@ -69,6 +69,7 @@ flutter:
- assets/
- assets/home/
- assets/user/
- assets/message/
# To add assets to your application, add an assets section, like this:
# assets:
# - images/a_dot_burr.jpeg

Loading…
Cancel
Save