Last active
December 13, 2019 08:51
-
-
Save SidneyMachara/a5e0d96a1b53e9be49f773c4ce038d64 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
import 'package:easy_tic_tac_toe/pages/game_page.dart'; | |
class WelcomePage extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return Material( | |
child: Column( | |
mainAxisAlignment: MainAxisAlignment.center, | |
children: <Widget>[ | |
Text( | |
"Hi, tell me bout yourself ", | |
style: TextStyle(fontWeight: FontWeight.bold, fontSize: 20.0), | |
), | |
SizedBox( | |
height: 20.0, | |
), | |
Row( | |
mainAxisAlignment: MainAxisAlignment.center, | |
children: <Widget>[ | |
Column( | |
children: <Widget>[ | |
RaisedButton(child: Text("I'm a Loner"), onPressed: () { | |
}), | |
Text(""), | |
], | |
), | |
SizedBox(width: 10.0,), | |
Column( | |
children: <Widget>[ | |
RaisedButton( | |
child: Text("I have a friend"), onPressed: () { | |
Navigator.push( | |
context, | |
MaterialPageRoute(builder: (context) => GamePage()), | |
); | |
}), | |
Text( | |
"imaginary friends don't count!", | |
style: TextStyle(fontSize: 10.0), | |
), | |
], | |
) | |
], | |
) | |
], | |
), | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment