Improved select interface modal bottom sheet

This commit is contained in:
Juan Gilsanz Polo 2022-10-17 18:38:05 +02:00
parent 252c299dbc
commit 474ddd1f41

View file

@ -26,6 +26,10 @@ class SelectInterfaceModal extends StatelessWidget {
) )
), ),
child: Column( child: Column(
children: [
Expanded(
child: ListView(
controller: scrollController,
children: [ children: [
const Padding( const Padding(
padding: EdgeInsets.only(top: 28), padding: EdgeInsets.only(top: 28),
@ -37,14 +41,14 @@ class SelectInterfaceModal extends StatelessWidget {
const SizedBox(height: 20), const SizedBox(height: 20),
Text( Text(
AppLocalizations.of(context)!.selectInterface, AppLocalizations.of(context)!.selectInterface,
textAlign: TextAlign.center,
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: scrollController,
shrinkWrap: true, shrinkWrap: true,
itemCount: interfaces.length, itemCount: interfaces.length,
itemBuilder: (context, index) => Material( itemBuilder: (context, index) => Material(
@ -138,6 +142,8 @@ class SelectInterfaceModal extends StatelessWidget {
), ),
) )
), ),
],
),
), ),
Padding( Padding(
padding: const EdgeInsets.all(20), padding: const EdgeInsets.all(20),