Skip to content

Instantly share code, notes, and snippets.

@shubie
Created December 12, 2019 17:00
Show Gist options
  • Save shubie/92c7d7c9d075310d6b5c31411f323b85 to your computer and use it in GitHub Desktop.
Save shubie/92c7d7c9d075310d6b5c31411f323b85 to your computer and use it in GitHub Desktop.
Center(
child: Stack(
children: <Widget>[
Align(
alignment: Alignment.center,
child: Container(
margin: const EdgeInsets.all(7.0),
padding: const EdgeInsets.all(30.0),
decoration: BoxDecoration(
border: Border.all(
color: const Color(0xffFFAC38), width: 3),
borderRadius:
BorderRadius.all(Radius.circular(10.0))),
child: SelectableText(
"4671-0884-7276-4345-8709",
style: TextStyle(
color: Colors.black,
fontSize: 18,
fontWeight: FontWeight.bold,
),
textAlign: TextAlign.justify,
),
),
),
Align(
alignment: Alignment.topCenter,
child: DecoratedBox(
decoration: BoxDecoration(color: Colors.white),
child: Text(' Token '),
)),
],
),
),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment