flutter_carousel_widget 3.1.0 copy "flutter_carousel_widget: ^3.1.0" to clipboard
flutter_carousel_widget: ^3.1.0 copied to clipboard

A customizable Flutter carousel widget with infinite scrolling, auto-scrolling, pre-built indicators, expandable widgets, auto-sized child support, and enlarged center page.

example/lib/main.dart

import 'package:flutter/material.dart';

import 'app_themes.dart';
import 'views/custom_indicator.dart';
import 'views/enlarge.dart';
import 'views/expandable.dart';
import 'views/fullscreen.dart';
import 'views/home.dart';
import 'views/indicator_halo.dart';
import 'views/manual.dart';
import 'views/multiple_items.dart';
import 'views/page_change_reason.dart';
import 'views/standard.dart';

void main() async {
  WidgetsFlutterBinding.ensureInitialized();
  runApp(const FlutterCarouselDemo());
}

class FlutterCarouselDemo extends StatelessWidget {
  const FlutterCarouselDemo({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      initialRoute: '/',
      routes: {
        '/': (ctx) => const CarouselDemoHome(),
        '/standard': (ctx) => const StandardCarouselDemo(),
        '/enlarge': (ctx) => const EnlargeStrategyCarouselDemo(),
        '/manual': (ctx) => const ManuallyControlledCarouselDemo(),
        '/fullscreen': (ctx) => const FullscreenCarouselDemo(),
        '/custom_indicator': (ctx) => const CustomIndicatorCarouselDemo(),
        '/indicator_halo': (ctx) => const HaloIndicatorCarouselDemo(),
        '/multiple_items': (ctx) => const MultipleItemsCarouselDemo(),
        '/expandable': (ctx) => const ExpandableCarouselDemo(),
        '/page_changed_reason': (ctx) => const PageChangedReasonCarouselDemo(),
      },
      theme: AppThemes.lightTheme,
      darkTheme: AppThemes.darkTheme,
      themeMode: ThemeMode.system,
    );
  }
}
188
likes
160
pub points
98%
popularity

Publisher

verified publishernixrajput.com

A customizable Flutter carousel widget with infinite scrolling, auto-scrolling, pre-built indicators, expandable widgets, auto-sized child support, and enlarged center page.

Homepage
Repository (GitHub)
View/report issues
Contributing

Topics

#carousel #flutter-carousel #flutter-carousel-widget #carousel-slider #carousel-widget

Documentation

API reference

Funding

Consider supporting this project:

ko-fi.com
www.buymeacoffee.com
github.com

License

MIT (license)

Dependencies

flutter

More

Packages that depend on flutter_carousel_widget