便民电话部分重写

hmxc
小赖 4 years ago
parent 44cb268444
commit 10d89c668b

@ -39,8 +39,7 @@ class _ConvenientPhonePageState extends State<ConvenientPhonePage> {
} }
Widget _buildTile(ConvenientPhoneModel model) { Widget _buildTile(ConvenientPhoneModel model) {
return Material( return Column(
child: Column(
children: [ children: [
Row( Row(
crossAxisAlignment: CrossAxisAlignment.center, crossAxisAlignment: CrossAxisAlignment.center,
@ -79,7 +78,6 @@ class _ConvenientPhonePageState extends State<ConvenientPhonePage> {
], ],
), ),
], ],
),
); );
} }
@ -140,21 +138,19 @@ class _ConvenientPhonePageState extends State<ConvenientPhonePage> {
return _buildTile(items[index]); return _buildTile(items[index]);
}, },
separatorBuilder: (context, index) { separatorBuilder: (context, index) {
return Padding( return Divider(
padding: EdgeInsets.symmetric(vertical: 20.w),
child: Divider(
thickness: 1.w, thickness: 1.w,
height: 1.w, height: 40.w,
color: Color(0xFFD8D8D8), color: Color(0xFFD8D8D8),
),
); );
}, },
itemCount: items.length); itemCount: items.length,
);
}, },
), ),
), ),
], ],
), ).material(color: Colors.white),
); );
} }
} }

Loading…
Cancel
Save