mirror of
https://github.com/foss42/apidash.git
synced 2025-08-06 05:32:26 +08:00
Add protocol dropdown UI closes #307
This commit is contained in:
@ -8,6 +8,7 @@ class ADDropdownButton<T> extends StatelessWidget {
|
||||
required this.values,
|
||||
this.onChanged,
|
||||
this.isExpanded = false,
|
||||
this.isDense = false,
|
||||
this.iconSize,
|
||||
this.dropdownMenuItemPadding = kPs8,
|
||||
this.dropdownMenuItemtextStyle,
|
||||
@ -17,6 +18,7 @@ class ADDropdownButton<T> extends StatelessWidget {
|
||||
final Iterable<(T, String?)> values;
|
||||
final void Function(T?)? onChanged;
|
||||
final bool isExpanded;
|
||||
final bool isDense;
|
||||
final double? iconSize;
|
||||
final EdgeInsetsGeometry dropdownMenuItemPadding;
|
||||
final TextStyle? Function(T)? dropdownMenuItemtextStyle;
|
||||
@ -26,6 +28,7 @@ class ADDropdownButton<T> extends StatelessWidget {
|
||||
final surfaceColor = Theme.of(context).colorScheme.surface;
|
||||
return DropdownButton<T>(
|
||||
isExpanded: isExpanded,
|
||||
isDense: isDense,
|
||||
focusColor: surfaceColor,
|
||||
value: value,
|
||||
icon: Icon(
|
||||
|
Reference in New Issue
Block a user