mirror of
https://github.com/foss42/apidash.git
synced 2025-08-26 14:24:03 +08:00
Style fixes
This commit is contained in:
@ -102,7 +102,7 @@ class _TextFieldEditorState extends State<TextFieldEditor> {
|
|||||||
),
|
),
|
||||||
filled: true,
|
filled: true,
|
||||||
hoverColor: kColorTransparent,
|
hoverColor: kColorTransparent,
|
||||||
fillColor: Theme.of(context).colorScheme.surfaceContainerLow,
|
fillColor: Theme.of(context).colorScheme.surfaceContainerLowest,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
@ -167,7 +167,7 @@ class _JsonTextFieldEditorState extends State<JsonTextFieldEditor> {
|
|||||||
),
|
),
|
||||||
filled: true,
|
filled: true,
|
||||||
hoverColor: kColorTransparent,
|
hoverColor: kColorTransparent,
|
||||||
fillColor: Theme.of(context).colorScheme.surfaceContainerLow,
|
fillColor: Theme.of(context).colorScheme.surfaceContainerLowest,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
@ -10,6 +10,7 @@ class ADDropdownButton<T> extends StatelessWidget {
|
|||||||
this.isExpanded = false,
|
this.isExpanded = false,
|
||||||
this.isDense = false,
|
this.isDense = false,
|
||||||
this.iconSize,
|
this.iconSize,
|
||||||
|
this.fontSize,
|
||||||
this.dropdownMenuItemPadding = kPs8,
|
this.dropdownMenuItemPadding = kPs8,
|
||||||
this.dropdownMenuItemtextStyle,
|
this.dropdownMenuItemtextStyle,
|
||||||
});
|
});
|
||||||
@ -20,6 +21,7 @@ class ADDropdownButton<T> extends StatelessWidget {
|
|||||||
final bool isExpanded;
|
final bool isExpanded;
|
||||||
final bool isDense;
|
final bool isDense;
|
||||||
final double? iconSize;
|
final double? iconSize;
|
||||||
|
final double? fontSize;
|
||||||
final EdgeInsetsGeometry dropdownMenuItemPadding;
|
final EdgeInsetsGeometry dropdownMenuItemPadding;
|
||||||
final TextStyle? Function(T)? dropdownMenuItemtextStyle;
|
final TextStyle? Function(T)? dropdownMenuItemtextStyle;
|
||||||
|
|
||||||
@ -38,6 +40,7 @@ class ADDropdownButton<T> extends StatelessWidget {
|
|||||||
elevation: 4,
|
elevation: 4,
|
||||||
style: kCodeStyle.copyWith(
|
style: kCodeStyle.copyWith(
|
||||||
color: Theme.of(context).colorScheme.primary,
|
color: Theme.of(context).colorScheme.primary,
|
||||||
|
fontSize: fontSize ?? Theme.of(context).textTheme.bodyMedium?.fontSize,
|
||||||
),
|
),
|
||||||
underline: Container(
|
underline: Container(
|
||||||
height: 0,
|
height: 0,
|
||||||
|
Reference in New Issue
Block a user