Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
medapp_eksad
Project
Project
Details
Activity
Releases
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
qorri_di
medapp_eksad
Commits
00648504
Commit
00648504
authored
Sep 23, 2022
by
rizky ramadhan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
footer
parent
81efd891
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
60 deletions
+27
-60
footer.dart
lib/screen/footer.dart
+27
-60
No files found.
lib/screen/footer.dart
View file @
00648504
...
@@ -3,8 +3,6 @@ import 'package:font_awesome_flutter/font_awesome_flutter.dart';
...
@@ -3,8 +3,6 @@ import 'package:font_awesome_flutter/font_awesome_flutter.dart';
import
'package:google_fonts/google_fonts.dart'
;
import
'package:google_fonts/google_fonts.dart'
;
import
'package:url_launcher/url_launcher.dart'
;
import
'package:url_launcher/url_launcher.dart'
;
import
'../api/setting_api.dart'
;
class
Footer
extends
StatelessWidget
{
class
Footer
extends
StatelessWidget
{
const
Footer
({
Key
?
key
})
:
super
(
key:
key
);
const
Footer
({
Key
?
key
})
:
super
(
key:
key
);
...
@@ -13,7 +11,7 @@ class Footer extends StatelessWidget {
...
@@ -13,7 +11,7 @@ class Footer extends StatelessWidget {
var
screenSize
=
MediaQuery
.
of
(
context
).
size
;
var
screenSize
=
MediaQuery
.
of
(
context
).
size
;
return
Container
(
return
Container
(
width:
screenSize
.
width
,
width:
screenSize
.
width
,
height:
screenSize
.
height
*
0.
80
,
height:
screenSize
.
height
*
0.
78
,
color:
Colors
.
white
,
color:
Colors
.
white
,
child:
Column
(
child:
Column
(
mainAxisAlignment:
MainAxisAlignment
.
start
,
mainAxisAlignment:
MainAxisAlignment
.
start
,
...
@@ -27,7 +25,7 @@ class Footer extends StatelessWidget {
...
@@ -27,7 +25,7 @@ class Footer extends StatelessWidget {
),
),
Container
(
Container
(
width:
screenSize
.
width
,
width:
screenSize
.
width
,
height:
screenSize
.
height
*
0.5
0
,
height:
screenSize
.
height
*
0.5
5
,
child:
Row
(
child:
Row
(
mainAxisAlignment:
MainAxisAlignment
.
spaceEvenly
,
mainAxisAlignment:
MainAxisAlignment
.
spaceEvenly
,
crossAxisAlignment:
CrossAxisAlignment
.
start
,
crossAxisAlignment:
CrossAxisAlignment
.
start
,
...
@@ -252,7 +250,7 @@ class Footer extends StatelessWidget {
...
@@ -252,7 +250,7 @@ class Footer extends StatelessWidget {
)),
)),
Container
(
Container
(
width:
screenSize
.
width
*
0.25
,
width:
screenSize
.
width
*
0.25
,
height:
screenSize
.
height
*
0.
7
5
,
height:
screenSize
.
height
*
0.
5
5
,
//color: Colors.blue,
//color: Colors.blue,
child:
Column
(
child:
Column
(
crossAxisAlignment:
CrossAxisAlignment
.
start
,
crossAxisAlignment:
CrossAxisAlignment
.
start
,
...
@@ -270,8 +268,30 @@ class Footer extends StatelessWidget {
...
@@ -270,8 +268,30 @@ class Footer extends StatelessWidget {
),
),
),
),
const
SizedBox
(
height:
8
),
const
SizedBox
(
height:
8
),
TelphoneApi
(),
Container
(
width:
screenSize
.
width
*
0.2
,
child:
ListTile
(
leading:
const
Icon
(
Icons
.
phone
,
size:
22
,
),
title:
TextButton
(
onPressed:
()
{
launch
(
'tel:02157958040'
);
},
child:
Container
(
height:
screenSize
.
height
*
0.04
,
child:
Text
(
'(021) 5795 - 8040'
,
style:
GoogleFonts
.
poppins
(
fontSize:
16
,
color:
Colors
.
black87
,
),
),
),
),
),
),
Container
(
Container
(
width:
screenSize
.
width
*
0.2
,
width:
screenSize
.
width
*
0.2
,
child:
ListTile
(
child:
ListTile
(
...
@@ -365,56 +385,3 @@ class itemBawah extends StatelessWidget {
...
@@ -365,56 +385,3 @@ class itemBawah extends StatelessWidget {
));
));
}
}
}
}
class
TelphoneApi
extends
StatefulWidget
{
const
TelphoneApi
({
Key
?
key
})
:
super
(
key:
key
);
@override
State
<
TelphoneApi
>
createState
()
=>
_TelphoneApiState
();
}
class
_TelphoneApiState
extends
State
<
TelphoneApi
>
{
String
no
=
''
;
@override
Widget
build
(
BuildContext
context
)
{
var
screenSize
=
MediaQuery
.
of
(
context
).
size
;
return
FutureBuilder
<
List
<
dynamic
>>(
future:
getSettingDesc
(),
builder:
(
BuildContext
context
,
AsyncSnapshot
snapshot
)
{
var
pgm
=
snapshot
.
data
[
0
];
if
(
snapshot
.
hasError
||
snapshot
.
data
==
null
||
snapshot
.
connectionState
==
ConnectionState
.
waiting
)
{
return
const
CircularProgressIndicator
();
}
return
Container
(
width:
screenSize
.
width
*
0.01
,
child:
ListTile
(
leading:
const
Icon
(
Icons
.
phone
,
size:
23
,
color:
Colors
.
black
,
),
title:
TextButton
(
onPressed:
()
{
no
=
pgm
[
'no'
];
//02157958040
launch
(
'tel:
$no
'
);
},
child:
Text
(
pgm
[
'no'
],
style:
GoogleFonts
.
poppins
(
fontSize:
16
,
color:
Colors
.
black87
,
letterSpacing:
1.5
),
)),
),
);
},
);
}
}
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