easy_carousel 4.0.0
easy_carousel: ^4.0.0 copied to clipboard
EasyCarousel is a customizable and developer-friendly Flutter widget that helps you build beautiful carousels and onboarding screens with ease. It supports image sliders, animated page indicators, sty [...]
Changelog #
All notable changes to the easy_carousel package will be documented in this file.
0.0.2 #
Added #
- New Customization Parameters for
EasyCarousel:buttonColor: Allows customization of the navigation button's background color (defaults toColors.black).buttonTextColor: Sets the text color for the navigation button (defaults toColors.white).imageWidth: Specifies the image width as a fraction of the screen width (defaults to0.8).imageHeight: Sets the fixed height for carousel images (defaults to250.0).headlineFontSize: Customizes the font size for headline text (defaults to20.0).captionFontSize: Customizes the font size for caption text (defaults to14.0).headlineFontColor: Sets the color for headline text (defaults toColors.black).captionFontColor: Sets the color for caption text (defaults toColors.grey).imageSourceType: An enum (ImageSourceType.assetorImageSourceType.network) to specify whether images are loaded from assets or network URLs (defaults toImageSourceType.network).
- Text Color Parameter for
CarouselButton:- Added
textColorparameter to allow customization of the button's text color, complementing the existingbackgroundColorparameter (defaults toColors.white).
- Added
- Example Update:
- Updated the example in
main.dartto demonstrate the new customization options, including:- Custom button colors (
buttonColor,buttonTextColor). - Adjusted image sizes (
imageWidth,imageHeight). - Custom font sizes and colors for headlines and captions.
- Support for asset images with a fallback network image.
- Enhanced indicator styling and text styles using the 'Roboto' font family.
- Custom button colors (
- Updated the example in
Fixed #
- Corrected a parameter mismatch in
EasyCarouselwherecolorwas incorrectly passed toCarouselButton. Updated to usebackgroundColorto align withCarouselButton's parameter name, resolving the "undefined named parameter" error.
Changed #
- Enhanced the
_buildImagemethod inEasyCarouselto dynamically handle both asset and network images based on theimageSourceTypeparameter. - Updated the example to include a modern, visually appealing design with a blue-themed button and indicator, larger image sizes, and custom typography.
0.0.1 #
Added #
- Initial release of the
easy_carouselpackage. - Core
EasyCarouselwidget with support for:- Image carousel with
PageView.builder. - Customizable navigation button with
CarouselButton. - Indicator dots with
CarouselIndicator. - Headline and caption text with
CarouselText. - Configurable positions for navigation button and indicators (
CarouselPositionenum). - Auto-slide functionality with a 4-second interval.
- Customizable text styles, indicator colors, and sizes.
- Callback for carousel completion (
onCarouselComplete).
- Image carousel with
- Basic example demonstrating a simple carousel with network images, navigation button, and indicators.