diff --git a/CHANGELOG.md b/CHANGELOG.md index 40e49a1..de60874 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -24,29 +24,29 @@ FlutterCarouselIntro( slides: [ SliderItem( title: 'Title 1', - subtitle: 'Lorem Ipsum is simply dummy text of the printing', + subtitle: const Text('Lorem Ipsum is simply dummy text'), widget: SvgPicture.asset("assets/slide-1.svg"), ), SliderItem( title: 'Title 2', - subtitle: 'Lorem Ipsum is simply dummy text of the printing', + subtitle: const Text('Lorem Ipsum is simply dummy text'), widget: SvgPicture.asset("assets/slide-2.svg"), ), SliderItem( title: 'Title 3', - subtitle: 'Lorem Ipsum is simply dummy text of the printing', + subtitle: const Text('Lorem Ipsum is simply dummy text'), widget: SvgPicture.asset("assets/slide-3.svg"), ), SliderItem( title: 'Title 4', - subtitle: 'Lorem Ipsum is simply dummy text of the printing', + subtitle: const Text('Lorem Ipsum is simply dummy text'), widget: SvgPicture.asset("assets/slide-4.svg"), ), SliderItem( title: 'Title 5', - subtitle: 'Lorem Ipsum is simply dummy text of the printing', + subtitle: const Text('Lorem Ipsum is simply dummy text'), widget: SvgPicture.asset("assets/slide-5.svg"), - subtitleTextStyle: Theme.of(context).textTheme.displaySmall, + displaySmall, ), ], ); diff --git a/README.md b/README.md index dea3fd1..daeb485 100644 --- a/README.md +++ b/README.md @@ -38,7 +38,7 @@ see in Flutter Gems: ## Installation -Add `flutter_carousel_intro: ^1.0.10` to your `pubspec.yaml` dependencies. And import it: +Add `flutter_carousel_intro: ^1.0.11` to your `pubspec.yaml` dependencies. And import it: ```dart import 'package:flutter_carousel_intro/flutter_carousel_intro.dart'; diff --git a/example/lib/main.dart b/example/lib/main.dart index 71ac296..48567b9 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -22,14 +22,9 @@ class MyApp extends StatelessWidget { } } -class MyHomePage extends StatefulWidget { +class MyHomePage extends StatelessWidget { const MyHomePage({super.key}); - @override - State createState() => _MyHomePageState(); -} - -class _MyHomePageState extends State { @override Widget build(BuildContext context) { return const Scaffold( @@ -53,8 +48,8 @@ class MySlideShow extends StatelessWidget { autoPlaySlideDurationTransition: const Duration(milliseconds: 1100), primaryColor: const Color(0xff6C63FF), secondaryColor: Colors.grey, - scrollDirection: Axis.horizontal, - indicatorAlign: IndicatorAlign.bottom, + scrollDirection: Axis.vertical, + // indicatorAlign: IndicatorAlign.bottom, indicatorEffect: IndicatorEffects.jumping, showIndicators: true, slides: [ diff --git a/example/pubspec.lock b/example/pubspec.lock index bc4548c..79cde20 100644 --- a/example/pubspec.lock +++ b/example/pubspec.lock @@ -68,7 +68,7 @@ packages: path: ".." relative: true source: path - version: "1.0.5" + version: "1.0.10" flutter_lints: dependency: "direct dev" description: diff --git a/pubspec.yaml b/pubspec.yaml index 19f8c80..31d2b97 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: flutter_carousel_intro description: The FlutterCarouselIntro is an amazing package that makes it easy to build and implement animated onboarding screens in Flutter applications. -version: 1.0.10 +version: 1.0.11 homepage: https://eliezer-antonio-9108b.web.app/ repository: https://github.com/eliezerantonio/flutter_carousel_intro