group_button icon indicating copy to clipboard operation
group_button copied to clipboard

How to disable elevated effect when long press button

Open MarnoDev opened this issue 2 years ago • 2 comments

Is there any way to disable elevated effect when long press button

MarnoDev avatar Mar 03 '22 14:03 MarnoDev

you can use buttonBuilder return custom button

GroupButton(
    isRadio: true,     
    onSelected: (value, index, isSelected) {
      print('$index button is selected');
    },

    buttonBuilder: (selected, value, context) {
      return ElevatedButton(
        style: ElevatedButton.styleFrom(
          splashFactory: NoSplash.splashFactory,
          shadowColor: Colors.transparent,
          elevation: 0.0,
        ),
        onPressed: () {},
        child: Text(''),
      );
    },
  ),

zystudios avatar Apr 14 '22 13:04 zystudios

Is there any way to disable elevated effect when long press button

see above

zystudios avatar Apr 14 '22 13:04 zystudios