mirror of
https://github.com/JGeek00/adguard-home-manager.git
synced 2025-05-14 14:02:48 +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(
|
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),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue