showIntroductionCarousel function
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,
})
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,
),
);
},
);
}