Advertisement
Guest User

Untitled

a guest
Jul 21st, 2019
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. import 'package:flutter_web/material.dart';
  2. import 'package:flutter_web_test/flutter_web_test.dart';
  3. import 'package:flutter_web_ui/ui.dart' as ui;
  4.  
  5. class MyWidget extends StatelessWidget {
  6. @override
  7. Widget build(BuildContext context) {
  8. return Row(
  9. children: [
  10. BlueBox(),
  11. Flexible(
  12. fit: FlexFit.tight,
  13. flex: 1,
  14. child: BlueBox(),
  15. ),
  16. Flexible(
  17. fit: FlexFit.tight,
  18. flex: 2,
  19. child: BlueBox(),
  20. ),
  21. ],
  22. );
  23. }
  24. }
  25.  
  26. class BlueBox extends StatelessWidget {
  27. @override
  28. Widget build(BuildContext context) {
  29. return Container(
  30. width: 50,
  31. height: 50,
  32. decoration: BoxDecoration(
  33. color: Colors.blue,
  34. border: Border.all(),
  35. ),
  36. );
  37. }
  38. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement