Recojer_screen.dart 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. import 'package:flutter/material.dart';
  2. class RecojerScreen extends StatefulWidget {
  3. const RecojerScreen({super.key});
  4. @override
  5. State<RecojerScreen> createState() => _parallevarScreenState();
  6. }
  7. class _parallevarScreenState extends State<RecojerScreen> {
  8. String seleccionado = "";
  9. final List<Map<String, dynamic>> items = [
  10. {
  11. 'nombre': 'Hamburguesa de res',
  12. 'precio': '\$ 120.00',
  13. 'imageUrl':
  14. 'https://cdn.pixabay.com/photo/2016/03/05/19/02/hamburger-1238246_960_720.jpg',
  15. },
  16. {
  17. 'nombre': 'Hamburguesa de pollo',
  18. 'precio': '\$ 100.00',
  19. 'imageUrl':
  20. 'https://cdn.pixabay.com/photo/2016/03/05/19/02/hamburger-1238246_960_720.jpg',
  21. },
  22. {
  23. 'nombre': 'Hamburguesa de res',
  24. 'precio': '\$ 120.00',
  25. 'imageUrl':
  26. 'https://cdn.pixabay.com/photo/2016/03/05/19/02/hamburger-1238246_960_720.jpg',
  27. },
  28. {
  29. 'nombre': 'Hamburguesa de pollo',
  30. 'precio': '\$ 100.00',
  31. 'imageUrl':
  32. 'https://cdn.pixabay.com/photo/2016/03/05/19/02/hamburger-1238246_960_720.jpg',
  33. },
  34. {
  35. 'nombre': 'Hamburguesa de pollo',
  36. 'precio': '\$ 100.00',
  37. 'imageUrl':
  38. 'https://cdn.pixabay.com/photo/2016/03/05/19/02/hamburger-1238246_960_720.jpg',
  39. },
  40. ];
  41. @override
  42. Widget build(BuildContext context) {
  43. return Scaffold(
  44. backgroundColor: Colors.white,
  45. appBar: AppBar(
  46. actions: const [],
  47. title: const Row(
  48. mainAxisAlignment: MainAxisAlignment.spaceBetween,
  49. children: [
  50. Text('Atrás'),
  51. Column(
  52. children: [
  53. Text(
  54. 'Su carrito',
  55. style: TextStyle(fontSize: 17, color: Colors.black54),
  56. ),
  57. Text(
  58. style: TextStyle(fontSize: 20, fontWeight: FontWeight.w800),
  59. 'MXN 69.00',
  60. )
  61. ],
  62. )
  63. ],
  64. ),
  65. ),
  66. bottomNavigationBar: BottomAppBar(
  67. height: 100,
  68. color: Colors.transparent,
  69. child: Padding(
  70. padding: const EdgeInsets.all(10),
  71. child: Row(
  72. mainAxisAlignment: MainAxisAlignment.center,
  73. children: [
  74. TextButton(
  75. style: TextButton.styleFrom(
  76. minimumSize: const Size(350, 50),
  77. backgroundColor: Colors.black,
  78. foregroundColor: Colors.white,
  79. shape: RoundedRectangleBorder(
  80. borderRadius: BorderRadius.circular(10),
  81. ),
  82. ),
  83. onPressed: (){},
  84. child: const Row(
  85. children: [
  86. Padding(
  87. padding: EdgeInsets.only(left:8),
  88. child: Text(
  89. 'Pedir (MXN 69.00)',
  90. textAlign: TextAlign.center,
  91. style: TextStyle(
  92. fontSize: 17,
  93. ),
  94. ),
  95. )
  96. ],
  97. ),
  98. ),
  99. ],
  100. ),
  101. ),
  102. ),
  103. body:
  104. const Padding(
  105. padding: EdgeInsets.all(8.0),
  106. child: Column(
  107. children: [
  108. Padding(
  109. padding: EdgeInsets.all(5),
  110. ),
  111. Row(
  112. mainAxisAlignment: MainAxisAlignment.spaceBetween,
  113. ),
  114. ],
  115. ),
  116. ),
  117. );
  118. }
  119. }