Style fixes

This commit is contained in:
Ankit Mahato
2025-03-30 03:55:46 +05:30
parent b040e226ba
commit b7f3b81fe9
3 changed files with 5 additions and 2 deletions

View File

@ -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,
), ),
), ),
); );

View File

@ -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,
), ),
), ),
), ),

View File

@ -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,