mirrored_repositories/Flutter_playground/packages/getx_examples/lib/src/pages
import 'package:flutter/material.dart';
import 'package:flutter/widgets.dart';
import 'package:get/get.dart';
import 'package:getx_examples/src/pages/normal/second_page.dart';

class FirstPage extends StatelessWidget {
  const FirstPage({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text('First Page'),
      ),
      body: Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: [
            ElevatedButton(
              child: const Text('Go Second Page'),
              onPressed: () {
                Get.to(SecondPage());
              },
            ),
          ],
        ),
      ),
    );
  }
}
