Created
June 12, 2020 00:53
-
-
Save yuritoledo/2166eaae123077fe6d39c3163cb006b5 to your computer and use it in GitHub Desktop.
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
class Container extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return MyButton(title: 'Titulo do button'); | |
} | |
} | |
class MyButton extends StatelessWidget { | |
String title; | |
// Esse é o construtor, prazer | |
Button({this.title}); | |
@override | |
Widget build(BuildContext context) { | |
return Button(title); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment