Skip to content

Instantly share code, notes, and snippets.

@GursheeshSingh
Created June 4, 2020 12:08
Show Gist options
  • Save GursheeshSingh/094ca429a4764376487500608d0b4449 to your computer and use it in GitHub Desktop.
Save GursheeshSingh/094ca429a4764376487500608d0b4449 to your computer and use it in GitHub Desktop.
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