carrito_screen.dart 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. import 'package:flutter/material.dart';
  2. class CarritoScreen extends StatefulWidget {
  3. const CarritoScreen({super.key});
  4. @override
  5. State<CarritoScreen> createState() => _CarritoScreenState();
  6. }
  7. class _CarritoScreenState extends State<CarritoScreen> {
  8. @override
  9. Widget build(BuildContext context) {
  10. return Scaffold(
  11. backgroundColor: Colors.white,
  12. appBar: AppBar(
  13. actions: [],
  14. title: const Row(
  15. mainAxisAlignment: MainAxisAlignment.spaceBetween,
  16. children: [
  17. Text('Atrás'),
  18. Column(
  19. children: [
  20. Text(
  21. 'Su carrito',
  22. style:TextStyle(
  23. fontSize: 17,
  24. color: Colors.black54
  25. ),
  26. ),
  27. Text(
  28. style: TextStyle(
  29. fontSize: 20,
  30. fontWeight: FontWeight.w800
  31. ),
  32. 'MXN 69.00',
  33. )
  34. ],
  35. )
  36. ],
  37. ),
  38. ),
  39. body: Column(
  40. children:[
  41. Row(
  42. mainAxisAlignment: MainAxisAlignment.spaceBetween,
  43. children: [
  44. Image.network('https://cdn.pixabay.com/photo/2016/03/05/19/02/hamburger-1238246_960_720.jpg',
  45. width: 100,
  46. height: 100,
  47. ),
  48. const Column (children: [
  49. Text(
  50. '1.HAMBURGUESA SENCILLA'
  51. ),
  52. Text(
  53. style: TextStyle(
  54. fontWeight: FontWeight.bold,
  55. ),
  56. 'MXN 115.00'
  57. ),
  58. ],),
  59. ],
  60. ),
  61. ],
  62. ),
  63. );
  64. }
  65. }