图标更改,首页公告indicator更改

hmxc
张萌 4 years ago
parent 0e6ceadeed
commit 03657efe19

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

@ -41,6 +41,7 @@ class AllAnouncementState extends State<AllAnouncement> {
child: Row(
children: [
Container(
alignment: Alignment.center,
width: 104.w,
height: 104.w,
decoration: BoxDecoration(
@ -52,7 +53,7 @@ class AllAnouncementState extends State<AllAnouncement> {
Color(0xFF7EB4FF),
Color(0xFF3F8FFE),
])),
child: Image.asset(R.ASSETS_MANAGE_IC_ANNOUNCE_PNG),
child: Image.asset(R.ASSETS_MANAGE_IC_ANNOUNCE_PNG,width: 74.w,height: 60.w,),
),
SizedBox(
width: 24.w,

@ -129,7 +129,7 @@ class _HomePageState extends State<HomePage> {
));
}
int _currentIndicator = 0;
int _currentIndicator = 0;
@override
Widget build(BuildContext context) {
final userProvider = Provider.of<UserProvider>(context);
@ -395,48 +395,52 @@ class _HomePageState extends State<HomePage> {
//
Container(
color: Color(0xFFFFFFFF),
//
width: double.infinity,
height: 200.w,
child: Column(
children: [
CarouselSlider(
items: _anouncementProvider.anouncementCardModels
.map((e) => AllAnouncementState.anounceCard(e))
.toList(),
options: CarouselOptions(
viewportFraction: 1.0,
aspectRatio: 686 / 172,
autoPlay: true,
onPageChanged: (index, _) {
setState(() {
_currentIndicator = index;
});
},
height: 172.w,
child: Stack(children: [
CarouselSlider(
items: _anouncementProvider.anouncementCardModels
.map((e) => AllAnouncementState.anounceCard(e))
.toList(),
options: CarouselOptions(
viewportFraction: 1.0,
aspectRatio: 686 / 172,
autoPlay: true,
onPageChanged: (index, _) {
setState(() {
_currentIndicator = index;
});
},
),
),
),
Row(
mainAxisAlignment: MainAxisAlignment.center,
children:
_anouncementProvider.anouncementCardModels.map((e) {
int index =
_anouncementProvider.anouncementCardModels.indexOf(e);
return Container(
width: 8.w,
height: 8.w,
margin: EdgeInsets.symmetric(
vertical: 10.w, horizontal: 2.w),
decoration: BoxDecoration(
shape: BoxShape.circle,
color: _currentIndicator == index
? Color.fromRGBO(0, 0, 0, 0.9)
: Color.fromRGBO(0, 0, 0, 0.4),
),
);
}).toList(),
),
],
),
Positioned(
top: 144.w,
left: 0,
bottom: 16.w,
right: 0,
child: Row(
mainAxisSize: MainAxisSize.max,
mainAxisAlignment: MainAxisAlignment.center,
children:
_anouncementProvider.anouncementCardModels.map((e) {
int index = _anouncementProvider.anouncementCardModels
.indexOf(e);
return Container(
width: 12.w,
height: 12.w,
margin: EdgeInsets.symmetric(
horizontal: 12.w),
decoration: BoxDecoration(
shape: BoxShape.circle,
color: _currentIndicator == index
? Color(0xFFFFC40C)
: Color(0xFFE8E8E8),
),
);
}).toList(),
),
),
]),
),
SizedBox(height: 16.w),
//

@ -72,7 +72,7 @@ class InspectionManageCard {
Row(
children: [
Image.asset(
R.ASSETS_HOME_IC_NEWS_PNG,
R.ASSETS_INSPECTION_IC_XUNJIAN_PNG,
width: 40.w,
height: 40.w,
),

@ -1,3 +1,5 @@
import 'dart:math';
import 'package:aku_community_manager/mock_models/decoration/decoration_model.dart';
import 'package:aku_community_manager/mock_models/users/user_info_model.dart';
import 'package:aku_community_manager/provider/user_provider.dart';
@ -122,7 +124,12 @@ class _DecorationManagerDetailStatePage
midBottom: widget.model.userHomeModel.detailAddr,
name: '业主:' + widget.model.userHomeModel.userName,
phone: widget.model.userHomeModel.phone,
rightTopWidget: Placeholder(),
rightTopWidget: Transform.rotate(
angle: pi/4,
child: widget.model.statusType == DecorationStatusType.DONE
? Image.asset(R.ASSETS_MANAGE_IC_WANCHENG_PNG)
: Image.asset(R.ASSETS_MANAGE_IC_ZHUANGXIU_PNG),
),
),
AkuBox.h(16),
_buildInfoCard(

@ -1,3 +1,5 @@
import 'dart:math';
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';
@ -70,7 +72,7 @@ class _VisitorManagerCardState extends State<VisitorManagerCard> {
Row(
children: [
Image.asset(
R.ASSETS_USER_IC_PERSON_PNG,
R.ASSETS_OUTDOOR_IC_PEOPLE_PNG,
width: 40.w,
height: 40.w,
),
@ -81,7 +83,7 @@ class _VisitorManagerCardState extends State<VisitorManagerCard> {
),
AkuBox.w(137),
Image.asset(
R.ASSETS_HOME_IC_BORROW_PNG,
R.ASSETS_MANAGE_IC_CAR_PNG,
width: 40.w,
height: 40.w,
),
@ -97,7 +99,7 @@ class _VisitorManagerCardState extends State<VisitorManagerCard> {
Row(
children: [
Image.asset(
R.ASSETS_HOME_IC_ARTICLE_PNG,
R.ASSETS_MANAGE_IC_TIME_PNG,
width: 40.w,
height: 40.w,
),
@ -109,7 +111,13 @@ class _VisitorManagerCardState extends State<VisitorManagerCard> {
],
),
Positioned(
left: 582.w, bottom: 104.w, child: _statusImage(_status)),
left: 552.w-24.w,
bottom: 75.w-28.w,
child: Transform.rotate(
angle: pi / 4,
child: Image.asset(_statusImage(_status),width: 140.w,height: 140.w,),
),
),
],
),
),
@ -117,16 +125,16 @@ class _VisitorManagerCardState extends State<VisitorManagerCard> {
);
}
Widget _statusImage(VisitorStatus status) {
String _statusImage(VisitorStatus status) {
switch (status) {
case VisitorStatus.NOT_VISIT:
return Placeholder();
return R.ASSETS_MANAGE_IC_WEIDAO_PNG;
case VisitorStatus.VISIT_DONE:
return Placeholder();
return R.ASSETS_MANAGE_IC_DAOFANG_PNG;
case VisitorStatus.OUTDATE:
return Placeholder();
return R.ASSETS_MANAGE_IC_GUOQI_PNG;
default:
return Placeholder();
return '';
}
}
}

Loading…
Cancel
Save