import 'package:flutter/material.dart';
import 'package:go_router/go_router.dart';
import 'package:{{#snakeCase}}{{project_name}}{{/snakeCase}}/core/design_system/sizing.dart';
import 'package:{{#snakeCase}}{{project_name}}{{/snakeCase}}/core/extensions/build_context_extension.dart';
import 'package:{{#snakeCase}}{{project_name}}{{/snakeCase}}/core/extensions/num_extension.dart';
import 'package:{{#snakeCase}}{{project_name}}{{/snakeCase}}/gen/assets.gen.dart';
import 'package:{{#snakeCase}}{{project_name}}{{/snakeCase}}/presentation/features/counter/counter_page.dart';
import 'package:{{#snakeCase}}{{project_name}}{{/snakeCase}}/presentation/shared/layouts/app_default_scaffold.dart';

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

  static const String pageName = 'initial';

  @override
  Widget build(BuildContext context) => AppDefaultScaffold(
        title: const Text('{{#titleCase}}{{project_name}}{{/titleCase}}'),
        body: Center(
          child: Column(
            mainAxisAlignment: MainAxisAlignment.center,
            children: [
              Assets.images.wyattStudioLogo.image(width: 150.w),
              AppSizing.lGap,
              ElevatedButton(
                child: Text(context.l10n.goToCounter),
                onPressed: () => context.pushNamed(CounterPage.pageName),
              ),
            ],
          ),
        ),
      );
}
