Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
Dolan SelfService Topup
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
Faizol
Dolan SelfService Topup
Commits
e186364d
Commit
e186364d
authored
Mar 24, 2023
by
Izol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#3
parent
64124429
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
249 additions
and
231 deletions
+249
-231
home_page.dart
lib/ui/pages/home_page.dart
+249
-231
No files found.
lib/ui/pages/home_page.dart
View file @
e186364d
...
...
@@ -4,6 +4,7 @@ import 'dart:convert';
import
'dart:async'
;
import
'dart:io'
;
import
'dart:math'
;
import
'dart:ui'
;
import
'package:awesome_dialog/awesome_dialog.dart'
;
import
'package:otp_text_field/otp_field.dart'
;
...
...
@@ -1273,13 +1274,17 @@ class _HomePageState extends State<HomePage> implements AlertDialogCallback {
return
StatefulBuilder
(
builder:
(
context
,
StateSetter
setState
)
{
return
Container
(
decoration:
BoxDecoration
(
image:
const
DecorationImage
(
fit:
BoxFit
.
cover
,
image:
AssetImage
(
'assets/img_bg_card.png'
,
color:
lightBackgroundColor
),
),
),
child:
Center
(
child:
Stack
(
children:
[
BackdropFilter
(
filter:
ImageFilter
.
blur
(
sigmaX:
5
,
sigmaY:
5
),
child:
Container
(
color:
Colors
.
black
.
withOpacity
(
0.2
),
),
),
Center
(
child:
SingleChildScrollView
(
child:
AlertDialog
(
backgroundColor:
lightBackgroundColor
,
...
...
@@ -1287,7 +1292,7 @@ class _HomePageState extends State<HomePage> implements AlertDialogCallback {
padding:
const
EdgeInsets
.
symmetric
(
horizontal:
20
,
vertical:
20
),
decoration:
BoxDecoration
(
borderRadius:
BorderRadius
.
circular
(
0
),
borderRadius:
BorderRadius
.
circular
(
28
),
image:
const
DecorationImage
(
fit:
BoxFit
.
cover
,
image:
AssetImage
(
...
...
@@ -1295,7 +1300,7 @@ class _HomePageState extends State<HomePage> implements AlertDialogCallback {
),
),
),
width:
12
00
,
width:
11
00
,
margin:
const
EdgeInsets
.
symmetric
(
vertical:
10
,
horizontal:
0
),
child:
Row
(
...
...
@@ -1319,7 +1324,7 @@ class _HomePageState extends State<HomePage> implements AlertDialogCallback {
),
),
SizedBox
(
width:
48
0
,
width:
40
0
,
),
Text
(
'Isi Ulang Saldo'
,
...
...
@@ -1631,6 +1636,8 @@ class _HomePageState extends State<HomePage> implements AlertDialogCallback {
),
),
),
],
),
);
});
});
...
...
@@ -1664,20 +1671,11 @@ class _HomePageState extends State<HomePage> implements AlertDialogCallback {
}
});
return
Container
(
width:
1000
,
height:
800
,
padding:
const
EdgeInsets
.
symmetric
(
horizontal:
150
,
vertical:
30
),
decoration:
BoxDecoration
(
borderRadius:
BorderRadius
.
circular
(
28
),
boxShadow:
[
BoxShadow
(
color:
Colors
.
grey
.
withOpacity
(
0.3
),
//color of shadow
spreadRadius:
3
,
//spread radius
blurRadius:
7
,
// blur radius
offset:
Offset
(
3
,
3
),
// changes position of shadow
),
],
color:
lightBackgroundColor
,
),
child:
Scaffold
(
body:
Column
(
children:
[
...
...
@@ -2155,7 +2153,7 @@ class _HomePageState extends State<HomePage> implements AlertDialogCallback {
),
TimerBuilder
.
periodic
(
Duration
(
seconds:
1
),
builder:
(
context
)
{
// print("${getSystemTime()}");
return
Column
(
return
Row
(
children:
[
Text
(
"
${getSystemTime()}
"
,
...
...
@@ -2165,14 +2163,6 @@ class _HomePageState extends State<HomePage> implements AlertDialogCallback {
fontWeight:
bold
,
),
),
Text
(
"
${getDate()}
"
,
style:
TextStyle
(
color:
darkBackgroundColor
,
fontSize:
17
,
fontWeight:
semiBold
,
),
),
],
);
}),
...
...
@@ -2418,7 +2408,7 @@ class _HomePageState extends State<HomePage> implements AlertDialogCallback {
),
Positioned
(
bottom:
36
,
left:
6
0
,
left:
0
,
child:
Row
(
children:
[
Container
(
...
...
@@ -2429,25 +2419,53 @@ class _HomePageState extends State<HomePage> implements AlertDialogCallback {
width:
12
,
height:
12
,
),
// SizedBox(width: 4), // add some space between the color and text
// Text(
// '${_downloadSpeed.toStringAsFixed(2)} KB/s',
// style: TextStyle(fontSize: 12, color: Colors.grey),
// ),
],
),
),
// Positioned(
// bottom: 20,
// left: 0,
// child: Ink(
// decoration: ShapeDecoration(
// color: Colors.white,
// shape: CircleBorder(),
// ),
// child: InkWell(
// borderRadius: BorderRadius.circular(1000.0),
// onTap: () {
// // aksi yang ingin dilakukan ketika tombol ditekan
// },
// child: Padding(
// padding: const EdgeInsets.all(8.0),
// child: Icon(Icons.settings, size: 28,),
// ),
// ),
// ),
// ),
Positioned
(
bottom:
20
,
left:
0
,
child:
IconButton
(
icon:
Icon
(
Icons
.
settings
),
onPressed:
()
{
// aksi yang ingin dilakukan ketika tombol ditekan
},
bottom:
30
,
left:
30
,
child:
Row
(
children:
[
TimerBuilder
.
periodic
(
Duration
(
seconds:
1
),
builder:
(
context
)
{
// print("${getSystemTime()}");
return
Row
(
children:
[
Text
(
"
${getDate()}
"
,
style:
TextStyle
(
color:
darkBackgroundColor
,
fontSize:
15
,
fontWeight:
semiBold
,
),
),
],
);
}),
],
),
),
Column
(
crossAxisAlignment:
CrossAxisAlignment
.
center
,
...
...
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