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