Skip to content

Commit

Permalink
Add liscences and bump version to 1.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
aguilaair committed Aug 17, 2020
1 parent 5434be3 commit f151d53
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 5 deletions.
2 changes: 1 addition & 1 deletion android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<uses-permission android:name="android.permission.INTERNET"/>

<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
<application android:name="io.flutter.app.FlutterApplication" android:label="gatego Deploy" android:icon="@mipmap/launcher_icon">
<application android:name="io.flutter.app.FlutterApplication" android:label="Gatego Deploy" android:icon="@mipmap/launcher_icon">
<activity android:name=".MainActivity" android:launchMode="singleTop" android:theme="@style/LaunchTheme" android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode" android:hardwareAccelerated="true" android:windowSoftInputMode="adjustResize">
<!-- Specifies an Android theme to apply to this Activity as soon as
the Android process has started. This theme is visible to the user
Expand Down
7 changes: 6 additions & 1 deletion lib/pages/confirmPage.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import 'package:gategoDeploy/controller/WifiInfo.dart';
import 'package:gategoDeploy/widget/bottomNavBar.dart';
import 'package:get/get.dart';
import '../pages/sendPage.dart';
import 'deployPage.dart';

class ConfirmPage extends StatelessWidget {
final Controller c = Get.find();
Expand All @@ -31,7 +32,11 @@ class ConfirmPage extends StatelessWidget {
Icons.sync,
color: Theme.of(context).primaryColor,
),
onPressed: () {},
onPressed: () {
Get.offUntil(MaterialPageRoute(builder: (_) {
return DeployPage();
}), (route) => false);
},
)
],
),
Expand Down
27 changes: 25 additions & 2 deletions lib/pages/deployPage.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:gategoDeploy/pages/confirmPage.dart';
import 'package:gategoDeploy/widget/bottomNavBar.dart';
import 'package:get/get.dart';
import 'package:package_info/package_info.dart';
import '../widget/SSIDInput.dart';

class DeployPage extends StatefulWidget {
Expand Down Expand Up @@ -44,8 +46,29 @@ class _DeployPageState extends State<DeployPage> {
Icons.sync,
color: Color(0xff00a1d3),
),
onPressed: () {},
)
onPressed: () {
Get.offUntil(MaterialPageRoute(builder: (_) {
return DeployPage();
}), (route) => false);
},
),
IconButton(
icon: Icon(Icons.info_outline, color: Color(0xff00a1d3),),
onPressed: () async {
PackageInfo packageInfo = await PackageInfo.fromPlatform();

String appName = packageInfo.appName;
String version = packageInfo.version;
String buildNumber = packageInfo.buildNumber;
return showAboutDialog(
context: context,
applicationIcon: Image.asset("assets/bicon.png", width: 50, height: 50,),
applicationName: appName + " by Wego Technologies",
applicationVersion: version + " - B" + buildNumber,
applicationLegalese:
"All rights reserved. Copyright 2020 Wego Technologies LLC. Doubts? Contact [email protected]");
},
),
],
),
body: SingleChildScrollView(
Expand Down
7 changes: 7 additions & 0 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,13 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "0.0.4"
package_info:
dependency: "direct main"
description:
name: package_info
url: "https://pub.dartlang.org"
source: hosted
version: "0.4.1"
path:
dependency: transitive
description:
Expand Down
4 changes: 3 additions & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
# Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
version: 1.1.1+1
version: 1.1.2+1

environment:
sdk: ">=2.7.0 <3.0.0"
Expand All @@ -29,6 +29,7 @@ dependencies:
location_permissions: ^3.0.0
get: ^3.4.2
flare_flutter: ^2.0.6
package_info:

# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.
Expand Down Expand Up @@ -64,6 +65,7 @@ flutter:
- assets/wego.svg
- assets/gatego.png
- assets/gatego.svg
- assets/bicon.png
### ANIMATIONS
- assets/pulse.flr
- assets/waiting.flr
Expand Down

0 comments on commit f151d53

Please sign in to comment.