|
|
@ -27,24 +27,23 @@ class ASOptionTile extends StatelessWidget {
|
|
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
return Padding(
|
|
|
|
return Material(
|
|
|
|
padding: this.padding ?? EdgeInsets.fromLTRB(10.w, 10.w, 10.w, 0),
|
|
|
|
|
|
|
|
child: Material(
|
|
|
|
|
|
|
|
color: kForegroundColor,
|
|
|
|
color: kForegroundColor,
|
|
|
|
shape: RoundedRectangleBorder(
|
|
|
|
shape: RoundedRectangleBorder(
|
|
|
|
borderRadius: BorderRadius.circular(5.w),
|
|
|
|
borderRadius: BorderRadius.circular(5.w),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
child: item ??
|
|
|
|
child: Padding(
|
|
|
|
Column(
|
|
|
|
padding: this.padding ?? EdgeInsets.fromLTRB(10.w, 10.w, 10.w, 0),
|
|
|
|
children: List.generate(length * 2 - 1, (index) {
|
|
|
|
child: item ??
|
|
|
|
final displayIndex = index ~/ 2;
|
|
|
|
Column(
|
|
|
|
if (index.isEven)
|
|
|
|
children: List.generate(length * 2 - 1, (index) {
|
|
|
|
return items[displayIndex];
|
|
|
|
final displayIndex = index ~/ 2;
|
|
|
|
else
|
|
|
|
if (index.isEven)
|
|
|
|
return ASDivider(indent: 14.w, endIndent: 14.w);
|
|
|
|
return items[displayIndex];
|
|
|
|
}),
|
|
|
|
else
|
|
|
|
),
|
|
|
|
return ASDivider(indent: 14.w, endIndent: 14.w);
|
|
|
|
),
|
|
|
|
}),
|
|
|
|
);
|
|
|
|
),
|
|
|
|
|
|
|
|
));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|