Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
Mobile App
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Code
Mobile App
Commits
e76f24da
Commit
e76f24da
authored
5 years ago
by
Markin Igor
Browse files
Options
Downloads
Patches
Plain Diff
Add Splash screen.
parent
cc6814df
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!1
Mobile app initial implementation.
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
lib/src/app.dart
+42
-21
42 additions, 21 deletions
lib/src/app.dart
pubspec.lock
+7
-0
7 additions, 0 deletions
pubspec.lock
pubspec.yaml
+3
-2
3 additions, 2 deletions
pubspec.yaml
with
52 additions
and
23 deletions
lib/src/app.dart
+
42
−
21
View file @
e76f24da
...
@@ -2,18 +2,47 @@
...
@@ -2,18 +2,47 @@
import
'package:flutter/material.dart'
;
import
'package:flutter/material.dart'
;
import
'screens/home.dart'
;
import
'screens/home.dart'
;
import
'package:flutter/services.dart'
;
import
'package:flutter/services.dart'
;
import
'dart:async'
;
import
'dart:async'
;
import
'dart:developer'
;
import
'dart:developer'
;
import
'package:uni_links/uni_links.dart'
;
import
'package:uni_links/uni_links.dart'
;
import
'package:splashscreen/splashscreen.dart'
;
class
App
extends
State
ful
Widget
{
class
App
extends
State
less
Widget
{
@override
@override
_AppState
createState
()
=
>
_AppState
();
Widget
build
(
BuildContext
context
)
{
return
MaterialApp
(
title:
'Vereign'
,
theme:
ThemeData
(
primaryColor:
Color
(
0xFFd51d32
),
fontFamily:
"Arial"
,
textTheme:
TextTheme
(
button:
TextStyle
(
color:
Colors
.
white
,
fontSize:
18.0
),
title:
TextStyle
(
color:
Colors
.
red
))),
home:
new
SplashScreen
(
seconds:
3
,
title:
new
Text
(
''
),
navigateAfterSeconds:
new
MainApp
(),
image:
new
Image
.
asset
(
'assets/images/vereign_logo_text.png'
),
backgroundColor:
Color
(
0xFFd51d32
),
photoSize:
100.0
,
loaderColor:
Colors
.
white
,
loadingText:
new
Text
(
'Loading'
,
style:
new
TextStyle
(
color:
Colors
.
white
)),
)
);
}
}
class
MainApp
extends
StatefulWidget
{
@override
_MainAppState
createState
()
=
>
_MainAppState
();
}
}
class
_AppState
extends
State
<
App
>
{
class
_
Main
AppState
extends
State
<
Main
App
>
{
StreamSubscription
_sub
;
StreamSubscription
_sub
;
String
_appMode
=
""
;
String
_appMode
=
""
;
...
@@ -26,6 +55,7 @@ class _AppState extends State<App> {
...
@@ -26,6 +55,7 @@ class _AppState extends State<App> {
initState
()
{
initState
()
{
super
.
initState
();
super
.
initState
();
initUniLinks
();
initUniLinks
();
// FlutterWebBrowser.openWebPage(url: 'https://demo1.vereign.com', androidToolbarColor: Color(0xFFd51d32));
}
}
@override
@override
...
@@ -75,23 +105,14 @@ class _AppState extends State<App> {
...
@@ -75,23 +105,14 @@ class _AppState extends State<App> {
@override
@override
Widget
build
(
BuildContext
context
)
{
Widget
build
(
BuildContext
context
)
{
return
MaterialApp
(
return
new
Scaffold
(
title:
'Vereign'
,
appBar:
new
AppBar
(
title:
Text
(
"Vereign"
)),
theme:
ThemeData
(
body:
Home
(
primaryColor:
Color
(
0xFFd51d32
),
mode:
_appMode
,
fontFamily:
"Arial"
,
invokerURL:
_invokerURL
,
textTheme:
TextTheme
(
setMode:
setMode
,
button:
TextStyle
(
color:
Colors
.
white
,
fontSize:
18.0
),
host:
_host
title:
TextStyle
(
color:
Colors
.
red
))),
)
home:
new
Scaffold
(
appBar:
new
AppBar
(
title:
Text
(
"Vereign"
)),
body:
Home
(
mode:
_appMode
,
invokerURL:
_invokerURL
,
setMode:
setMode
,
host:
_host
)
),
);
);
}
}
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
pubspec.lock
+
7
−
0
View file @
e76f24da
...
@@ -172,6 +172,13 @@ packages:
...
@@ -172,6 +172,13 @@ packages:
url: "https://pub.dartlang.org"
url: "https://pub.dartlang.org"
source: hosted
source: hosted
version: "1.5.5"
version: "1.5.5"
splashscreen:
dependency: "direct main"
description:
name: splashscreen
url: "https://pub.dartlang.org"
source: hosted
version: "1.2.0"
stack_trace:
stack_trace:
dependency: transitive
dependency: transitive
description:
description:
...
...
This diff is collapsed.
Click to expand it.
pubspec.yaml
+
3
−
2
View file @
e76f24da
...
@@ -29,6 +29,7 @@ dependencies:
...
@@ -29,6 +29,7 @@ dependencies:
http
:
^0.12.0
http
:
^0.12.0
flutter_app_auth_wrapper
:
^0.1.1+3
flutter_app_auth_wrapper
:
^0.1.1+3
url_launcher
:
5.1.0
url_launcher
:
5.1.0
splashscreen
:
1.2.0
dev_dependencies
:
dev_dependencies
:
flutter_test
:
flutter_test
:
...
@@ -53,8 +54,8 @@ flutter:
...
@@ -53,8 +54,8 @@ flutter:
uses-material-design
:
true
uses-material-design
:
true
# To add assets to your application, add an assets section, like this:
# To add assets to your application, add an assets section, like this:
#
assets:
assets
:
#
-
images/a_dot_burr.jpe
g
-
assets/images/vereign_logo_text.pn
g
# - images/a_dot_ham.jpeg
# - images/a_dot_ham.jpeg
# An image asset can refer to one or more resolution-specific "variants", see
# An image asset can refer to one or more resolution-specific "variants", see
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment