Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hide underline #68

Open
hortigado opened this issue Mar 21, 2024 · 2 comments
Open

Hide underline #68

hortigado opened this issue Mar 21, 2024 · 2 comments

Comments

@hortigado
Copy link

Hi, good work. I have a request. I need hide the underline and not show the option for it. Thanks
image

@AbdullahChauhan
Copy link
Owner

Hey @hortigado
Code snippet please. I couldn't able to reproduce this issue on my side. Thanks!

@chowhoho819
Copy link

chowhoho819 commented Jul 10, 2024

CustomDropdown<Members>.search(
  decoration: CustomDropdownDecoration(
    closedBorder: Border.all(color: ColorConstant.gray200),
  ),
  hintText: 'Company Code',
  items: GlobalStorage.instance.memberList,
  excludeSelected: false,
  onChanged: (value) {
  },
),

Having same issue.

I have declare inputDecorationTheme for the material app

inputDecorationTheme: const InputDecorationTheme(
  isDense: true,
  enabledBorder: UnderlineInputBorder(
    borderSide: BorderSide(color: Colors.black),
  ),
  focusedBorder: UnderlineInputBorder(
    borderSide: BorderSide(color: Colors.black),
  ),
),

Seems like custom_dropdown.dart build method cause the issue

Line 605 - 611

return InputDecorator(
  decoration: InputDecoration(
    errorStyle: decoration?.errorStyle ?? _defaultErrorStyle,
    errorText: formFieldState.errorText,
    border: InputBorder.none,
    contentPadding: EdgeInsets.zero,
  ),

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants