Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Emulator added #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -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 {
}
Original file line number Diff line number Diff line change
@@ -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 {
}
Original file line number Diff line number Diff line change
@@ -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 {
}
Original file line number Diff line number Diff line change
@@ -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 {
}
Binary file added assets/images/action.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/background.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/bg1.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/bg2.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/move.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/select.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
122 changes: 122 additions & 0 deletions lib/Widgets/emulator.dart
Original file line number Diff line number Diff line change
@@ -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<Emulator> {
@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: <Widget>[
Column(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
SizedBox(
height: 50.0,
),
Image.asset(
'assets/images/move.png',
height: 50,
width: 50,
),
Row(
children: <Widget>[
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: <Widget>[
Row(
children: <Widget>[
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: <Widget>[
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,
),
),
],
),
],
),
],
),
);
}
}
3 changes: 3 additions & 0 deletions lib/main.dart
Original file line number Diff line number Diff line change
@@ -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());
}

Expand Down
25 changes: 12 additions & 13 deletions lib/pages/home_page.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import 'package:Hack20_FuryUnd3rdogs/Widgets/emulator.dart';
import 'package:flutter/material.dart';

class HomePage extends StatefulWidget {
Expand All @@ -10,21 +11,19 @@ class _HomePageState extends State<HomePage> {
@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(),
),
);
}
Expand Down
44 changes: 23 additions & 21 deletions lib/pages/splash_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -24,28 +24,30 @@ class _AnimatedSplashScreenState extends State<AnimatedSplashScreen> with Single

@override
Widget build(BuildContext context) {
return Stack(
fit: StackFit.expand,
children: <Widget>[
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: <Widget>[
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
),),
)
],
),
);
}
}