Skip to content

Instantly share code, notes, and snippets.

@shubie
Created December 12, 2019 18:21
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/8e3743b1c3bfd3f5b1d37b3ad813f50e to your computer and use it in GitHub Desktop.
Save shubie/8e3743b1c3bfd3f5b1d37b3ad813f50e to your computer and use it in GitHub Desktop.
Padding(
padding: const EdgeInsets.fromLTRB(50, 5, 50, 5),
child: SizedBox(
width: double.infinity,
child: blueButton(
"Copy Token",
() {
Clipboard.setData(
new ClipboardData(text: "4671-0884-7276-4345-8709"));
Flushbar(
title: "Ok",
message: "Token copied successfully",
duration: Duration(seconds: 3),
)..show(context);
},
),
),
),
SizedBox(height: 10),
Padding(
padding: const EdgeInsets.fromLTRB(50, 5, 50, 5),
child: SizedBox(
width: double.infinity,
child: blueButton("Go Home", () => {}))),
Expanded(
child: Align(
alignment: Alignment.bottomCenter,
child: viewMoreButtons("View Transaction Details",
() => {showPowerBottomSheet(context)}),
),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment