Skip to content

Instantly share code, notes, and snippets.

@SidneyMachara
Last active December 13, 2019 08:51
Show Gist options
  • Save SidneyMachara/a5e0d96a1b53e9be49f773c4ce038d64 to your computer and use it in GitHub Desktop.
Save SidneyMachara/a5e0d96a1b53e9be49f773c4ce038d64 to your computer and use it in GitHub Desktop.
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