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
c108db3f
Commit
c108db3f
authored
Sep 08, 2022
by
Budi Prasetyo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
homepage
parent
94a257eb
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
294 additions
and
112 deletions
+294
-112
appbar_home.dart
lib/appbar/appbar_home.dart
+85
-0
homepage.dart
lib/homepage.dart
+1
-1
home2.dart
lib/screen/home/home2.dart
+1
-1
home3.dart
lib/screen/home/home3.dart
+60
-60
small_home2.dart
lib/screen_small/small_home/small_home2.dart
+1
-1
small_home3.dart
lib/screen_small/small_home/small_home3.dart
+53
-49
home_user.dart
lib/screen_user/home_user.dart
+93
-0
No files found.
lib/appbar/appbar_home.dart
View file @
c108db3f
...
...
@@ -86,4 +86,89 @@ AppBar AppbarHomeLarge(Size screenSize, BuildContext context, Color home,
],
),
);
}
AppBar
AppbarHomeLargeUser
(
Size
screenSize
,
BuildContext
context
,
Color
home
,
Color
aboutUs
,
Color
ourServices
,
Color
career
,
Color
contactUs
)
{
return
AppBar
(
backgroundColor:
Colors
.
white
,
toolbarHeight:
80
,
leadingWidth:
screenSize
.
width
*
0.3
,
leading:
Row
(
children:
[
Container
(
width:
screenSize
.
width
*
0.1
,
),
IconButton
(
onPressed:
()
{
Navigator
.
pushNamed
(
context
,
'/'
);
},
icon:
const
Image
(
image:
AssetImage
(
'assets/logo/medapp-logo.png'
),
width:
500
,
height:
200
,
),
iconSize:
190
,
),
],
),
title:
Row
(
children:
[
ButtonAppbar_baru
(
arah:
'/'
,
menu:
'Home'
,
warna:
home
),
const
Spacer
(
flex:
1
,
),
ButtonAppbar_baru
(
arah:
'/'
,
menu:
'About Us'
,
warna:
aboutUs
),
const
Spacer
(
flex:
1
,
),
ButtonAppbar_baru
(
arah:
'/solutions'
,
menu:
'Our Solution'
,
warna:
ourServices
),
const
Spacer
(
flex:
1
,
),
// ButtonAppbar_baru(arah: '/career', menu: 'Career', warna: career),
// const Spacer(
// flex: 1,
// ),
ButtonAppbar_baru
(
arah:
'/contact'
,
menu:
'Contact Us'
,
warna:
contactUs
),
const
Spacer
(
flex:
2
,
),
TextButton
(
onPressed:
()
{
Navigator
.
pushNamed
(
context
,
'/login'
);
},
child:
const
Text
(
'Login'
,
style:
TextStyle
(
fontSize:
19
,
fontWeight:
FontWeight
.
w500
,
color:
Colors
.
black
),
),
),
Container
(
width:
screenSize
.
width
*
0.006
,
),
ElevatedButton
(
onPressed:
()
{
Navigator
.
pushNamed
(
context
,
'/register'
);
},
style:
ElevatedButton
.
styleFrom
(
primary:
const
Color
(
0xff1e5ea8
),
fixedSize:
const
Size
(
130
,
45
),
onPrimary:
Colors
.
red
,
),
child:
const
Text
(
'Register'
,
style:
TextStyle
(
color:
Colors
.
white
,
fontSize:
19
,
fontWeight:
FontWeight
.
w500
),
),
),
const
Spacer
(
flex:
5
,
),
],
),
);
}
\ No newline at end of file
lib/homepage.dart
View file @
c108db3f
...
...
@@ -42,7 +42,7 @@ class _HomePageState extends State<HomePage> {
floatingActionButton:
WAChat
(),
appBar:
ResponsiveWidget
.
isSmallScreen
(
context
)
?
AppBarKecil
()
:
AppbarHomeLarge
(
screenSize
,
context
,
Colors
.
blue
,
Colors
.
bl
ue
,
:
AppbarHomeLarge
(
screenSize
,
context
,
Colors
.
blue
,
Colors
.
bl
ack
,
Colors
.
black
,
Colors
.
black
,
Colors
.
black
),
drawer:
const
DrawerMedApp
(),
body:
ResponsiveWidget
.
isSmallScreen
(
context
)
...
...
lib/screen/home/home2.dart
View file @
c108db3f
...
...
@@ -24,7 +24,7 @@ class Home2 extends StatelessWidget {
),
Container
(
width:
screenSize
.
width
,
child:
Text
(
'
How do we help ?
'
,
child:
Text
(
'
MedApp Background
'
,
style:
GoogleFonts
.
poppins
(
fontSize:
35
,
color:
const
Color
.
fromARGB
(
255
,
12
,
66
,
101
),
...
...
lib/screen/home/home3.dart
View file @
c108db3f
...
...
@@ -243,66 +243,66 @@ class _Home3State extends State<Home3> {
),
),
SizedBox
(
width:
50
,),
SizedBox
(
width:
screenSize
.
width
*
0.2
,
child:
Column
(
children:
[
Container
(
padding:
EdgeInsets
.
only
(
top:
screenSize
.
height
*
0.01
),
width:
screenSize
.
width
*
0.5
,
child:
Animasi_Kiri_Kanan
(
screenSize:
screenSize
,
widget:
Image
.
asset
(
'assets/icons/why4.png'
,
height:
60
,
width:
60
,
))),
const
SizedBox
(
height:
10
,
),
Container
(
padding:
const
EdgeInsets
.
only
(
top:
5
),
width:
250
,
height:
75
,
child:
const
Text
(
'DRUG DELIVERY'
,
style:
TextStyle
(
color:
Colors
.
blueAccent
,
fontSize:
17
,
letterSpacing:
1.1
,
fontWeight:
FontWeight
.
w600
),
textAlign:
TextAlign
.
center
,
),
),
const
SizedBox
(
height:
10
,
),
Container
(
padding:
const
EdgeInsets
.
only
(
top:
10
),
width:
220
,
height:
screenSize
.
height
*
0.3
,
child:
ShowUpAnimation
(
delayStart:
const
Duration
(
seconds:
1
),
curve:
Curves
.
decelerate
,
direction:
Direction
.
horizontal
,
child:
SizedBox
(
height:
screenSize
.
height
*
0.40
,
child:
Text
(
'Drug delivery works in collaboration with goods delivery service providers '
'which are currently developing fast.'
,
style:
GoogleFonts
.
poppins
(
fontSize:
15
,
fontWeight:
FontWeight
.
w500
,
letterSpacing:
1.3
,
height:
1.4
),
textAlign:
TextAlign
.
center
,
),
),
))
],
),
),
SizedBox
(
width:
50
,),
//
SizedBox(
//
width: screenSize.width * 0.2,
//
child: Column(
//
children: [
//
Container(
//
padding: EdgeInsets.only(top: screenSize.height * 0.01),
//
width: screenSize.width * 0.5,
//
child: Animasi_Kiri_Kanan(
//
screenSize: screenSize,
//
widget: Image.asset(
//
'assets/icons/why4.png',
//
height: 60,
//
width: 60,
//
))),
//
const SizedBox(
//
height: 10,
//
),
//
Container(
//
padding: const EdgeInsets.only(top: 5),
//
width: 250,
//
height: 75,
//
child: const Text(
//
'DRUG DELIVERY',
//
style: TextStyle(
//
color: Colors.blueAccent,
//
fontSize: 17,
//
letterSpacing: 1.1,
//
fontWeight: FontWeight.w600),
//
textAlign: TextAlign.center,
//
),
//
),
//
const SizedBox(
//
height: 10,
//
),
//
Container(
//
padding: const EdgeInsets.only(top: 10),
//
width: 220,
//
height: screenSize.height * 0.3,
//
child: ShowUpAnimation(
//
delayStart: const Duration(seconds: 1),
//
curve: Curves.decelerate,
//
direction: Direction.horizontal,
//
child: SizedBox(
//
height: screenSize.height * 0.40,
//
child: Text(
//
'Drug delivery works in collaboration with goods delivery service providers '
//
'which are currently developing fast.',
//
style: GoogleFonts.poppins(
//
fontSize: 15,
//
fontWeight: FontWeight.w500,
//
letterSpacing: 1.3,
//
height: 1.4),
//
textAlign: TextAlign.center,
//
),
//
),
//
))
//
],
//
),
//
),
//
SizedBox(width: 50,),
SizedBox
(
width:
screenSize
.
width
*
0.2
,
child:
Column
(
...
...
lib/screen_small/small_home/small_home2.dart
View file @
c108db3f
...
...
@@ -26,7 +26,7 @@ class SmallHome2 extends StatelessWidget {
Container
(
width:
screenSize
.
width
,
child:
Text
(
'
How do we help ?
'
,
child:
Text
(
'
MedApp Background
'
,
style:
GoogleFonts
.
poppins
(
fontSize:
30
,
color:
const
Color
.
fromARGB
(
255
,
12
,
66
,
101
),
...
...
lib/screen_small/small_home/small_home3.dart
View file @
c108db3f
...
...
@@ -241,57 +241,61 @@ class _SmallHome3State extends State<SmallHome3> {
),
),
SizedBox
(
width:
screenSize
.
width
,
height:
screenSize
.
height
*
0.35
,
child:
Row
(
children:
[
Container
(
width:
screenSize
.
width
*
0.4
,
// SizedBox(
// width: screenSize.width,
// height: screenSize.height * 0.35,
// child: Row(
// children: [
// Container(
// width: screenSize.width*0.4,
//
// height: screenSize.height * 0.55,
// child: Column(
// crossAxisAlignment: CrossAxisAlignment.center,
// mainAxisAlignment: MainAxisAlignment.center,
// children: [
// Container(
// width: screenSize.width * 0.4,
// child: Animasi_Kiri_Kanan(
// screenSize: screenSize,
// widget: Image.asset(
// 'assets/icons/why4.png',
// height: 60,
// width: 60,
// ))),
// SizedBox(height: 20,),
// Container(
// padding: EdgeInsets.symmetric(horizontal: 10),
// width: 200,
// height: 40,
// child: const Text(
// 'DRUG DELIVERY',
// style: TextStyle(
// color: Colors.blueAccent,
// fontSize: 15,
// letterSpacing: 1.1,
// fontWeight: FontWeight.w600),
// textAlign: TextAlign.center,
// ),
// ),
// ],
// ),
// ),
// Container(
// width: screenSize.width*0.5,
//
// height: screenSize.height * 0.55,
// child: const Animasi_Kanan_Kiri_Justify(
// judul:
// 'Drug delivery works in collaboration with goods delivery service providers '
// 'which are currently developing fast.',))
// ],
// ),
// ),
height:
screenSize
.
height
*
0.55
,
child:
Column
(
crossAxisAlignment:
CrossAxisAlignment
.
center
,
mainAxisAlignment:
MainAxisAlignment
.
center
,
children:
[
Container
(
width:
screenSize
.
width
*
0.4
,
child:
Animasi_Kiri_Kanan
(
screenSize:
screenSize
,
widget:
Image
.
asset
(
'assets/icons/why4.png'
,
height:
60
,
width:
60
,
))),
SizedBox
(
height:
20
,),
Container
(
padding:
EdgeInsets
.
symmetric
(
horizontal:
10
),
width:
200
,
height:
40
,
child:
const
Text
(
'DRUG DELIVERY'
,
style:
TextStyle
(
color:
Colors
.
blueAccent
,
fontSize:
15
,
letterSpacing:
1.1
,
fontWeight:
FontWeight
.
w600
),
textAlign:
TextAlign
.
center
,
),
),
],
),
),
Container
(
width:
screenSize
.
width
*
0.5
,
height:
screenSize
.
height
*
0.55
,
child:
const
Animasi_Kanan_Kiri_Justify
(
judul:
'Drug delivery works in collaboration with goods delivery service providers '
'which are currently developing fast.'
,))
],
),
),
SizedBox
(
width:
screenSize
.
width
,
height:
screenSize
.
height
*
0.35
,
...
...
lib/screen_user/home_user.dart
0 → 100644
View file @
c108db3f
import
'package:flutter/material.dart'
;
import
'package:medapp_eksad/appbar/appbar_home.dart'
;
import
'package:medapp_eksad/screen_small/small_contact/small_contact_us2.dart'
;
import
'package:medapp_eksad/screen/contact_us/contact_us2.dart'
;
import
'package:medapp_eksad/screen/footer.dart'
;
import
'package:medapp_eksad/screen/home/home1.dart'
;
import
'package:medapp_eksad/screen/home/home2.dart'
;
import
'package:medapp_eksad/screen/home/home3.dart'
;
import
'package:medapp_eksad/screen/home/home4.dart'
;
import
'package:medapp_eksad/screen_small/small_footer.dart'
;
import
'package:medapp_eksad/screen_small/small_home/small_home1.dart'
;
import
'package:medapp_eksad/screen_small/small_home/small_home2.dart'
;
import
'package:medapp_eksad/screen_small/small_home/small_home3.dart'
;
import
'package:medapp_eksad/screen_small/small_home/small_home4.dart'
;
import
'package:medapp_eksad/widget/drawer.dart'
;
import
'package:medapp_eksad/widget/responsive.dart'
;
import
'package:medapp_eksad/widget/whatsapp.dart'
;
import
'package:flutter/services.dart'
;
void
setPageTitle
(
String
title
,
BuildContext
context
)
{
SystemChrome
.
setApplicationSwitcherDescription
(
ApplicationSwitcherDescription
(
label:
title
,
primaryColor:
Theme
.
of
(
context
).
primaryColor
.
value
,
// This line is required
));
}
class
HomePageUser
extends
StatefulWidget
{
const
HomePageUser
({
Key
?
key
})
:
super
(
key:
key
);
@override
State
<
HomePageUser
>
createState
()
=>
_HomePageUserState
();
}
class
_HomePageUserState
extends
State
<
HomePageUser
>
{
final
GlobalKey
<
ScaffoldState
>
_scaffoldKey
=
new
GlobalKey
<
ScaffoldState
>();
@override
Widget
build
(
BuildContext
context
)
{
setPageTitle
(
'MedApp by Eksad'
,
context
);
var
screenSize
=
MediaQuery
.
of
(
context
).
size
;
return
Scaffold
(
key:
_scaffoldKey
,
floatingActionButton:
WAChat
(),
appBar:
ResponsiveWidget
.
isSmallScreen
(
context
)
?
AppBarKecil
()
:
AppbarHomeLarge
(
screenSize
,
context
,
Colors
.
blue
,
Colors
.
black
,
Colors
.
black
,
Colors
.
black
,
Colors
.
black
),
drawer:
const
DrawerMedApp
(),
body:
ResponsiveWidget
.
isSmallScreen
(
context
)
?
ListView
(
children:
const
[
SmallHome1
(),
SmallHome2
(),
SmallHome3
(),
SmallHome4
(),
ContactUs2_small
(),
FooterSmall
(),
],
)
:
ListView
(
children:
[
const
Home1
(),
const
Home2
(),
const
Home3
(),
const
Home4
(),
ContactUs2
(),
const
Footer
(),
],
),
);
}
AppBar
AppBarKecil
()
{
return
AppBar
(
leading:
IconButton
(
onPressed:
()
=>
_scaffoldKey
.
currentState
!.
openDrawer
(),
icon:
const
Icon
(
Icons
.
list_outlined
,
size:
30
,
color:
Colors
.
black
,
),
),
backgroundColor:
Colors
.
white
,
centerTitle:
true
,
title:
SizedBox
(
height:
50
,
width:
150
,
child:
Image
.
asset
(
"assets/logo/medapp-logo.png"
),
),
// ),
);
}
}
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