copyWithMinthAdjustments method

ThemeData copyWithMinthAdjustments()

Implementation

ThemeData copyWithMinthAdjustments() {
  var inputDecorationTheme = _inputDecorationTheme;

  return copyWith(
    extensions: [
      DropdownIconsTheme(
        trailingIcon: Icon(
          Icons.keyboard_arrow_down_sharp,
          size: 20,
        ),
        selectedTrailingIcon: Icon(
          Icons.keyboard_arrow_up_sharp,
          size: 20,
        ),
      )
    ],
    textSelectionTheme: TextSelectionThemeData(
      cursorColor: colorScheme.onSurface,
    ),
    inputDecorationTheme: inputDecorationTheme,
    dropdownMenuTheme: DropdownMenuThemeData(
      menuStyle: MenuStyle(
        maximumSize: WidgetStatePropertyAll(Size.fromHeight(120))
      ),
      inputDecorationTheme: inputDecorationTheme.copyWith(
        filled: true,
        fillColor: colorScheme.onSurface.withOpacity(0.03),
      )
    )
  );
}