-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/Robert3141/Connectron
- Loading branch information
Showing
11 changed files
with
161 additions
and
9 deletions.
There are no files selected for viewing
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
flutter build appbundle && echo - && echo APP BUNDLE BUILD DONE && echo - && flutter build apk --target-platform android-arm,android-arm64,android-x64 --split-per-abi && echo - && echo APK BUILD DONE && echo - && flutter build web && echo - && echo WEB BUILD DONE && echo - && cd ./build/web && del /f web.zip && 7z a -tzip web.zip * && copy web.zip "../app/outputs/apk/release" && cd ../../ && echo - && echo WEB ZIPPED && echo - | ||
flutter build appbundle && echo - && echo APP BUNDLE BUILD DONE && echo - && flutter build apk --target-platform android-arm,android-arm64,android-x64 --split-per-abi && echo - && echo APK BUILD DONE && echo - && flutter build web && echo - && echo WEB BUILD DONE && echo - && cd ./build/web && @del /f web.zip && @7z a -tzip web.zip * && @copy /y web.zip "../app/outputs/apk/release" && cd ../../ && echo - && echo WEB ZIPPED && echo - | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
import 'package:Connectron/globals.dart' as globals; | ||
import 'package:dynamic_theme/dynamic_theme.dart'; | ||
import 'package:flutter/cupertino.dart'; | ||
import 'package:flutter/material.dart'; | ||
|
||
class MultiPlayerPage extends StatefulWidget { | ||
MultiPlayerPage({Key key, this.title}) : super(key: key); | ||
|
||
final String title; | ||
|
||
@override | ||
_MultiPlayerState createState() => _MultiPlayerState(); | ||
} | ||
|
||
class _MultiPlayerState extends State<MultiPlayerPage> { | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return Scaffold( | ||
appBar: AppBar( | ||
title: Text(widget.title), | ||
actions: <Widget>[ | ||
IconButton( | ||
icon: Icon(Icons.brightness_3), | ||
onPressed: () { | ||
DynamicTheme.of(context).setBrightness( | ||
Theme.of(context).brightness == Brightness.dark | ||
? Brightness.light | ||
: Brightness.dark | ||
); | ||
}, | ||
), | ||
IconButton( | ||
icon: Icon(Icons.help), | ||
onPressed: () { | ||
//TODO: Add main page help | ||
}, | ||
) | ||
], | ||
), | ||
body: Container( | ||
padding: EdgeInsets.all(globals.defaultPadding), | ||
child: ListView( | ||
children: [ | ||
|
||
], | ||
), | ||
), | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
|
||
|
||
import 'dart:ui'; | ||
|
||
import 'package:Connectron/UI/UIMultiplayer-LAN.dart'; | ||
import 'package:Connectron/UI/UIsettings.dart'; | ||
import 'package:Connectron/globals.dart' as globals; | ||
import 'package:flutter/cupertino.dart'; | ||
import 'package:flutter/material.dart'; | ||
|
||
class HomeAppPage extends StatefulWidget { | ||
HomeAppPage({Key key, this.title}) : super(key: key); | ||
|
||
final String title; | ||
|
||
@override | ||
_HomeAppState createState() => _HomeAppState(); | ||
} | ||
|
||
class _HomeAppState extends State<HomeAppPage> { | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return Scaffold( | ||
body: Container( | ||
padding: EdgeInsets.all(globals.defaultPadding), | ||
child: ListView( | ||
children: [ | ||
Container( | ||
width: 200,//TODO: set as global const | ||
height: 200,//TODO: set as global const | ||
alignment: Alignment.center, | ||
child: Image(image: AssetImage('assets/ic_launcher-web.png')),//TODO: set as global const | ||
), | ||
|
||
RaisedButton( | ||
child: Text("Play Game"),//TODO: set as global const | ||
color: Theme.of(context).primaryColor, | ||
textTheme: ButtonTextTheme.primary, | ||
onPressed: () { | ||
Navigator.push( | ||
context, | ||
MaterialPageRoute( | ||
builder: (context) => SettingsPage(title: globals.titleSettings), | ||
) | ||
); | ||
}, | ||
), | ||
RaisedButton( | ||
child: Text("LAN Multiplayer"),//TODO: set as global const | ||
color: Theme.of(context).primaryColor, | ||
textTheme: ButtonTextTheme.primary, | ||
onPressed: (){ | ||
Navigator.push( | ||
context, | ||
MaterialPageRoute( | ||
builder: (context) => MultiPlayerPage(title: "Multiplayer"),//TODO: set as global const | ||
) | ||
); | ||
}, | ||
), | ||
], | ||
), | ||
), | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,22 @@ | ||
<!DOCTYPE html> | ||
|
||
<html> | ||
|
||
<head> | ||
<link rel="icon" href="ic_launcher-web.png" sizes="16x16"> | ||
<meta charset="UTF-8"> | ||
|
||
<link id="loadStyle" rel="stylesheet" type="text/css" href="loading.css"> | ||
|
||
<title>Connectron</title> | ||
<style> | ||
body {background-color: red} | ||
</style> | ||
</head> | ||
|
||
<body> | ||
<img src="ic_launcher-web.png" style="display: block; margin-left:auto; margin-right:auto; margin-top: auto; margin-bottom: auto"> | ||
<script src="main.dart.js" type="application/javascript"></script> | ||
</body> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
body, html { | ||
height: 100%; | ||
margin: 0px; | ||
} | ||
|
||
#loader { | ||
z-index: 0; | ||
height: 100%; | ||
width: 100%; | ||
background-color: #C62828; | ||
} | ||
|
||
|
||
#icon { | ||
width: 100px; | ||
height: 100px; | ||
top: 50%; | ||
left: 50%; | ||
position: relative; | ||
} |