Skip to content
Snippets Groups Projects
Commit fc04c400 authored by igorwork's avatar igorwork Committed by Markin Igor
Browse files

Update name and colors

parent 84e354b1
No related branches found
No related tags found
1 merge request!1Mobile app initial implementation.
This commit is part of merge request !1. Comments created here will be created in the context of that merge request.
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
FlutterApplication and put your custom class here. --> FlutterApplication and put your custom class here. -->
<application <application
android:name="io.flutter.app.FlutterApplication" android:name="io.flutter.app.FlutterApplication"
android:label="mobile_app" android:label="Vereign"
android:icon="@mipmap/ic_launcher"> android:icon="@mipmap/ic_launcher">
<activity <activity
android:name=".MainActivity" android:name=".MainActivity"
......
...@@ -4,6 +4,8 @@ ...@@ -4,6 +4,8 @@
<dict> <dict>
<key>CFBundleDevelopmentRegion</key> <key>CFBundleDevelopmentRegion</key>
<string>$(DEVELOPMENT_LANGUAGE)</string> <string>$(DEVELOPMENT_LANGUAGE)</string>
<key>CFBundleDisplayName</key>
<string>Vereign</string>
<key>CFBundleExecutable</key> <key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string> <string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key> <key>CFBundleIdentifier</key>
...@@ -11,7 +13,7 @@ ...@@ -11,7 +13,7 @@
<key>CFBundleInfoDictionaryVersion</key> <key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string> <string>6.0</string>
<key>CFBundleName</key> <key>CFBundleName</key>
<string>mobile_app</string> <string>Vereign</string>
<key>CFBundlePackageType</key> <key>CFBundlePackageType</key>
<string>APPL</string> <string>APPL</string>
<key>CFBundleShortVersionString</key> <key>CFBundleShortVersionString</key>
...@@ -31,15 +33,15 @@ ...@@ -31,15 +33,15 @@
</array> </array>
</dict> </dict>
<dict> <dict>
<key>CFBundleTypeRole</key> <key>CFBundleTypeRole</key>
<string>Editor</string> <string>Editor</string>
<key>CFBundleURLName</key> <key>CFBundleURLName</key>
<string>com.vereign.app/authorize</string> <string>com.vereign.app/authorize</string>
<key>CFBundleURLSchemes</key> <key>CFBundleURLSchemes</key>
<array> <array>
<string>app</string> <string>app</string>
</array> </array>
</dict> </dict>
</array> </array>
<key>CFBundleVersion</key> <key>CFBundleVersion</key>
<string>$(FLUTTER_BUILD_NUMBER)</string> <string>$(FLUTTER_BUILD_NUMBER)</string>
......
...@@ -77,13 +77,13 @@ class _AppState extends State<App> { ...@@ -77,13 +77,13 @@ class _AppState extends State<App> {
return MaterialApp( return MaterialApp(
title: 'Vereign', title: 'Vereign',
theme: ThemeData( theme: ThemeData(
primarySwatch: Colors.blue, primaryColor: Color(0xFFd51d32),
fontFamily: "Arial", fontFamily: "Arial",
textTheme: TextTheme( textTheme: TextTheme(
button: TextStyle(color: Colors.white, fontSize: 18.0), button: TextStyle(color: Colors.white, fontSize: 18.0),
title: TextStyle(color: Colors.red))), title: TextStyle(color: Colors.white))),
home: new Scaffold( home: new Scaffold(
appBar: new AppBar(), appBar: new AppBar(title: Text("Vereign")),
body: Home( body: Home(
mode: _appMode, mode: _appMode,
invokerURL: _invokerURL, invokerURL: _invokerURL,
......
...@@ -84,7 +84,7 @@ class _HomeState extends State<Home> { ...@@ -84,7 +84,7 @@ class _HomeState extends State<Home> {
} }
openVereign() { openVereign() {
FlutterWebBrowser.openWebPage(url: 'https://gospodinbodurov.dev.vereign.com', androidToolbarColor: Colors.deepPurple); FlutterWebBrowser.openWebPage(url: 'https://gospodinbodurov.dev.vereign.com', androidToolbarColor: Color(0xFFd51d32));
} }
startOAuth() { startOAuth() {
...@@ -117,7 +117,7 @@ class _HomeState extends State<Home> { ...@@ -117,7 +117,7 @@ class _HomeState extends State<Home> {
crossAxisAlignment: CrossAxisAlignment.stretch, crossAxisAlignment: CrossAxisAlignment.stretch,
// children: _links.map((link) => _urlButton(context, link)).toList(), // children: _links.map((link) => _urlButton(context, link)).toList(),
children: <Widget>[ children: <Widget>[
_urlButton(context, _links[0], "Open Vereign", openVereign), _urlButton(context, _links[0], "Open Dashboard", openVereign),
_urlButton(context, _links[1], "Authorize with Vereign", startOAuth), _urlButton(context, _links[1], "Authorize with Vereign", startOAuth),
] ]
)))); ))));
...@@ -127,6 +127,7 @@ class _HomeState extends State<Home> { ...@@ -127,6 +127,7 @@ class _HomeState extends State<Home> {
padding: EdgeInsets.all(20.0), padding: EdgeInsets.all(20.0),
child: FlatButton( child: FlatButton(
color: Theme.of(context).primaryColor, color: Theme.of(context).primaryColor,
textColor: Colors.white,
padding: const EdgeInsets.symmetric(horizontal: 50.0, vertical: 15.0), padding: const EdgeInsets.symmetric(horizontal: 50.0, vertical: 15.0),
child: Text(title), child: Text(title),
onPressed: listener onPressed: listener
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment