NBCard constructor

const NBCard({
  1. Key? key,
  2. String? bgImage,
  3. LinearGradient? gradient,
  4. String? mt,
  5. String? p,
  6. String? m,
  7. String? mb,
  8. String? mr,
  9. String? ml,
  10. String? mx,
  11. String? my,
  12. String? pt,
  13. String? pb,
  14. String? pl,
  15. String? pr,
  16. String? px,
  17. String? py,
  18. String? alignment,
  19. String? h,
  20. String? w,
  21. String? maxW,
  22. String? maxH,
  23. String? minH,
  24. String? minW,
  25. String? borderWidth,
  26. String? borderLeft,
  27. String? borderRight,
  28. String? borderTop,
  29. String? borderBottom,
  30. String? borderStyle,
  31. String? borderColor,
  32. String? borderRadius,
  33. String? borderBottomLeftRadius,
  34. String? borderBottomRightRadius,
  35. String? borderTopLeftRadius,
  36. String? borderTopRightRadius,
  37. String? borderLeftRadius,
  38. String? borderRightRadius,
  39. String? borderTopRadius,
  40. String? borderBottomRadius,
  41. String? color = 'white',
  42. String? shadow,
  43. Widget? child,
})

A Nativebase Design card: a panel with slightly rounded corners and an elevation shadow along with padding .

A card is a sheet of Box used to represent some related information, for example an album, a geographical location, a meal, contact details, etc.

Implementation

const NBCard({
  super.key,
  super.bgImage,
  super.gradient,
  super.mt,
  super.p,
  super.m,
  super.mb,
  super.mr,
  super.ml,
  super.mx,
  super.my,
  super.pt,
  super.pb,
  super.pl,
  super.pr,
  super.px,
  super.py,
  super.alignment,
  super.h,
  super.w,
  super.maxW,
  super.maxH,
  super.minH,
  super.minW,
  super.borderWidth,
  super.borderLeft,
  super.borderRight,
  super.borderTop,
  super.borderBottom,
  super.borderStyle,
  super.borderColor,
  super.borderRadius,
  super.borderBottomLeftRadius,
  super.borderBottomRightRadius,
  super.borderTopLeftRadius,
  super.borderTopRightRadius,
  super.borderLeftRadius,
  super.borderRightRadius,
  super.borderTopRadius,
  super.borderBottomRadius,
  super.color = 'white',
  super.shadow,
  super.child,
});