Advertisement
Guest User

Untitled

a guest
May 10th, 2024
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Column(
  2.     children: [
  3.         ListView.separated(
  4.             scrollDirection: Axis.horizontal,
  5.             shrinkWrap: true,
  6.             physics: const NeverScrollableScrollPhysics(),
  7.             itemCount: data.length,
  8.             separatorBuilder: (BuildContext context, int index) {
  9.                 return Padding(
  10.                     padding: const EdgeInsets.symmetric(horizontal: 8.0),
  11.                     child: OptimizedSvgIcon(
  12.                         iconPath: "assets/icon.svg.vec",
  13.                         color: Colors.black,
  14.                         size: itemSize,
  15.                     ), // OptimizedSvgIcon
  16.                 ); // Padding
  17.             },
  18.             itemBuilder: (BuildContext context, int index) {
  19.                 return Text(
  20.                     data[index].itemName,
  21.                     style: TextStyle(
  22.                         fontSize: itemSize,
  23.                         fontWeight: FontWeight.w500,
  24.                         color: data[index].color
  25.                     ), // TextStyle
  26.                 ); // Text
  27.             }
  28.         ), // ListView.separated
  29.         Text(itemTitle)
  30.     ],
  31. ), // Column
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement