|
|
@ -35,7 +35,7 @@ class _AllApplicationNewPageState extends State<AllApplicationNewPage> {
|
|
|
|
case 3:
|
|
|
|
case 3:
|
|
|
|
return ['服务浏览', '周边企业', '住房说明', '电子商务'];
|
|
|
|
return ['服务浏览', '周边企业', '住房说明', '电子商务'];
|
|
|
|
case 4:
|
|
|
|
case 4:
|
|
|
|
return ['智慧养老', '任务发布', '周边服务', '共享投屏'];
|
|
|
|
return [ '任务发布', '周边服务', '共享投屏'];
|
|
|
|
case 5:
|
|
|
|
case 5:
|
|
|
|
return ['自营商城', '邻家宠物', '共享停车', '二手市场'];
|
|
|
|
return ['自营商城', '邻家宠物', '共享停车', '二手市场'];
|
|
|
|
default:
|
|
|
|
default:
|
|
|
@ -59,9 +59,7 @@ class _AllApplicationNewPageState extends State<AllApplicationNewPage> {
|
|
|
|
Container _applicationTile(int index) {
|
|
|
|
Container _applicationTile(int index) {
|
|
|
|
return Container(
|
|
|
|
return Container(
|
|
|
|
width: 686.w,
|
|
|
|
width: 686.w,
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
padding: EdgeInsets.only(top: 32.w),
|
|
|
|
vertical: 32.w,
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
color: Colors.white, borderRadius: BorderRadius.circular(16.w)),
|
|
|
|
color: Colors.white, borderRadius: BorderRadius.circular(16.w)),
|
|
|
|
child: Column(
|
|
|
|
child: Column(
|
|
|
@ -77,19 +75,14 @@ class _AllApplicationNewPageState extends State<AllApplicationNewPage> {
|
|
|
|
.bold
|
|
|
|
.bold
|
|
|
|
.make(),
|
|
|
|
.make(),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
ConstrainedBox(
|
|
|
|
GridView.count(
|
|
|
|
constraints: BoxConstraints(
|
|
|
|
shrinkWrap: true,
|
|
|
|
maxHeight: getApplications(index).length ~/ 4 * 140.w +
|
|
|
|
crossAxisCount: 4,
|
|
|
|
((getApplications(index).length - 4) ~/ 4 * 30.w)),
|
|
|
|
physics: NeverScrollableScrollPhysics(),
|
|
|
|
child: GridView.count(
|
|
|
|
children: ApplicationUtil(getApplications(index))
|
|
|
|
shrinkWrap: true,
|
|
|
|
.elements
|
|
|
|
crossAxisCount: 4,
|
|
|
|
.map((e) => applicationItem(e))
|
|
|
|
physics: NeverScrollableScrollPhysics(),
|
|
|
|
.toList(),
|
|
|
|
children: ApplicationUtil(getApplications(index))
|
|
|
|
|
|
|
|
.elements
|
|
|
|
|
|
|
|
.map((e) => applicationItem(e))
|
|
|
|
|
|
|
|
.toList(),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|