Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
B
Byodv2
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Dio Maulana
Byodv2
Commits
cc8bf5b8
Commit
cc8bf5b8
authored
Sep 21, 2022
by
Dio Maulana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
logo url
parent
0b825b15
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
27 additions
and
23 deletions
+27
-23
.gitignore
.gitignore
+0
-1
excelso.png
assets/emoji/excelso.png
+0
-0
api.dart
lib/api/api.dart
+1
-1
helper.dart
lib/helper/helper.dart
+3
-1
new_home2.dart
lib/ui/home/new_home2.dart
+23
-20
No files found.
.gitignore
View file @
cc8bf5b8
...
@@ -33,7 +33,6 @@ migrate_working_dir/
...
@@ -33,7 +33,6 @@ migrate_working_dir/
/build/
/build/
# Web related
# Web related
lib/generated_plugin_registrant.dart
# Symbolication related
# Symbolication related
app.*.symbols
app.*.symbols
...
...
assets/emoji/excelso.png
deleted
100644 → 0
View file @
0b825b15
7.31 KB
lib/api/api.dart
View file @
cc8bf5b8
...
@@ -92,7 +92,7 @@ class Api {
...
@@ -92,7 +92,7 @@ class Api {
await
prefs
.
setString
(
'sessionId'
,
jsonObject
[
'data'
][
'session_id'
]);
await
prefs
.
setString
(
'sessionId'
,
jsonObject
[
'data'
][
'session_id'
]);
await
prefs
.
setInt
(
'table_mode'
,
jsonObject
[
'data'
][
'table_mode'
]);
await
prefs
.
setInt
(
'table_mode'
,
jsonObject
[
'data'
][
'table_mode'
]);
await
prefs
.
setString
(
'logoUrl'
,
jsonObject
[
'data'
][
'
image
'
]);
await
prefs
.
setString
(
'logoUrl'
,
jsonObject
[
'data'
][
'
logo
'
]);
//** save sessionID and Table Mode */
//** save sessionID and Table Mode */
// return jsonObject['data']['name'];
// return jsonObject['data']['name'];
...
...
lib/helper/helper.dart
View file @
cc8bf5b8
...
@@ -243,7 +243,9 @@ double heightTombol = 0.06; // untuk dikalikan di height media query
...
@@ -243,7 +243,9 @@ double heightTombol = 0.06; // untuk dikalikan di height media query
//**Height tombol */
//**Height tombol */
//** kalkulasi pixel dihome */
//** kalkulasi pixel dihome */
double
imageHeight
=
96
;
String
logoUrl
=
prefs
.
getString
(
"logoUrl"
)
??
""
;
double
imageHeight
=
(
logoUrl
!=
''
)
?
96
:
0
;
double
heighScrollWithImage
=
371
+
imageHeight
;
double
heighScrollWithImage
=
371
+
imageHeight
;
double
heighScrollWithOutImage
=
371
;
double
heighScrollWithOutImage
=
371
;
//** */
//** */
...
...
lib/ui/home/new_home2.dart
View file @
cc8bf5b8
...
@@ -582,6 +582,7 @@ class _NewHome2State extends State<NewHome2> {
...
@@ -582,6 +582,7 @@ class _NewHome2State extends State<NewHome2> {
int
tableMode
,
int
tableMode
,
bool
isSearchActive
,
bool
isSearchActive
,
)
{
)
{
String
logoUrl
=
prefs
.
getString
(
"logoUrl"
)
??
""
;
return
Stack
(
return
Stack
(
children:
[
children:
[
Container
(
Container
(
...
@@ -621,27 +622,29 @@ class _NewHome2State extends State<NewHome2> {
...
@@ -621,27 +622,29 @@ class _NewHome2State extends State<NewHome2> {
controller:
_scrollController
,
controller:
_scrollController
,
slivers:
[
slivers:
[
SliverToBoxAdapter
(
SliverToBoxAdapter
(
child:
Container
(
child:
(
logoUrl
!=
''
)
padding:
const
EdgeInsets
.
only
(
?
Container
(
top:
16
,
padding:
const
EdgeInsets
.
only
(
),
top:
16
,
child:
Row
(
children:
[
const
Spacer
(),
Container
(
width:
209
,
height:
80
,
child:
const
Image
(
width:
209
,
height:
80
,
fit:
BoxFit
.
fill
,
image:
AssetImage
(
'assets/emoji/excelso.png'
),
),
),
),
child:
Row
(
const
Spacer
(),
children:
[
],
const
Spacer
(),
),
Container
(
),
width:
209
,
height:
80
,
child:
Image
(
width:
209
,
height:
80
,
fit:
BoxFit
.
fill
,
image:
NetworkImage
(
logoUrl
),
),
),
const
Spacer
(),
],
),
)
:
const
SizedBox
(),
),
),
SliverPersistentHeader
(
SliverPersistentHeader
(
pinned:
true
,
pinned:
true
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment