Conezi / animated_item

A Flutter plugin that animates ListView and PageView item on scroll.
MIT License
5 stars 2 forks source link

The first and second items in PageView has uncorrect size #1

Open RNOVOSELOV opened 10 months ago

RNOVOSELOV commented 10 months ago

@Conezi hi, thks for your job!

I use your Animatedpage in Dialog and found these: The first and second items in PageView has uncorrect size Could you help me?

return GestureDetector( onTap: () { showDialog( useSafeArea: true, barrierDismissible: true, context: context, builder: (context) { PageController controller = PageController(viewportFraction: 0.7, initialPage: 4); return Padding( padding: const EdgeInsets.only(top: 160, bottom: 141), child: PageView.builder( itemCount: 23, controller: controller, itemBuilder: (context, index) { return AnimatedPage( controller: controller, index: index, effect: ScaleEffect(), child: Card(child: Container(color: Colors.white)), ); }, ), ); }, ); },

Untitled Project

RNOVOSELOV commented 10 months ago

The code above is not formatted, attach it here as a picture

Снимок экрана 2024-02-03 005100