showIntroductionCarousel function

Future<void> showIntroductionCarousel({
  1. required BuildContext context,
  2. required List<String> images,
  3. required List<String> texts,
  4. required Color activeDotColor,
  5. required Color inactiveDotColor,
  6. required int itemCount,
  7. required bool isNetworkImage,
  8. String? confirmMessage,
  9. TextStyle? textStyle,
  10. EdgeInsets? imagePadding,
})

Implementation

Future<void> showIntroductionCarousel(
    {required BuildContext context,
    required List<String> images,
    required List<String> texts,
    required Color activeDotColor,
    required Color inactiveDotColor,
    required int itemCount,
    required bool isNetworkImage,
    String? confirmMessage,
    TextStyle? textStyle,
    EdgeInsets? imagePadding}) async {
  showDialog(
    context: context,
    builder: (BuildContext context) {
      return Dialog(
        shape: RoundedRectangleBorder(
          borderRadius: BorderRadius.circular(30),
        ),
        child: IntroductionScreen(
          texts: texts,
          itemCount: 5,
          activeDotColor: activeDotColor,
          inactiveDotColor: inactiveDotColor,
          images: images,
          confirmMessage: 'Got it!',
          isNetworkImage: false,
        ),
      );
    },
  );
}