mirrored_repositories/GhostRigger/ghost_rigger/lib
import 'package:flutter/material.dart';
import '../animation/console_animation.dart';

class CreditScreen extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Column(
      mainAxisAlignment: MainAxisAlignment.start,
      crossAxisAlignment: CrossAxisAlignment.start,
      children: <Widget>[
        Flexible(
          flex: 1,
          child: FlatButton(
            padding: EdgeInsets.all(20.0),
            onPressed: () {
              Navigator.pop(context);
            },
            child: Image.asset(
              'assets/images/intro_icon_exit.png',
              height: 50,
              fit: BoxFit.contain,
            ),
          ),
        ),
        Flexible(
          flex: 5,
          child: SingleChildScrollView(
            reverse: true,
            child: ConsoleAnimatedTextKit(
                onTap: () {
                  print("Tap Event");
                },
                text: [
                  "Thanks for playing our game prototype until the end.\n\n",
                  "If you liked it, please give us your vote!\n\n",
                  "### Development ###\n\n",
                  "Iain Smith @b099l3 \n\n",
                  "Julio Ernesto Rodríguez Cabañas @ernestoyaquello\n\n",
                  "### Design ###\n\n",
                  "Richard Kinsella @RKTypeDesign\n\n",
                  "\n\n",
                  "### Music ###\n\n",
                  "Ryan Andersen - Synthwave\n\n",
                  "Bensound - SciFi\n\n",
                  "Bensound - Evolution\n\n",
                ],
                textStyle: TextStyle(
                    fontSize: 20.0,
                    fontFamily: "JetBrainsMono",
                    color: Colors.cyanAccent),
                textAlign: TextAlign.start,
                alignment: AlignmentDirectional.topStart // or Alignment.topLeft
                ),
          ),
        ),
      ],
    );
  }
}
