scaled_list 1.0.0+2 copy "scaled_list: ^1.0.0+2" to clipboard
scaled_list: ^1.0.0+2 copied to clipboard

outdated

A Horizontal List view With Lots of modification including the a scaled current item, curved custom painting and a dots indictor below it. it makes the widget of item builder responsive to the device [...]

Effective Dart Badge MIT License Badge

Scaled List #

A Horizontal List view With Lots of modification including a scaled current item.

  • Provided with curved custom painting and Dots indictor below it.
  • it makes the widget of item builder responsive to the device screen's width and height.
  • You can also set the relative width , margin width , height of selected and unselected Card to the entire screen

Image Image Image

Usage #

  @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),
              )
            ],
          );
        },
      ),
    );
  }

Usage Scenarios #

  • When You like to add items in scaled manner and add custom curved painting over each item.

Contributers #

Hosain Mohamed Muhammad Alsaied

132
likes
0
pub points
86%
popularity

Publisher

unverified uploader

A Horizontal List view With Lots of modification including the a scaled current item, curved custom painting and a dots indictor below it. it makes the widget of item builder responsive to the device screen's width and height, You can also set the relative width, margin width, height of selected and unselected Card to the entire screen.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on scaled_list