0 purchases
color interpolate
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
copied to clipboard
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],
));
copied to clipboard
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
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.