Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
ElevatedButton(
style: ElevatedButton.styleFrom(
elevation: 0,
primary: primaryColor,
minimumSize: const Size(double.infinity, 50),
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(10.0),
),
),
child: Text(
'${(showPayBtn ? 'Proceed to pay' : 'Checkout')} ',
style: const TextStyle(color: Colors.black),
),
onPressed: () => _changeOpacity(),
,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment