v2.0.0scaled_list
A Horizontal List view With Lots of modification including a scaled current item and curved custom painting.
140Likes 11030-day downloads150Pub points
AndroidiOSWebmacOSWindowsLinux
A Horizontal List view With Lots of modification including a scaled current item , curved custom painting and a dots indictor below it.
{"sdk":"flutter"}{"sdk":"flutter"}English project snapshot. Visit GitHub for the latest content.
Effective Dart Badge MIT License Badge
A Horizontal List view With Lots of modification including a scaled current item.
Image Image Image
@override
Widget build(BuildContext context) {
return Scaffold(
body: ScaledList(
itemCount: Data.categories.length,
itemColor: (index) {
return kMixedColors[index % kMixedColors.length];
},
itemBuilder: (index, selectedIndex) {
final category = Data.categories[index];
return Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Container(
height: selectedIndex == index
? 100
: 80,
child: Image.asset(category.image),
),
SizedBox(height: 15),
Text(
category.name,
style: TextStyle(
color: Colors.white,
fontSize: selectedIndex == index
? 25
: 20),
)
],
);
},
),
);
}