Improved blocked services modal bottom sheet

This commit is contained in:
Juan Gilsanz Polo 2022-10-17 18:35:52 +02:00
parent 9b63bba853
commit 252c299dbc

View file

@ -67,7 +67,9 @@ class _BlockedServicesModalState extends State<BlockedServicesModal> {
), ),
child: Column( child: Column(
children: [ children: [
Column( Expanded(
child: ListView(
controller: widget.scrollController,
children: [ children: [
const Padding( const Padding(
padding: EdgeInsets.only(top: 28), padding: EdgeInsets.only(top: 28),
@ -83,13 +85,11 @@ class _BlockedServicesModalState extends State<BlockedServicesModal> {
style: const TextStyle( style: const TextStyle(
fontSize: 24 fontSize: 24
), ),
)
],
), ),
const SizedBox(height: 20), const SizedBox(height: 20),
Expanded( ListView.builder(
child: ListView.builder( primary: false,
controller: widget.scrollController, shrinkWrap: true,
itemCount: services.length, itemCount: services.length,
itemBuilder: (context, index) => Material( itemBuilder: (context, index) => Material(
color: Colors.transparent, color: Colors.transparent,
@ -119,6 +119,8 @@ class _BlockedServicesModalState extends State<BlockedServicesModal> {
), ),
) )
), ),
],
),
), ),
Padding( Padding(
padding: const EdgeInsets.all(20), padding: const EdgeInsets.all(20),