Created
December 5, 2019 11:29
-
-
Save guilhermecarvalhocarneiro/e0df649d497042cb3eab0e5148ee0fe8 to your computer and use it in GitHub Desktop.
Animando com Opacity
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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