Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Column(
- children: [
- ListView.separated(
- scrollDirection: Axis.horizontal,
- shrinkWrap: true,
- physics: const NeverScrollableScrollPhysics(),
- itemCount: data.length,
- separatorBuilder: (BuildContext context, int index) {
- return Padding(
- padding: const EdgeInsets.symmetric(horizontal: 8.0),
- child: OptimizedSvgIcon(
- iconPath: "assets/icon.svg.vec",
- color: Colors.black,
- size: itemSize,
- ), // OptimizedSvgIcon
- ); // Padding
- },
- itemBuilder: (BuildContext context, int index) {
- return Text(
- data[index].itemName,
- style: TextStyle(
- fontSize: itemSize,
- fontWeight: FontWeight.w500,
- color: data[index].color
- ), // TextStyle
- ); // Text
- }
- ), // ListView.separated
- Text(itemTitle)
- ],
- ), // Column
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement