Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
Mobile App
Manage
Activity
Members
Labels
Plan
Issues
3
Issue boards
Milestones
Wiki
Code
Merge requests
0
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
No related branches found
Branches containing commit
No related tags found
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 @@
import
'package:flutter/material.dart'
;
import
'screens/home.dart'
;
import
'package:flutter/services.dart'
;
import
'dart:async'
;
import
'dart:developer'
;
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
_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
;
String
_appMode
=
""
;
...
...
@@ -26,6 +55,7 @@ class _AppState extends State<App> {
initState
()
{
super
.
initState
();
initUniLinks
();
// FlutterWebBrowser.openWebPage(url: 'https://demo1.vereign.com', androidToolbarColor: Color(0xFFd51d32));
}
@override
...
...
@@ -75,23 +105,14 @@ class _AppState extends State<App> {
@override
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
Scaffold
(
appBar:
new
AppBar
(
title:
Text
(
"Vereign"
)),
body:
Home
(
mode:
_appMode
,
invokerURL:
_invokerURL
,
setMode:
setMode
,
host:
_host
)
),
return
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:
url: "https://pub.dartlang.org"
source: hosted
version: "1.5.5"
splashscreen:
dependency: "direct main"
description:
name: splashscreen
url: "https://pub.dartlang.org"
source: hosted
version: "1.2.0"
stack_trace:
dependency: transitive
description:
...
...
This diff is collapsed.
Click to expand it.
pubspec.yaml
+
3
−
2
View file @
e76f24da
...
...
@@ -29,6 +29,7 @@ dependencies:
http
:
^0.12.0
flutter_app_auth_wrapper
:
^0.1.1+3
url_launcher
:
5.1.0
splashscreen
:
1.2.0
dev_dependencies
:
flutter_test
:
...
...
@@ -53,8 +54,8 @@ flutter:
uses-material-design
:
true
# To add assets to your application, add an assets section, like this:
#
assets:
#
-
images/a_dot_burr.jpe
g
assets
:
-
assets/images/vereign_logo_text.pn
g
# - images/a_dot_ham.jpeg
# 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