mirrored_repositories/flutter_composition
import 'package:flutter/material.dart';

import 'pages/base/base.dart';
import 'pages/base/implementation/child_class.dart';
import 'pages/base/implementation/parent_class.dart';
import 'pages/counter/counter_child_page.dart';
import 'pages/counter/counter_page.dart';
import 'pages/counter/counter_parent_page.dart';
import 'pages/default_page.dart';

class SelectPages extends StatelessWidget {
  const SelectPages({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text('Select Pages'),
      ),
      body: Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: [
            ElevatedButton(
              onPressed: () {
                Navigator.push(
                  context,
                  MaterialPageRoute(
                    builder: (context) => const DefaultPage(),
                  ),
                );
              },
              child: const Text('Default'),
            ),
            const SizedBox(height: 16),
            ElevatedButton(
              onPressed: () {
                Navigator.push(
                  context,
                  MaterialPageRoute(
                    builder: (context) => const CounterParentPage(),
                  ),
                );
              },
              child: const Text('Parent'),
            ),
            const SizedBox(height: 16),
            ElevatedButton(
              onPressed: () {
                Navigator.push(
                  context,
                  MaterialPageRoute(
                    builder: (context) => const CounterChildPage(),
                  ),
                );
              },
              child: const Text('Child'),
            ),
            const SizedBox(height: 16),
            ElevatedButton(
              onPressed: () {
                Navigator.push(
                  context,
                  MaterialPageRoute(
                    builder: (context) => const WidgetFoo(),
                  ),
                );
              },
              child: const Text('Base'),
            ),
            const SizedBox(height: 16),
            ElevatedButton(
              onPressed: () {
                Navigator.push(
                  context,
                  MaterialPageRoute(
                    builder: (context) => const ParentClass(),
                  ),
                );
              },
              child: const Text('Parent Class'),
            ),
            const SizedBox(height: 16),
            ElevatedButton(
              onPressed: () {
                Navigator.push(
                  context,
                  MaterialPageRoute(
                    builder: (context) => const ChildClass(),
                  ),
                );
              },
              child: const Text('Child Class'),
            ),
            const SizedBox(height: 16),
            ElevatedButton(
              onPressed: () {
                Navigator.push(
                  context,
                  MaterialPageRoute(
                    builder: (context) => const CounterPage(),
                  ),
                );
              },
              child: const Text('Counter Page'),
            ),
          ],
        ),
      ),
    );
  }
}
