mirror of
https://github.com/JGeek00/adguard-home-manager.git
synced 2025-05-14 05:52:51 +00:00
Improved select interface modal bottom sheet
This commit is contained in:
parent
252c299dbc
commit
474ddd1f41
1 changed files with 112 additions and 106 deletions
|
@ -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),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue