color_interpolate 0.0.8 copy "color_interpolate: ^0.0.8" to clipboard
color_interpolate: ^0.0.8 copied to clipboard

A new Flutter package with color trasition background

Color Interpolate #

Color Interpolate is a Flutter package for transitioning between PageView pages with color interpolation

Installation #

Add the package to your pubspec.yaml file as shown bellow

dependencies:
  flutter:
    sdk: flutter
  color_interpolate: 0.0.6

Usage #

You need to provide the ColorInterpolate widget a list of widgets, the respective colors you want to interpolate, and a PageController so that you can manipulate the PageView.

import color_interpolate;

ColorInterpolate(
      controller: _controller,
      listOfWidgets: [
        Center(child: Text('1')),
        Center(child: Text('2')),
        Center(child: Text('3')),
        Center(child: Text('4')),
        Center(child: Text('5')),
      ],
      Colors: [0xFFFEB5E9, 0xFFCEE59B, 0xFFFAED7B, 0XFF9BE1E5, 0xFFE59B9B],
    ));

Contributing #

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License #

MIT

5
likes
130
points
45
downloads

Publisher

unverified uploader

Weekly Downloads

A new Flutter package with color trasition background

Repository (GitHub)

Documentation

API reference

License

unknown (license)

Dependencies

flutter

More

Packages that depend on color_interpolate