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 disable elevated effect when long press button #71

Open
MarnoDev opened this issue Mar 3, 2022 · 2 comments
Open

How to disable elevated effect when long press button #71

MarnoDev opened this issue Mar 3, 2022 · 2 comments

Comments

@MarnoDev
Copy link

MarnoDev commented Mar 3, 2022

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

@zystudios
Copy link

zystudios commented Apr 14, 2022

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
Copy link

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

see above

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

2 participants