Skip to content

AKrotchko/carousel_navigator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CarouselNavigator

An attempt to make the spotlight_carousel written by dnys1 - Dillon Nys more flexible and responsive.

Using the Carousel

Simply call the SpotlightCarousel build method, and enter the required parameters.

class MyCarousel extends StatelessWidget {
  MyCarousel({this.children});
  
  @override
  Widget build(BuildContext context) {
    return SpotlightCarousel(
      children: children,
      titles: null,
      descriptions: null,
      onTapped: null,
    );
  }
}

Simply include 2 or more children for the Carousel. You may surround this with a container in order to limit the height or width.