loadIntroductionPages method

Future<void> loadIntroductionPages(
  1. BuildContext context
)

Implementation

Future<void> loadIntroductionPages(
  BuildContext context,
) async {
  for (var page in _pages) {
    if (context.mounted && page.backgroundImage != null) {
      await precacheImage(
        CachedNetworkImageProvider(page.backgroundImage!),
        context,
      );
    }
    if (context.mounted && page.contentImage != null) {
      await precacheImage(
        CachedNetworkImageProvider(page.contentImage!),
        context,
      );
    }
  }
}