main function

void main()

Implementation

void main() {
  /*routes = {
    "/":(context) => LibraryStatefulWidget(title: 'AAAAA',),
    "/SecondRoute":(context) => SecondRoute(),
  };*/

  // runApp(const LibraryApp());
  runApp(
    MaterialApp(
      title: 'Named Routes Demo',
      // Start the app with the "/" named route. In this case, the app starts
      // on the FirstScreen widget.
      // initialRoute: '/FourthStatefulWidget',
      routes: {
        // When navigating to the "/" route, build the FirstScreen widget.
        // '/': (context) => const LibraryApp(),
        '/': (context) => const LibraryStatefulWidget(
              title: 'First',
            ),
        // When navigating to the "/second" route, build the SecondScreen widget.
        // '/SecondRoute': (context) => const SecondRoute(),
        // 'ThirdStatefulWidget': (context) => const ThirdApp(),
        'ThirdStatefulWidget': (context) =>
            const ThirdStatefulWidget(title: "Third"),
        'FourthStatefulWidget': (context) =>
            const FourthStatefulWidget(title: "Fourth"),
      },
    ),
  );
}