Skip to content

Instantly share code, notes, and snippets.

@vijayinyoutube
Created June 21, 2022 18:32
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
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