diff --git a/lib/Layouts/Pages/page_settings.dart b/lib/Layouts/Pages/page_settings.dart index bea42bd..8af0bda 100644 --- a/lib/Layouts/Pages/page_settings.dart +++ b/lib/Layouts/Pages/page_settings.dart @@ -32,10 +32,10 @@ class _SettingsState extends State { ), ),), Expanded( - flex: 4, + flex: 6, child: Container( width: MediaQuery.of(context).size.width * 0.78, - height: MediaQuery.of(context).size.height * 0.3, + height: MediaQuery.of(context).size.height * 0.4, margin: EdgeInsets.symmetric(horizontal: 16), padding: EdgeInsets.only(top: 10), decoration: BoxDecoration( @@ -47,9 +47,7 @@ class _SettingsState extends State { child: Column( children: [ Text("Setting",style: TextStyle(fontSize: 35,fontFamily: "Magic4")), - SizedBox(height: 40,), - Center(child: Text("Characters",style: TextStyle(fontSize: 20,fontFamily: "Magic4")),), - SizedBox(height: 10,), + Center(child: Container(margin: EdgeInsets.only(bottom: 10,top: 30),child: Text("Characters",style: TextStyle(fontSize: 20,fontFamily: "Magic4"))),), Row( mainAxisAlignment: MainAxisAlignment.spaceEvenly, children: [ @@ -58,8 +56,7 @@ class _SettingsState extends State { GestureDetector(onTap: (){bird = "assets/pics/greenBird.png";},child: Container(width: 75,height: 75,child: Image.asset("assets/pics/greenBird.png",fit: BoxFit.cover,))), ], ), - Center(child: Text("Themes",style: TextStyle(fontSize: 20,fontFamily: "Magic4")),), - SizedBox(height: 20,), + Center(child: Container(margin: EdgeInsets.symmetric(vertical: 10),child: Text("Themes",style: TextStyle(fontSize: 20,fontFamily: "Magic4"))),), Row( mainAxisAlignment: MainAxisAlignment.spaceEvenly, children: [ @@ -83,9 +80,7 @@ class _SettingsState extends State { },child: Image.asset("assets/pics/2.png",width: 63,height: 66,)), ], ), - SizedBox(height: 20,), - Center(child: Text("Music",style: TextStyle(fontSize: 20,fontFamily: "Magic4")),), - SizedBox(height: 20,), + Center(child: Container(margin: EdgeInsets.only(bottom: 10,top: 20),child: Text("Music",style: TextStyle(fontSize: 20,fontFamily: "Magic4"))),), Row( mainAxisAlignment: MainAxisAlignment.spaceEvenly, children: [ @@ -97,7 +92,30 @@ class _SettingsState extends State { },child: Icon(Icons.music_off_rounded,size: 40)), ], ), - SizedBox(height: 40,), + Center(child: Container(margin: EdgeInsets.only(top: 20,bottom: 10),child: Text("Difficulty",style: TextStyle(fontSize: 20,fontFamily: "Magic4"))),), + Row( + mainAxisAlignment: MainAxisAlignment.spaceEvenly, + children: [ + ElevatedButton(onPressed: (){ + // TODO: Edit here + }, + style: ElevatedButton.styleFrom( + primary: Colors.green.shade300, + ), child: Text("Easy",style: TextStyle(fontSize: 20,fontFamily: "Magic4")),), + ElevatedButton(onPressed: (){ + // TODO: Edit here + },style: ElevatedButton.styleFrom( + primary: Colors.yellow.shade700, + ), child: Text("Medium",style: TextStyle(fontSize: 20,fontFamily: "Magic4")),), + ElevatedButton(onPressed: (){ + // TODO: Edit here + }, + style: ElevatedButton.styleFrom( + primary: Colors.red.shade300, + ), child: Text("Hard",style: TextStyle(fontSize: 20,fontFamily: "Magic4")),), + ], + ), + SizedBox(height: 20,), ElevatedButton( style: ElevatedButton.styleFrom( primary: Colors.cyan.shade300, diff --git a/lib/Layouts/Pages/page_start_screen.dart b/lib/Layouts/Pages/page_start_screen.dart index abe9e46..0f22285 100644 --- a/lib/Layouts/Pages/page_start_screen.dart +++ b/lib/Layouts/Pages/page_start_screen.dart @@ -4,7 +4,6 @@ import 'package:flappy_bird/Layouts/Pages/page_share_app.dart'; import 'package:flappy_bird/Layouts/Widgets/widget_alert.dart'; import 'package:flappy_bird/Layouts/Widgets/widget_bird.dart'; import 'package:flutter/material.dart'; -import '../../Database/database.dart'; import '../Widgets/widget_Button.dart'; class StartScreen extends StatefulWidget {