2021/2/26 Flutter : PageViewウィジェットについて

 

import 'package:flutter/material.dart';

void main(){
  runApp(MaterialApp(home:MyApp()));
}

class MyApp extends StatefulWidget {
  @override
  _MyAppState createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {

  final PageController _pageCtr=PageController();

  @override
  void initState(){
    super.initState();
  }

  @override
     void dispose() {
       _pageCtr.dispose();
       super.dispose();
     }

  @override
  Widget