Guest User

Untitled

a guest
Jan 23rd, 2019
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. void main() => runApp(App());
  2.  
  3. class App extends StatelessWidget {
  4. @override
  5. Widget build(BuildContext context) {
  6. return MaterialApp(
  7. home: Scaffold(
  8. body: Center(
  9. child: Padding(
  10. padding: const EdgeInsets.all(8.0),
  11. child: Test(),
  12. ),
  13. ),
  14. ),
  15. );
  16. }
  17. }
  18.  
  19. class Test extends StatelessWidget {
  20. @override
  21. Widget build(BuildContext context) {
  22. return Row(
  23. children: <Widget>[
  24. Container(width: 50, height: 50, color: Colors.red),
  25. Spacer(),
  26. Container(width: 50, height: 50, color: Colors.yellow),
  27. Spacer(),
  28. ],
  29. );
  30. }
  31. }
Add Comment
Please, Sign In to add comment