mirrored_repositories/Flutter_Hacktoberfest_2021/tictac
import 'game.dart';
import 'package:flutter/material.dart';
class Home extends StatelessWidget {
  const Home({Key key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
          body: Container(
        color: Colors.orange,
        child: Column(
          mainAxisAlignment: MainAxisAlignment.spaceEvenly,
          crossAxisAlignment: CrossAxisAlignment.start,
          children: <Widget>[       
            CircleAvatar(
              radius: 200,
              child: Image.asset("assets/ultimate-tic-tac-toe.png")),
            Padding(
              padding: const EdgeInsets.symmetric(horizontal: 30.0),
              child: Column(
                // mainAxisAlignment: MainAxisAlignment.start,
                crossAxisAlignment: CrossAxisAlignment.start,
                children: <Widget>[
                  Text(
                    "Tic-Tac-Toe",
                    style: TextStyle(fontSize:45,color:Colors.white,fontFamily:"Product_Sans",fontWeight: FontWeight.bold),
                  ),
                  Text(
                    "Game for two players, X and O, who take turns marking the spaces in a 3×3 grid. ...",
                    style: TextStyle(fontSize:18,color:Colors.black,fontFamily:"Product_Sans"),
                  ),                                            
                ],
              ),
            ),
             GestureDetector(
                onTap: (){
                 Navigator.push(context, MaterialPageRoute(builder: (context) => TicGame()));
                },
                child: Center(
                 child: Container(
                              height: 45,
                              width: 160,
                              decoration: BoxDecoration(
                             
                                color: Colors.black,
                                borderRadius: BorderRadius.circular(20)
                              ),
                              child: Center(child: Text('Start Game',style:TextStyle(color: Colors.white,fontSize: 19)),                  
                              ),
                            ),
               ),
             ),
          ],
        ),
      ),
    );
  }
}