How can I show a splash or some indication when the button is pressed for an elevated button.
Here is the code snippet:
ElevatedButton(
style:
ButtonStyle(
overlayColor: WidgetStateProperty.all(const Color
.fromARGB(
255,
16,
99,
167)),
splashFactory:
InkRipple.splashFactory,
backgroundColor:
WidgetStatePropertyAll(
Theme.of(context)
.colorScheme
.primary,
),
),
onPressed:
() {
context.read<StripeCheckoutCubit>().initiateCheckout(
userRef:
userData.selfRef,
planRef: pricePlans.first.selfRef);
},
child:
Text(
'Checkout',
style: TextStyle(
fontSize:
17,
color:
Theme.of(context).colorScheme.onPrimary),
)),
I used the splashFactory but it is not doing anything.