0
  LearnLevelButton(
      color: FavoriteButtons[0] ? Colors.orange : Color(0xff7ba6f9),
      text: '1-1',
      onTap: () async {
        await Navigator.pushReplacement(context, MaterialPageRoute(builder: (context) => Video0_01(

        ),));
      }

In the code above, I want to move to a specific page of the video file consisting of pageview. If there is an indexer from Video0_01[0 to 30], when the button is pressed, I want to go directly to the page with a specific number such as Video0_01[2] or Video0_01[30]. Is there a way?

Mark Rotteveel
  • 100,966
  • 191
  • 140
  • 197
eno2
  • 73
  • 11

1 Answers1

0

You should add an argument to your screen with PageView. When you navigate to a screen with video, use PageController to set initial page.

fartem
  • 2,361
  • 2
  • 8
  • 20