You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

50 lines
1.2KB

  1. import 'package:flutter/material.dart';
  2. import '../../../../themes/app_colors.dart';
  3. import '../../../../themes/styles_text.dart';
  4. class ItemCode extends StatelessWidget {
  5. final Function onPressed;
  6. const ItemCode({
  7. super.key,
  8. required this.onPressed,
  9. });
  10. @override
  11. Widget build(BuildContext context) {
  12. return GestureDetector(
  13. onTap: () {
  14. onPressed();
  15. },
  16. child: Container(
  17. padding: EdgeInsets.all(8),
  18. margin: EdgeInsets.symmetric(vertical: 4, horizontal: 8),
  19. decoration: BoxDecoration(
  20. borderRadius: BorderRadius.circular(10),
  21. border: Border.all(
  22. color: Colors.grey.shade200,
  23. width: 1,
  24. ),
  25. color: AppColors.primary1.withOpacity(0.3),
  26. ),
  27. child: Column(
  28. crossAxisAlignment: CrossAxisAlignment.start,
  29. children: [
  30. Text(
  31. 'Cà chua đợt 1 5/2023',
  32. style: StylesText.body1,
  33. ),
  34. const SizedBox(
  35. height: 8,
  36. ),
  37. Text(
  38. '06/05/2023 - 1500 tem - mới',
  39. style: StylesText.body6,
  40. ),
  41. ],
  42. ),
  43. ),
  44. );
  45. }
  46. }