Created
June 4, 2020 12:08
-
-
Save GursheeshSingh/094ca429a4764376487500608d0b4449 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 Screen extends StatelessWidget { | |
final String name; | |
final Color color; | |
const Screen(this.name, this.color); | |
@override | |
Widget build(BuildContext context) { | |
return Scaffold( | |
body: Container( | |
color: color, | |
child: Center( | |
child: Text( | |
name, | |
style: TextStyle( | |
fontSize: 20, | |
color: Colors.white, | |
), | |
), | |
), | |
), | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment