diff --git a/android/app/src/debug/gen/com/example/Hack20_FuryUnd3rdogs/Manifest.java b/android/app/src/debug/gen/com/example/Hack20_FuryUnd3rdogs/Manifest.java new file mode 100644 index 0000000..802bb4b --- /dev/null +++ b/android/app/src/debug/gen/com/example/Hack20_FuryUnd3rdogs/Manifest.java @@ -0,0 +1,7 @@ +/*___Generated_by_IDEA___*/ + +package com.example.Hack20_FuryUnd3rdogs; + +/* This stub is only used by the IDE. It is NOT the Manifest class actually packed into the APK */ +public final class Manifest { +} \ No newline at end of file diff --git a/android/app/src/debug/gen/com/example/Hack20_FuryUnd3rdogs/R.java b/android/app/src/debug/gen/com/example/Hack20_FuryUnd3rdogs/R.java new file mode 100644 index 0000000..2d0bcef --- /dev/null +++ b/android/app/src/debug/gen/com/example/Hack20_FuryUnd3rdogs/R.java @@ -0,0 +1,7 @@ +/*___Generated_by_IDEA___*/ + +package com.example.Hack20_FuryUnd3rdogs; + +/* This stub is only used by the IDE. It is NOT the R class actually packed into the APK */ +public final class R { +} \ No newline at end of file diff --git a/android/app/src/profile/gen/com/example/Hack20_FuryUnd3rdogs/Manifest.java b/android/app/src/profile/gen/com/example/Hack20_FuryUnd3rdogs/Manifest.java new file mode 100644 index 0000000..802bb4b --- /dev/null +++ b/android/app/src/profile/gen/com/example/Hack20_FuryUnd3rdogs/Manifest.java @@ -0,0 +1,7 @@ +/*___Generated_by_IDEA___*/ + +package com.example.Hack20_FuryUnd3rdogs; + +/* This stub is only used by the IDE. It is NOT the Manifest class actually packed into the APK */ +public final class Manifest { +} \ No newline at end of file diff --git a/android/app/src/profile/gen/com/example/Hack20_FuryUnd3rdogs/R.java b/android/app/src/profile/gen/com/example/Hack20_FuryUnd3rdogs/R.java new file mode 100644 index 0000000..2d0bcef --- /dev/null +++ b/android/app/src/profile/gen/com/example/Hack20_FuryUnd3rdogs/R.java @@ -0,0 +1,7 @@ +/*___Generated_by_IDEA___*/ + +package com.example.Hack20_FuryUnd3rdogs; + +/* This stub is only used by the IDE. It is NOT the R class actually packed into the APK */ +public final class R { +} \ No newline at end of file diff --git a/assets/images/action.png b/assets/images/action.png new file mode 100644 index 0000000..956cf6f Binary files /dev/null and b/assets/images/action.png differ diff --git a/assets/images/background.jpg b/assets/images/background.jpg new file mode 100644 index 0000000..e8fcec0 Binary files /dev/null and b/assets/images/background.jpg differ diff --git a/assets/images/bg1.jpeg b/assets/images/bg1.jpeg new file mode 100644 index 0000000..e3aee4d Binary files /dev/null and b/assets/images/bg1.jpeg differ diff --git a/assets/images/bg2.jpeg b/assets/images/bg2.jpeg new file mode 100644 index 0000000..f2d1d18 Binary files /dev/null and b/assets/images/bg2.jpeg differ diff --git a/assets/images/move.png b/assets/images/move.png new file mode 100644 index 0000000..59ae39b Binary files /dev/null and b/assets/images/move.png differ diff --git a/assets/images/select.png b/assets/images/select.png new file mode 100644 index 0000000..1e66d61 Binary files /dev/null and b/assets/images/select.png differ diff --git a/lib/Widgets/emulator.dart b/lib/Widgets/emulator.dart new file mode 100644 index 0000000..ce0a961 --- /dev/null +++ b/lib/Widgets/emulator.dart @@ -0,0 +1,122 @@ +import 'package:flutter/cupertino.dart'; +import 'package:flutter/material.dart'; + +class Emulator extends StatefulWidget { + @override + _EmulatorState createState() => _EmulatorState(); +} + +class _EmulatorState extends State { + @override + Widget build(BuildContext context) { + return Container( + decoration: BoxDecoration( + image: DecorationImage( + fit: BoxFit.cover, + colorFilter: new ColorFilter.mode( + Colors.black.withOpacity(0.5), BlendMode.dstATop), + image: AssetImage("assets/images/background.jpg"), + ), + ), + padding: EdgeInsets.all(8.0), + child: Row( + crossAxisAlignment: CrossAxisAlignment.stretch, + children: [ + Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + SizedBox( + height: 50.0, + ), + Image.asset( + 'assets/images/move.png', + height: 50, + width: 50, + ), + Row( + children: [ + Image.asset( + 'assets/images/move.png', + height: 50, + width: 50, + ), + Padding( + padding: EdgeInsets.symmetric(horizontal: 20.0), + ), + Image.asset( + 'assets/images/move.png', + height: 50, + width: 50, + ), + ], + ), + Image.asset( + 'assets/images/move.png', + height: 50, + width: 50, + ), + ], + ), + Expanded( + child: Container( + decoration: BoxDecoration( + color: Colors.black, + borderRadius: BorderRadius.circular(30.0), + ), + child: Center( + child: Text( + 'Arcade games', + ), + ), + ), + ), + Column( + mainAxisAlignment: MainAxisAlignment.spaceAround, + children: [ + Row( + children: [ + Padding( + padding: const EdgeInsets.all(8.0), + child: Image.asset( + 'assets/images/select.png', + width: 50.0, + height: 50.0, + ), + ), + Padding( + padding: const EdgeInsets.all(8.0), + child: Image.asset( + 'assets/images/select.png', + width: 50.0, + height: 50.0, + ), + ), + ], + ), + Row( + children: [ + Padding( + padding: const EdgeInsets.all(8.0), + child: Image.asset( + 'assets/images/action.png', + height: 50, + width: 50, + ), + ), + Padding( + padding: const EdgeInsets.all(8.0), + child: Image.asset( + 'assets/images/action.png', + height: 50, + width: 50, + ), + ), + ], + ), + ], + ), + ], + ), + ); + } +} diff --git a/lib/main.dart b/lib/main.dart index 7cc179e..9dacbaf 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -1,8 +1,11 @@ import 'package:Hack20_FuryUnd3rdogs/pages/home_page.dart'; import 'package:Hack20_FuryUnd3rdogs/pages/splash_screen.dart'; import 'package:flutter/material.dart'; +import 'package:flutter/services.dart'; void main() { + WidgetsFlutterBinding.ensureInitialized(); + SystemChrome.setEnabledSystemUIOverlays([SystemUiOverlay.bottom]); runApp(MyApp()); } diff --git a/lib/pages/home_page.dart b/lib/pages/home_page.dart index 38f6f10..b93cea5 100644 --- a/lib/pages/home_page.dart +++ b/lib/pages/home_page.dart @@ -1,3 +1,4 @@ +import 'package:Hack20_FuryUnd3rdogs/Widgets/emulator.dart'; import 'package:flutter/material.dart'; class HomePage extends StatefulWidget { @@ -10,21 +11,19 @@ class _HomePageState extends State { @override Widget build(BuildContext context) { return Scaffold( - appBar: AppBar( - title: Text('Home Page', - style: TextStyle( - fontSize: 20, - fontWeight: FontWeight.bold - ), - ), - centerTitle: true, - ), - drawer: Drawer(), +// appBar: AppBar( +// title: Text('Home Page', +// style: TextStyle( +// fontSize: 20, +// fontWeight: FontWeight.bold +// ), +// ), +// centerTitle: true, +// ), +// drawer: Drawer(), body: Padding( padding: EdgeInsets.all(8.0), - child: Container( - child: Center(child: Text('Hello World!!')), - ), + child: Emulator(), ), ); } diff --git a/lib/pages/splash_screen.dart b/lib/pages/splash_screen.dart index d661ad7..c89f11e 100644 --- a/lib/pages/splash_screen.dart +++ b/lib/pages/splash_screen.dart @@ -24,28 +24,30 @@ class _AnimatedSplashScreenState extends State with Single @override Widget build(BuildContext context) { - return Stack( - fit: StackFit.expand, - children: [ - new Image.asset('assets/images/background.gif', - fit: BoxFit.fitHeight, - ), - new BackdropFilter( - filter: new ui.ImageFilter.blur(sigmaX: 2.0, sigmaY: 2.0), - child: new Container( - color: Colors.black.withOpacity(0.2), - ), + return Scaffold( + body: Stack( + fit: StackFit.expand, + children: [ + new Image.asset('assets/images/background.gif', + fit: BoxFit.fitHeight, ), - new Center( - child: new Text('ARCADE GAMES', - textAlign: TextAlign.center, - style: TextStyle( - color: Colors.white, - fontFamily: 'Retro Gaming', - fontSize: 45 - ),), - ) - ], + new BackdropFilter( + filter: new ui.ImageFilter.blur(sigmaX: 2.0, sigmaY: 2.0), + child: new Container( + color: Colors.black.withOpacity(0.2), + ), + ), + new Center( + child: new Text('ARCADE GAMES', + textAlign: TextAlign.center, + style: TextStyle( + color: Colors.white, + fontFamily: 'Retro Gaming', + fontSize: 45 + ),), + ) + ], + ), ); } } \ No newline at end of file