File tree Expand file tree Collapse file tree 1 file changed +16
-11
lines changed Expand file tree Collapse file tree 1 file changed +16
-11
lines changed Original file line number Diff line number Diff line change @@ -603,6 +603,16 @@ class IntroductionScreenState extends State<IntroductionScreen> {
603603 );
604604 }
605605
606+ final pages = widget.pages
607+ ? .mapIndexed ((index, page) => IntroPage (
608+ page: page,
609+ scrollController: CustomList (
610+ widget.scrollControllers,
611+ )? .elementAtOrNull (index),
612+ ))
613+ .toList () ??
614+ widget.rawPages! ;
615+
606616 return SafeArea (
607617 left: widget.safeAreaList[0 ],
608618 right: widget.safeAreaList[1 ],
@@ -631,17 +641,12 @@ class IntroductionScreenState extends State<IntroductionScreen> {
631641 : ! widget.canProgress (getCurrentPage ())
632642 ? const NeverScrollableScrollPhysics ()
633643 : widget.scrollPhysics,
634- children: widget.pages
635- ? .mapIndexed (
636- (index, page) => IntroPage (
637- page: page,
638- scrollController: CustomList (
639- widget.scrollControllers,
640- )? .elementAtOrNull (index),
641- ),
642- )
643- .toList () ??
644- widget.rawPages! ,
644+ children: pages
645+ .map ((page) => NotificationListener (
646+ onNotification: (_) => true ,
647+ child: page,
648+ ))
649+ .toList (),
645650 ),
646651 ),
647652 ),
You can’t perform that action at this time.
0 commit comments