Orientação gerada a partir de informações públicas. Apenas para referência.
Um widget Flutter que cria um carrossel com estilo fantasia para exibir imagens online e locais. Projetado com um efeito dinâmico visualmente envolvente, melhora a apresentação de imagens em aplicativos que exigem navegação visual imersiva. Ideal para galerias, exposições de produtos ou interfaces com muitos recursos multimídia. O carrossel suporta transições suaves e é otimizado para múltiplas plataformas, incluindo Android, iOS, macOS, Windows e Linux.
Casos de uso
Galerias de imagens
Product展示
Navegação de mídia
Interfaces de usuário interativas
Revistas digitais
Principais recursos
Efeito de carrossel fantasia
Suporta imagens online e locais
Animações suaves
Compatibilidade multiplataforma
Aparência personalizável
Indicado para
aplicativos de contação de histórias visuais
Interfaces de comércio eletrônico
Plataformas de compartilhamento de fotos
Portfólios criativos
Projetos de design com foco em dispositivos móveis
Considerações
Limitado apenas à exibição de imagem
Sem controles de paginação embutidos
Requer manipulação manual do carregamento de imagem
Não adequado para conteúdo não gráfico
O desempenho pode variar com grandes conjuntos de imagens
README original
Snapshot do README original do repositório-fonte vinculado. Consulte o repositório para o conteúdo mais recente.
A fantasy carousel slider widget; only for displaying online and local images. You can use it with two different types accessible with two named constructors:
Type 1 Demo:
Type 2 Demo:
Installation
In the pubspec.yaml of your flutter project, add the following dependency:
Customize the FanCarouselImageSlider widget with these parameters:
/// List of images to be shown in the slider; Accepts two types of link./// For example: `https://...jpg` for online images and `assets/...` for local images.finalList<String> imagesLink;
/// Specifies the type of image addresses in [imagesLink]./// Must be `false` if [imagesLink] contains online images./// Must be `true` if [imagesLink] contains local images.finalbool isAssets;
/// The initial page to show when first creating the [FanCarouselImageSlider]./// Defaults to 1.finalint initalPageIndex;
/// Set as the image slider height./// Defaults to 500.finaldouble sliderHeight;
/// Set as the image slider width./// Defaults to double.infinity.finaldouble sliderWidth;
/// The corners of images will round according to this value./// Defaults to 40.finaldouble imageRadius;
/// Determines the relative rotation of the sides images./// Used only for [ImageSliderType.imageSliderType1]/// Defaults to 250.finaldouble turns;
/// Determines the opacity of the sides images./// Defaults to 0.8.finaldouble sidesOpacity;
/// Determines the value of the [fit] property of the images/// Defaults to BoxFit.cover.finalBoxFit imageFitMode;
/// The fraction of the viewport that each page should occupy./// Defaults to 0.7.finaldouble slideViewportFraction;
/// This Duration type value, use for all animations in [FanCarouselImageSlider]./// Defaults to Duration(milliseconds: 600).finalDuration sliderDuration;
/// Determines the visibility of the indicators below slider./// Used only for [ImageSliderType.imageSliderType1]/// Defaults to truefinalbool showIndicator;
/// Determines the visibility of the arrows below slider./// Used only for [ImageSliderType.imageSliderType1]/// Defaults to false.finalbool showArrowNav;
/// Determines the color of the active indicator below slider./// Defaults to Colors.pink.finalColor indicatorActiveColor;
/// Determines the color of the border of the deactive indicators below slider./// Defaults to Colors.grey.finalColor indicatorDeactiveColor;
/// Enables auto play, sliding one page at a time./// Use [autoPlayInterval] to set the timer interval./// Defaults to truefinalbool autoPlay;
/// Determines the slider autoplay timer interval;/// when [autoPlay] is set to true./// Defaults to Duration(milliseconds: 3000).finalDuration autoPlayInterval;
/// Determines whether the user can change slides by dragging or not./// Defaults to true.finalbool userCanDrag;
/// Determines box shadow of current (center) image./// Defaults to custom BoxShadwo list.finalList<BoxShadow>? currentItemShadow;
/// Determines box shadow of sides image./// Defaults to null.finalList<BoxShadow>? sideItemsShadow;
/// Determines whether the image should be clickable or not./// Defaults to truefinalbool isClickable;
/// Set as the width of the expanded image./// Defaults to MediaQuery.of(context).size.width * 0.9)finaldouble? expandImageWidth;
/// Set as the height of the expanded image./// Defaults to MediaQuery.of(context).size.height * 0.8finaldouble? expandImageHeight;
/// Determines the value of the [fit] property of the expanded image/// Defaults to BoxFit.cover.finalBoxFit expandedImageFitMode;
/// Determines the alignment of the close button for the expanded image/// Defaults to Alignment.bottomLeftfinalAlignmentGeometry expandedCloseBtnAlign;
/// Defines a widget for the close button of the expanded image./// It can be null and the default close button will be shown.finalWidget? expandedCloseBtn;
/// Determines the widget in the default close button container/// Defaults to arrow_back_ios_rounded iconfinalWidget expandedCloseChild;
/// Determines the style of the expanded image's close button container./// It can be null then the default style will be applied.finalBoxDecoration? expandedCloseBtnDecoration;
/// Determines the expand tapped image mode to be zoomable and display image in the original size/// Default to falsefinalbool expandFitAndZoomable;
/// Determines where the indicators should display, On the slider or below it/// Default to bottom of sliderfinalbool displayIndicatorOnSlider;