Advertisement
muhaiminurabir

card flutter

Apr 28th, 2025
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Dart 3.09 KB | None | 0 0
  1. Card(
  2.                             color: ProjectColors.gray8,
  3.                             shape: RoundedRectangleBorder(
  4.                               borderRadius: BorderRadius.all(
  5.                                 Radius.circular(10),
  6.                               ),
  7.                             ),
  8.                             child: Padding(
  9.                               padding: EdgeInsets.all(5),
  10.                               child: Row(
  11.                                 mainAxisAlignment: MainAxisAlignment.center,
  12.                                 children: [
  13.                                   Text(
  14.                                     context
  15.                                         .read<FarmProvider>()
  16.                                         .activeFarms!
  17.                                         .orders!
  18.                                         .data![position]
  19.                                         .attributes
  20.                                         ?.totalReturn ??
  21.                                         "",
  22.                                     style: GoogleFonts.poppins(
  23.                                       fontSize: 8.0,
  24.                                       fontWeight: FontWeight.w400,
  25.                                       color: ProjectColors.black,
  26.                                     ),
  27.                                     maxLines: 1,
  28.                                     overflow: TextOverflow.ellipsis,
  29.                                   ),
  30.                                   Padding(
  31.                                     padding: EdgeInsets.fromLTRB(5, 0, 5, 0),
  32.                                     child: SizedBox(
  33.                                       height: 7,
  34.                                       child: Container(
  35.                                         width: 1,
  36.                                         height: 5,
  37.                                         color: Color(0xFFD1D1D1),
  38.                                       ),
  39.                                     ),
  40.                                   ),
  41.                                   Text(
  42.                                     context
  43.                                         .read<FarmProvider>()
  44.                                         .activeFarms!
  45.                                         .orders!
  46.                                         .data![position]
  47.                                         .attributes
  48.                                         ?.farm
  49.                                         ?.duration ??
  50.                                         "",
  51.                                     style: GoogleFonts.poppins(
  52.                                       fontSize: 8.0,
  53.                                       fontWeight: FontWeight.w400,
  54.                                       color: ProjectColors.black,
  55.                                     ),
  56.                                     maxLines: 1,
  57.                                     overflow: TextOverflow.ellipsis,
  58.                                   ),
  59.                                 ],
  60.                               ),
  61.                             ),
  62.                           )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement