pull/1/head
张萌 3 years ago
commit 5cdd77e04a

File diff suppressed because it is too large Load Diff

@ -239,8 +239,7 @@ class _HomePageState extends State<HomePage>
borderRadius: BorderRadius.circular(16.w),
image: DecorationImage(
fit: BoxFit.fill,
image: AssetImage(
Assets.home.imgFkyq.path),
image: AssetImage( Assets.home.imgFkyq.path),
)),
child: Column(
crossAxisAlignment:
@ -264,8 +263,11 @@ class _HomePageState extends State<HomePage>
],
),
),
onTap: () {
Get.to(() => VisitorAccessPage());
onTap: () async {
BotToast.showText(
text: '本小区尚未配置门禁设备',
align: Alignment(0, 0.5));
//Get.to(() => VisitorAccessPage());
},
),
),
@ -355,7 +357,9 @@ class _HomePageState extends State<HomePage>
),
),
onTap: () async {
await TipsDialog.tipsDialog();
BotToast.showText(
text: '本小区尚未配置门禁设备',
align: Alignment(0, 0.5));
// Get.to(AdvicePage(
// type: AdviceType.SUGGESTION));
},
@ -386,7 +390,7 @@ class _HomePageState extends State<HomePage>
_activityItemModels == []
? SizedBox()
: Container(
height: 460.w,
height: 450.w,
child: ListView.separated(
padding: EdgeInsets.zero,
separatorBuilder: (context, index) {
@ -401,6 +405,7 @@ class _HomePageState extends State<HomePage>
child: Builder(
builder: (context) {
return ActivityCard(
home: true,
model:
_activityItemModels[index]);
},

@ -21,6 +21,7 @@ class ThumbsUpCard extends StatelessWidget {
},
child: Container(
padding: EdgeInsets.symmetric(horizontal: 32.w, vertical: 48.w),
color: Colors.white,
child: Row(
children: [
ClipOval(

@ -33,7 +33,9 @@ class _ThumbsUpViewState extends State<ThumbsUpView> {
itemBuilder: (context, index) {
return ThumbsUpCard(model: items[index]);
},
separatorBuilder: (_, __) => 20.w.heightBox,
separatorBuilder: (_, __) =>Container(
color: Color(0xFFF0F0F0),height: 2.w,
),
itemCount: items.length);
});
}

@ -428,7 +428,7 @@ class _PersonalIndexState extends State<PersonalIndex>
// 36.hb,
_function('我的访客', Assets.newIcon.icWdfk.path, () {
BotToast.showText(
text: '当前小区尚未连接设备',
text: '本小区尚未配置门禁设备',
align: Alignment(0, 0.5));
}, ''),
_function(

@ -22,7 +22,7 @@ class ActivityCard extends StatelessWidget {
Widget build(BuildContext context) {
return ConstrainedBox(
constraints: BoxConstraints(maxHeight: home! ? 480.w : 540.w),
constraints: BoxConstraints(maxHeight: home! ? 450.w : 540.w),
child: MaterialButton(
clipBehavior: Clip.antiAlias,
color: Colors.white,
@ -46,7 +46,7 @@ class ActivityCard extends StatelessWidget {
child: BeeImageNetwork(
imgs: model!.imgList ?? [],
width: double.infinity,
height: home! ? 240.w : 340.w,
height: home! ? 250.w : 340.w,
),
),
),
@ -78,44 +78,54 @@ class ActivityCard extends StatelessWidget {
],
),
24.hb,
Row(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Container(
constraints: BoxConstraints(maxWidth: 340.w),
child: Text(
model == null ? '' : model!.title,
maxLines: 2,
overflow: TextOverflow.ellipsis,
style: TextStyle(
color: Color(0xD9000000),
fontSize: 28.sp,
fontWeight: FontWeight.bold),
Padding(
padding: EdgeInsets.symmetric(horizontal: 32.w),
child: Row(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Container(
constraints: BoxConstraints(maxWidth: 340.w),
child: Text(
model == null ? '' : model!.title,
maxLines: 2,
overflow: TextOverflow.ellipsis,
style: TextStyle(
color: Color(0xD9000000),
fontSize: 28.sp,
fontWeight: FontWeight.bold),
),
),
),
Spacer(),
],
Spacer(),
],
),
),
Spacer(),
[
Flexible(
child: AvatarsParticipate(
avatars:
Padding(
padding: home!?EdgeInsets.only(left: 32.w,right: 32.w,): EdgeInsets.only(left: 32.w,right: 32.w,bottom: 32.w),
child: Row(
children: [
Flexible(
child: AvatarsParticipate(
avatars:
(model?.avatarImgList?.map((e) => e.url).toList() ?? []),
pNum: model?.registrationNum ?? 0,
hasIcon: false,
pNum: model?.registrationNum ?? 0,
hasIcon: false,
),
),
),
// Spacer(),
Offstage(
offstage: ActivityFunc.dateCheck(model!.end) == '已结束',
child: ActivityFunc.dateCheck(model!.end)
.text
.size(24.sp)
.black
.make()),
],
),
// Spacer(),
Offstage(
offstage: ActivityFunc.dateCheck(model!.end) == '已结束',
child: ActivityFunc.dateCheck(model!.end)
.text
.size(24.sp)
.black
.make()),
].row(),
)
],
),
),

@ -30,9 +30,9 @@ class _TaskCancelDialogState extends State<TaskCancelDialog> {
children: [
Assets.icons.cancelTask.image(
width: double.infinity,
height: 420.w,
height: 390.w,
),
64.hb,
24.hb,
'确定要取消任务吗?'.text.size(36.sp).black.bold.make(),
24.hb,
'不再等等吗?马上就会有人来接单了!'
@ -40,7 +40,7 @@ class _TaskCancelDialogState extends State<TaskCancelDialog> {
.size(28.sp)
.color(Colors.black.withOpacity(0.45))
.make(),
80.hb,
24.hb,
Row(
children: [
MaterialButton(

Loading…
Cancel
Save