Hi guys, I am a flutter developer and in this lecture I will show you how to use GetX package for creating a PageView inside Flutter!

first of all we create a new flutter project with this command:

flutter create pageView

then we run our project on an emulator and see this page

Image for post
Image for post

firstly I will create it with flutter StatefulWidget to see how to create PageView in flutter then I will convert this StatefulWidget to a StatelessWidget and handle state with flutter GetX package.

now let’s go!

first of all we define tow variable:

int page = 0; PageController…


hi I am flutter developer and excited on learning new topics

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store