Skip to content

Instantly share code, notes, and snippets.

@shubie
Created December 12, 2019 18:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shubie/8e5d84cc62118a5e84f35232b035d87e to your computer and use it in GitHub Desktop.
Save shubie/8e5d84cc62118a5e84f35232b035d87e to your computer and use it in GitHub Desktop.
showPowerBottomSheet(BuildContext context) => showModalBottomSheet(
isScrollControlled: true,
context: context,
builder: (context) {
return Container(
height: 600,
color: Color(0xFF737373),
child: Container(
decoration: BoxDecoration(
color: Theme.of(context).canvasColor,
borderRadius: BorderRadius.only(
topLeft: const Radius.circular(20),
topRight: const Radius.circular(20),
)),
child: Column(
children: <Widget>[
viewMoreButtons(
"Close Transaction", () => {Navigator.pop(context)}),
SizedBox(height: 10),
listItemContainer("Date of Transaction", "17th April, 2019"),
listItemContainer("Transaction References", "KED12435353636"),
listItemContainer("Token", "1234 5668 4657 3849"),
listItemContainer("Account Type", "Prepaid"),
],
),
),
);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment