Skip to content

Instantly share code, notes, and snippets.

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 guilhermecarvalhocarneiro/e0df649d497042cb3eab0e5148ee0fe8 to your computer and use it in GitHub Desktop.
Save guilhermecarvalhocarneiro/e0df649d497042cb3eab0e5148ee0fe8 to your computer and use it in GitHub Desktop.
Animando com Opacity
return AnimatedOpacity(
opacity: _isVisible ? 1.0 : 0.0,
duration: Duration(milliseconds: 500),
child: Align(
alignment: Alignment.bottomCenter,
child: Padding(
padding: const EdgeInsets.only(bottom: 8.0),
child: GestureDetector(
child: Container(
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(50),
gradient: orangeGradiente()),
width: MediaQuery.of(context).size.width - 100,
height: 58,
child: Center(
child: Text(
"Emergência",
textAlign: TextAlign.center,
style: TextStyle(color: Colors.white),
)),
),
onTap: () {},
),
),
),
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment