content: import 'package:flutter/material.dart';
  import 'package:page_transformer/data.dart';
  import 'package:page_transformer/intro_page_item.dart';
  import 'package:page_transformer/page_transformer.dart';
  
  class IntroPageView extends StatelessWidget {
    @override
    Widget build(BuildContext context) {
      return Scaffold(
        body: Center(
          child: SizedBox.fromSize(
            size: const Size.fromHeight(500.0),
            child: PageTransformer(
              pageViewBuilder: (context, visibilityResolver) {
                return PageView.builder(
                  controller: PageController(viewportFraction: 0.85),
                  itemCount: sampleItems.length,
                  itemBuilder: (context, index) {
                    final item = sampleItems[index];
                    final pageVisibility =
                        visibilityResolver.resolvePageVisibility(index);
  
                    return IntroPageItem(
                      item: item,
                      pageVisibility: pageVisibility,
                    );
                  },
                );
              },
            ),
          ),
        ),
      );
    }
  }
  