Skip to content

Commit

Permalink
footer on start screen
Browse files Browse the repository at this point in the history
  • Loading branch information
PyFlat-JR committed Aug 14, 2024
1 parent 90171e3 commit cb05a37
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 31 deletions.
2 changes: 1 addition & 1 deletion lib/screens/game_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@ class MastermindGameState extends State<MastermindGame> {
"Copy Last Row",
),
icon: const Icon(
Icons.copy,
Icons.copy_rounded,
),
),
ElevatedButton.icon(
Expand Down
70 changes: 40 additions & 30 deletions lib/screens/start_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,37 +8,47 @@ class StartScreen extends StatelessWidget {
@override
Widget build(BuildContext context) {
return const Scaffold(
body: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
Text(
'Welcome to Mastermind!',
style: TextStyle(
fontSize: 28,
fontWeight: FontWeight.w600,
color: Colors.white,
),
body: Column(
children: [
Spacer(),
Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
Text(
'Welcome to Mastermind!',
style: TextStyle(
fontSize: 28,
fontWeight: FontWeight.w600,
color: Colors.white,
),
),
SizedBox(height: 25),
Text(
'Select game mode',
style: TextStyle(fontSize: 20, fontWeight: FontWeight.w500),
),
SizedBox(height: 20),
GameModeButton(
icon: Icons.person,
label: 'Random Color',
isSinglePlayer: true,
),
SizedBox(height: 20),
GameModeButton(
icon: Icons.group,
label: 'Custom Color',
isSinglePlayer: false,
),
],
),
SizedBox(height: 25),
Text(
'Select game mode',
style: TextStyle(fontSize: 20, fontWeight: FontWeight.w500),
),
SizedBox(height: 20),
GameModeButton(
icon: Icons.person,
label: 'Random Color',
isSinglePlayer: true,
),
SizedBox(height: 20),
GameModeButton(
icon: Icons.group,
label: 'Custom Color',
isSinglePlayer: false,
),
],
),
),
Spacer(),
Text("© 2024 PyFlat - v1.0.0"),
SizedBox(
height: 10,
)
],
),
);
}
Expand Down

0 comments on commit cb05a37

Please sign in to comment.