Skip to content

Commit

Permalink
Minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Kypsis committed Sep 22, 2023
1 parent 3af7ee2 commit 0874b11
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/src/widgets/dropdown/dropdown.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import 'package:flutter/material.dart';
import 'package:moon_design/src/theme/theme.dart';
import 'package:moon_design/src/theme/tokens/colors.dart';
import 'package:moon_design/src/theme/tokens/shadows.dart';
import 'package:moon_design/src/theme/tokens/sizes.dart';
import 'package:moon_design/src/theme/tokens/transitions.dart';
import 'package:moon_design/src/theme/tokens/typography/typography.dart';
import 'package:moon_design/src/utils/extensions.dart';
Expand Down Expand Up @@ -379,7 +380,7 @@ class _MoonDropdownState extends State<MoonDropdown> with RouteAware, SingleTick
context.moonTheme?.dropdownTheme.properties.textStyle ?? MoonTypography.typography.body.textDefault;

final double effectiveDistanceToTarget =
widget.distanceToTarget ?? context.moonTheme?.dropdownTheme.properties.distanceToTarget ?? 8;
widget.distanceToTarget ?? context.moonTheme?.dropdownTheme.properties.distanceToTarget ?? MoonSizes.sizes.x4s;

final EdgeInsetsGeometry effectiveContentPadding =
widget.contentPadding ?? context.moonTheme?.dropdownTheme.properties.contentPadding ?? const EdgeInsets.all(4);
Expand Down

0 comments on commit 0874b11

Please sign in to comment.