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

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

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

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

@ -22,7 +22,7 @@ class ActivityCard extends StatelessWidget {
Widget build(BuildContext context) { Widget build(BuildContext context) {
return ConstrainedBox( return ConstrainedBox(
constraints: BoxConstraints(maxHeight: home! ? 480.w : 540.w), constraints: BoxConstraints(maxHeight: home! ? 450.w : 540.w),
child: MaterialButton( child: MaterialButton(
clipBehavior: Clip.antiAlias, clipBehavior: Clip.antiAlias,
color: Colors.white, color: Colors.white,
@ -46,7 +46,7 @@ class ActivityCard extends StatelessWidget {
child: BeeImageNetwork( child: BeeImageNetwork(
imgs: model!.imgList ?? [], imgs: model!.imgList ?? [],
width: double.infinity, width: double.infinity,
height: home! ? 240.w : 340.w, height: home! ? 250.w : 340.w,
), ),
), ),
), ),
@ -78,7 +78,9 @@ class ActivityCard extends StatelessWidget {
], ],
), ),
24.hb, 24.hb,
Row( Padding(
padding: EdgeInsets.symmetric(horizontal: 32.w),
child: Row(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
Container( Container(
@ -96,8 +98,13 @@ class ActivityCard extends StatelessWidget {
Spacer(), Spacer(),
], ],
), ),
),
Spacer(), Spacer(),
[
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( Flexible(
child: AvatarsParticipate( child: AvatarsParticipate(
avatars: avatars:
@ -115,7 +122,10 @@ class ActivityCard extends StatelessWidget {
.size(24.sp) .size(24.sp)
.black .black
.make()), .make()),
].row(), ],
),
)
], ],
), ),
), ),

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

Loading…
Cancel
Save