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

How to control vertical space in FormBuilderCheckboxGroup #1283

Closed
7 tasks done
nicks258 opened this issue Aug 24, 2023 · 0 comments · Fixed by #1284
Closed
7 tasks done

How to control vertical space in FormBuilderCheckboxGroup #1283

nicks258 opened this issue Aug 24, 2023 · 0 comments · Fixed by #1284
Labels
bug Something isn't working

Comments

@nicks258
Copy link
Contributor

nicks258 commented Aug 24, 2023

Is there an existing issue for this?

  • I have searched the existing issues

Package/Plugin version

9.1.0.

Platforms

  • Android
  • iOS
  • Linux
  • MacOS
  • Web
  • Windows

Flutter doctor

Flutter doctor
[√] Flutter (Channel stable, 3.13.0, on Microsoft Windows [Version 10.0.19045.3324], locale en-US)
[√] Windows Version (Installed version of Windows is version 10 or higher)
[√] Android toolchain - develop for Android devices (Android SDK version 33.0.2)
[√] Chrome - develop for the web
[√] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.3.4)
[√] Android Studio (version 2022.2)
[√] Android Studio (version 2022.3)
[√] Android Studio (version 2023.1)
[√] Connected device (4 available)
[√] Network resources

• No issues found!

Minimal code example

Code sample
FormBuilderCheckboxGroup(
                          name: 'category_name',
                          orientation: OptionsOrientation.vertical,
                          decoration:
                              const InputDecoration(
                                  isDense: false,isCollapsed: true,alignLabelWithHint: true,
                                  border: InputBorder.none,contentPadding: EdgeInsets.zero),
                          options: controller.categoryList
                              .map((category) => FormBuilderFieldOption(
                                    value: category.id,
                                    child: Text(category.name,style: labelWithoutBold()),
                                  ))
                              .toList(),
                        ),

Current Behavior

Currently vertical space between two checkbox is so large.

Expected Behavior

There must be option to control visual density of checkbox.

Steps To Reproduce

flutter pub add flutter_form_builder: ^9.1.0.
1). Use FormBuilderCheckboxGroup

Aditional information

No response

@nicks258 nicks258 added the bug Something isn't working label Aug 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant