|
@@ -19,20 +19,23 @@ class ListOverlay extends StatelessWidget {
|
|
|
|
|
|
@override
|
|
|
Widget build(BuildContext context) {
|
|
|
- return Container(
|
|
|
- constraints: BoxConstraints.tight(Size(maxWidth, maxHeight)),
|
|
|
- decoration: BoxDecoration(
|
|
|
- color: Colors.white,
|
|
|
- borderRadius: const BorderRadius.all(Radius.circular(6)),
|
|
|
- boxShadow: [
|
|
|
- BoxShadow(color: Colors.black.withOpacity(0.1), spreadRadius: 1, blurRadius: 20.0),
|
|
|
- ],
|
|
|
- ),
|
|
|
- child: ListView.builder(
|
|
|
- shrinkWrap: true,
|
|
|
- itemBuilder: itemBuilder,
|
|
|
- itemCount: itemCount,
|
|
|
- controller: controller,
|
|
|
+ return Material(
|
|
|
+ type: MaterialType.transparency,
|
|
|
+ child: Container(
|
|
|
+ constraints: BoxConstraints.tight(Size(maxWidth, maxHeight)),
|
|
|
+ decoration: BoxDecoration(
|
|
|
+ color: Colors.white,
|
|
|
+ borderRadius: const BorderRadius.all(Radius.circular(6)),
|
|
|
+ boxShadow: [
|
|
|
+ BoxShadow(color: Colors.black.withOpacity(0.1), spreadRadius: 1, blurRadius: 20.0),
|
|
|
+ ],
|
|
|
+ ),
|
|
|
+ child: ListView.builder(
|
|
|
+ shrinkWrap: true,
|
|
|
+ itemBuilder: itemBuilder,
|
|
|
+ itemCount: itemCount,
|
|
|
+ controller: controller,
|
|
|
+ ),
|
|
|
),
|
|
|
);
|
|
|
}
|