Advertisement
Guest User

Untitled

a guest
Jan 24th, 2020
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.96 KB | None | 0 0
  1. import 'package:flutter/material.dart';
  2.  
  3. class VendaPage extends StatefulWidget {
  4. @override
  5. _VendaPageState createState() => _VendaPageState();
  6. }
  7.  
  8. class _VendaPageState extends State<VendaPage> {
  9. @override
  10. Widget build(BuildContext context) {
  11. return Scaffold(
  12. body: SafeArea(
  13. child: Container(
  14. color: Colors.black,
  15. child: Column(
  16. children: <Widget>[
  17. Expanded(
  18. flex: 1,
  19. child: Container(
  20. padding: EdgeInsets.fromLTRB(0, 0, 8, 0),
  21. alignment: Alignment.centerRight,
  22. width: double.infinity,
  23. child: IconButton(
  24. icon: Icon(
  25. Icons.shopping_cart,
  26. color: Colors.white,
  27. ),
  28. onPressed: () {},
  29. ),
  30. ),
  31. ),
  32. Expanded(
  33. flex: 6,
  34. child: Container(
  35. color: Colors.green,
  36. width: double.infinity,
  37. ),
  38. ),
  39. Expanded(
  40. flex: 3,
  41. child: Container(
  42. width: double.infinity,
  43. child: Row(
  44. children: <Widget>[
  45. Expanded(
  46. child: Container(
  47. margin: EdgeInsets.fromLTRB(16, 16, 8, 16),
  48. decoration: BoxDecoration(
  49. color: Colors.blue,
  50. borderRadius:
  51. BorderRadius.all(Radius.circular(15))),
  52. ),
  53. ),
  54. Expanded(
  55. child: Column(
  56. children: <Widget>[
  57. Expanded(
  58. child: Container(
  59. margin: EdgeInsets.fromLTRB(8, 16, 16, 8),
  60. decoration: BoxDecoration(
  61. color: Colors.red,
  62. borderRadius:
  63. BorderRadius.all(Radius.circular(15))),
  64. ),
  65. ),
  66. Expanded(
  67. child: Container(
  68. margin: EdgeInsets.fromLTRB(8, 8, 16, 16),
  69. decoration: BoxDecoration(
  70. color: Colors.red,
  71. borderRadius:
  72. BorderRadius.all(Radius.circular(15))),
  73. ),
  74. ),
  75. ],
  76. )),
  77. ],
  78. ),
  79. ),
  80. ),
  81. ],
  82. ),
  83. ),
  84. ),
  85. );
  86. }
  87. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement