mirror of
https://github.com/JGeek00/adguard-home-manager.git
synced 2025-05-14 05:52:51 +00:00
Changed response status bottom sheet
This commit is contained in:
parent
16f1d4664c
commit
ae3e172033
3 changed files with 122 additions and 142 deletions
|
@ -4,12 +4,18 @@ class ListBottomSheet extends StatelessWidget {
|
|||
final IconData icon;
|
||||
final String title;
|
||||
final List<Widget> children;
|
||||
final double? initialChildSize;
|
||||
final double? minChildSize;
|
||||
final double? maxChildSize;
|
||||
|
||||
const ListBottomSheet({
|
||||
super.key,
|
||||
required this.icon,
|
||||
required this.title,
|
||||
required this.children
|
||||
required this.children,
|
||||
this.initialChildSize,
|
||||
this.maxChildSize,
|
||||
this.minChildSize,
|
||||
});
|
||||
|
||||
@override
|
||||
|
@ -17,9 +23,9 @@ class ListBottomSheet extends StatelessWidget {
|
|||
return GestureDetector(
|
||||
onTap: () => Navigator.of(context).pop(),
|
||||
child: DraggableScrollableSheet(
|
||||
initialChildSize: 0.6,
|
||||
minChildSize: 0.3,
|
||||
maxChildSize: 1,
|
||||
initialChildSize: initialChildSize ?? 0.6,
|
||||
minChildSize: minChildSize ?? 0.3,
|
||||
maxChildSize: maxChildSize ?? 1,
|
||||
builder: (context, controller) {
|
||||
return Container(
|
||||
decoration: BoxDecoration(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue