ketanchoyal / custom_radio_grouped_button

Custom Flutter widgets that makes Checkbox and Radio Buttons much cleaner and easier.
MIT License
150 stars 42 forks source link

Align left or right #59

Closed YouSour closed 2 years ago

YouSour commented 2 years ago

hi , i'm trying align custom_radio_grouped_button to left or right, how can i align it ? thank in advance here what i did and it doesn't work:

Column(
      crossAxisAlignment: CrossAxisAlignment.start,
      children: [
          CustomRadioButton(
          scrollController: ScrollController(),
          elevation: 0,
          absoluteZeroSpacing: true,
          enableShape: true,
          unSelectedColor: Theme.of(context).canvasColor,
          buttonLables: const [
            '1',
            '2',
            '3',
            '4',
            '5',
            '6',
            '7',
            '8',
            '9',
          ],
          buttonValues: const [
            '1',
            '2',
            '3',
            '4',
            '5',
            '6',
            '7',
            '8',
            '9',
          ],

          radioButtonValue: (value) {},
          selectedColor: _theme.iconTheme.color!,
        ),
        ]
      )
ketanchoyal commented 2 years ago

Hey @YouSour thanks for using my package but support for alignment of the label is currently not possible because of how different alignment and spacing work, you're most welcome if you clone this repo and add that support