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
0a349f0f
Commit
0a349f0f
authored
Sep 02, 2022
by
Budi Prasetyo
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://103.44.149.204/qorridi/medapp_eksad
parents
8347a7a8
0e35683d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
275 additions
and
30 deletions
+275
-30
register.dart
lib/register.dart
+250
-1
solution.dart
lib/screen/solution.dart
+24
-28
button_color.dart
lib/widget/button_color.dart
+1
-1
No files found.
lib/register.dart
View file @
0a349f0f
...
@@ -8,6 +8,8 @@ class Register extends StatefulWidget {
...
@@ -8,6 +8,8 @@ class Register extends StatefulWidget {
}
}
class
_RegisterState
extends
State
<
Register
>
{
class
_RegisterState
extends
State
<
Register
>
{
bool
_isObscure
=
true
;
@override
@override
Widget
build
(
BuildContext
context
)
{
Widget
build
(
BuildContext
context
)
{
var
screenize
=
MediaQuery
.
of
(
context
).
size
;
var
screenize
=
MediaQuery
.
of
(
context
).
size
;
...
@@ -15,13 +17,260 @@ class _RegisterState extends State<Register> {
...
@@ -15,13 +17,260 @@ class _RegisterState extends State<Register> {
body:
Container
(
body:
Container
(
height:
screenize
.
height
,
height:
screenize
.
height
,
width:
screenize
.
width
,
width:
screenize
.
width
,
decoration:
BoxDecoration
(
decoration:
BoxDecoration
(
image:
DecorationImage
(
image:
DecorationImage
(
image:
AssetImage
(
"assets/images/register.jpg"
),
image:
AssetImage
(
"assets/images/register.jpg"
),
fit:
BoxFit
.
fill
,
fit:
BoxFit
.
fill
,
)
)
),
),
padding:
EdgeInsets
.
only
(
left:
screenize
.
width
*
0.15
,
top:
screenize
.
height
*
0.13
,
bottom:
screenize
.
height
*
0.13
),
child:
Stack
(
children:
[
Container
(
decoration:
BoxDecoration
(
color:
Color
.
fromARGB
(
255
,
10
,
116
,
255
),
borderRadius:
BorderRadius
.
circular
(
20
),
),
width:
screenize
.
width
*
0.36
,
height:
screenize
.
height
*
0.9
,
child:
Image
.
asset
(
"assets/logo/logo-eksad.png"
,
),
),
Padding
(
padding:
EdgeInsets
.
only
(
left:
screenize
.
width
*
0.33
,
top:
screenize
.
height
*
0.07
),
child:
Container
(
width:
screenize
.
width
*
0.3
,
height:
screenize
.
height
*
0.6
,
decoration:
BoxDecoration
(
color:
Colors
.
white
,
borderRadius:
BorderRadius
.
circular
(
20
),
border:
Border
.
all
(
width:
5
,
color:
Color
.
fromARGB
(
255
,
10
,
116
,
255
),
),
boxShadow:
[
BoxShadow
(
color:
Color
.
fromARGB
(
255
,
10
,
116
,
255
).
withAlpha
(
60
),
blurRadius:
15.0
,
spreadRadius:
20.0
,
offset:
Offset
(
0.0
,
3.0
,
),
),],
),
child:
Form
(
child:
Container
(
padding:
EdgeInsets
.
only
(
left:
screenize
.
width
*
0.045
,
top:
screenize
.
height
*
0.05
),
width:
screenize
.
width
*
0.36
,
height:
screenize
.
height
*
0.9
,
child:
Column
(
crossAxisAlignment:
CrossAxisAlignment
.
start
,
children:
[
Container
(
padding:
EdgeInsets
.
only
(
left:
screenize
.
width
*
0.055
),
height:
screenize
.
width
*
0.02
,
child:
Image
.
asset
(
"assets/logo/medapp-logo.png"
),
),
SizedBox
(
height:
20
,),
Row
(
children:
[
Icon
(
Icons
.
email_outlined
,
color:
Colors
.
grey
[
500
],
size:
screenize
.
width
*
0.01
,
),
SizedBox
(
width:
10
,
),
Text
(
"Nama"
),
],
),
SizedBox
(
height:
5
,),
Row
(
children:
[
Container
(
height:
40
,
width:
screenize
.
width
*
0.2
,
child:
TextFormField
(
textAlign:
TextAlign
.
start
,
decoration:
InputDecoration
(
labelText:
"Nama Lengkap"
,
hintStyle:
TextStyle
(),
border:
OutlineInputBorder
(
borderRadius:
BorderRadius
.
circular
(
5.0
),
)
),
onChanged:
null
,
),
)
],
),
SizedBox
(
height:
10
,),
Row
(
children:
[
Icon
(
Icons
.
email_outlined
,
color:
Colors
.
grey
[
500
],
size:
screenize
.
width
*
0.01
,
),
SizedBox
(
width:
10
,
),
Text
(
"Email"
),
],
),
SizedBox
(
height:
5
,),
Row
(
children:
[
Container
(
height:
40
,
width:
screenize
.
width
*
0.2
,
child:
TextFormField
(
textAlign:
TextAlign
.
start
,
decoration:
InputDecoration
(
labelText:
"Email Valid"
,
hintStyle:
TextStyle
(),
border:
OutlineInputBorder
(
borderRadius:
BorderRadius
.
circular
(
5.0
),
)
),
onChanged:
null
,
),
)
],
),
SizedBox
(
height:
10
,),
Row
(
children:
[
Icon
(
Icons
.
email_outlined
,
color:
Colors
.
grey
[
500
],
size:
screenize
.
width
*
0.01
,
),
SizedBox
(
width:
10
,
),
Text
(
"No Hp"
),
],
),
SizedBox
(
height:
5
,),
Row
(
children:
[
Container
(
height:
40
,
width:
screenize
.
width
*
0.2
,
child:
TextFormField
(
textAlign:
TextAlign
.
start
,
decoration:
InputDecoration
(
labelText:
"Nomor Handphone"
,
hintStyle:
TextStyle
(),
border:
OutlineInputBorder
(
borderRadius:
BorderRadius
.
circular
(
5.0
),
)
),
onChanged:
null
,
),
)
],
),
SizedBox
(
height:
10
,),
Row
(
children:
[
Icon
(
Icons
.
email_outlined
,
color:
Colors
.
grey
[
500
],
size:
screenize
.
width
*
0.01
,
),
SizedBox
(
width:
10
,
),
Text
(
"Username"
),
],
),
SizedBox
(
height:
5
,),
Container
(
height:
40
,
width:
screenize
.
width
*
0.2
,
child:
TextFormField
(
textAlign:
TextAlign
.
start
,
obscureText:
_isObscure
,
decoration:
InputDecoration
(
labelText:
"Password"
,
suffixIcon:
IconButton
(
icon:
Icon
(
_isObscure
?
Icons
.
visibility
:
Icons
.
visibility_off
),
onPressed:
(){
setState
(()
{
_isObscure
=
!
_isObscure
;
});
},
),
hintStyle:
TextStyle
(),
border:
OutlineInputBorder
(
borderRadius:
BorderRadius
.
circular
(
5.0
)
),
),
),
),
Spacer
(
flex:
4
,
),
Row
(
children:
[
Container
(
height:
30
,
width:
screenize
.
width
*
0.09
,
child:
ElevatedButton
(
onPressed:
(){
},
child:
Text
(
"LOGIN"
),
),
),
SizedBox
(
width:
screenize
.
width
*
0.02
,
),
Container
(
height:
30
,
width:
screenize
.
width
*
0.09
,
child:
ElevatedButton
(
onPressed:
(){
},
child:
Text
(
"REGISTER"
),
),
)
],
),
Spacer
(
flex:
7
,
)
],
),
),
),
),
),
],
),
),
),
);
);
}
}
...
...
lib/screen/solution.dart
View file @
0a349f0f
...
@@ -8,6 +8,7 @@ import 'package:medapp_eksad/screen/solution/our_solution3.dart';
...
@@ -8,6 +8,7 @@ import 'package:medapp_eksad/screen/solution/our_solution3.dart';
import
'package:medapp_eksad/screen_small/small_footer.dart'
;
import
'package:medapp_eksad/screen_small/small_footer.dart'
;
import
'package:medapp_eksad/screen_small/small_solution/small_solution1.dart'
;
import
'package:medapp_eksad/screen_small/small_solution/small_solution1.dart'
;
import
'package:medapp_eksad/screen_small/small_solution/small_solution2.dart'
;
import
'package:medapp_eksad/screen_small/small_solution/small_solution2.dart'
;
import
'package:medapp_eksad/widget/componen.dart'
;
import
'package:medapp_eksad/widget/drawer.dart'
;
import
'package:medapp_eksad/widget/drawer.dart'
;
import
'package:medapp_eksad/widget/responsive.dart'
;
import
'package:medapp_eksad/widget/responsive.dart'
;
import
'package:flutter/services.dart'
;
import
'package:flutter/services.dart'
;
...
@@ -29,7 +30,6 @@ class Solutions extends StatefulWidget {
...
@@ -29,7 +30,6 @@ class Solutions extends StatefulWidget {
class
_SolutionsState
extends
State
<
Solutions
>
{
class
_SolutionsState
extends
State
<
Solutions
>
{
final
GlobalKey
<
ScaffoldState
>
_scaffoldKey
=
GlobalKey
<
ScaffoldState
>();
final
GlobalKey
<
ScaffoldState
>
_scaffoldKey
=
GlobalKey
<
ScaffoldState
>();
ScrollController
controller2
=
ScrollController
();
ScrollController
controller2
=
ScrollController
();
void
_scrollToIndex
(
double
index
)
{
void
_scrollToIndex
(
double
index
)
{
controller2
.
animateTo
(
index
,
controller2
.
animateTo
(
index
,
...
@@ -37,7 +37,6 @@ class _SolutionsState extends State<Solutions> {
...
@@ -37,7 +37,6 @@ class _SolutionsState extends State<Solutions> {
curve:
Curves
.
fastLinearToSlowEaseIn
);
curve:
Curves
.
fastLinearToSlowEaseIn
);
}
}
@override
@override
Widget
build
(
BuildContext
context
)
{
Widget
build
(
BuildContext
context
)
{
setPageTitle
(
'MeddApp Solutions'
,
context
);
setPageTitle
(
'MeddApp Solutions'
,
context
);
...
@@ -54,14 +53,15 @@ class _SolutionsState extends State<Solutions> {
...
@@ -54,14 +53,15 @@ class _SolutionsState extends State<Solutions> {
children:
const
[
children:
const
[
SmallOurSolution
(),
SmallOurSolution
(),
SmallOurSolution2
(),
SmallOurSolution2
(),
FooterSmall
(),
FooterSmall
(),
],
],
)
)
:
ListView
(
:
ListView
(
controller:
controller2
,
controller:
controller2
,
children:
[
children:
[
OurSolution
(
button:
ButtonSolution
(
context
),),
OurSolution
(
button:
ButtonSolution
(
context
),
),
OurSolution2
(),
OurSolution2
(),
OurSolution3
(),
OurSolution3
(),
ContactUs2
(),
ContactUs2
(),
...
@@ -71,32 +71,28 @@ class _SolutionsState extends State<Solutions> {
...
@@ -71,32 +71,28 @@ class _SolutionsState extends State<Solutions> {
);
);
}
}
ElevatedButton
ButtonSolution
(
BuildContext
context
)
{
ElevatedButton
ButtonSolution
(
BuildContext
context
)
{
return
ElevatedButton
(
return
ElevatedButton
(
onPressed:
()
{
onPressed:
()
{
_scrollToIndex
(
1500
);
_scrollToIndex
(
1500
);
},
},
style:
ElevatedButton
.
styleFrom
(
style:
DefaultColors
(),
shape:
RoundedRectangleBorder
(
// ElevatedButton.styleFrom(
borderRadius:
BorderRadius
.
circular
(
10
),
// shape: RoundedRectangleBorder(
),
// borderRadius: BorderRadius.circular(10),
primary:
Color
.
fromARGB
(
255
,
48
,
104
,
170
),
// ),
// shape: MaterialStateProperty.all(RoundedRectangleBorder(borderRadius: BorderRadius.circular(30.0))),
// primary: Color.fromARGB(255, 48, 104, 170),
),
// // shape: MaterialStateProperty.all(RoundedRectangleBorder(borderRadius: BorderRadius.circular(30.0))),
child:
const
Text
(
// ),
'FREE DEMO'
,
child:
const
Text
(
style:
TextStyle
(
'FREE DEMO'
,
fontSize:
19
,
style:
TextStyle
(
fontWeight:
FontWeight
.
w500
,
fontSize:
19
,
letterSpacing:
1.1
,
fontWeight:
FontWeight
.
w500
,
color:
Colors
.
white
),
letterSpacing:
1.1
,
),
color:
Colors
.
white
),
);
),
);
}
}
AppBar
AppBarKecil
()
{
AppBar
AppBarKecil
()
{
...
...
lib/widget/button_color.dart
View file @
0a349f0f
...
@@ -9,7 +9,7 @@ ButtonStyle DefaultColors() {
...
@@ -9,7 +9,7 @@ ButtonStyle DefaultColors() {
),
),
overlayColor:
MaterialStateProperty
.
resolveWith
<
Color
?>(
overlayColor:
MaterialStateProperty
.
resolveWith
<
Color
?>(
(
Set
<
MaterialState
>
states
)
{
(
Set
<
MaterialState
>
states
)
{
if
(
states
.
contains
(
MaterialState
.
hover
ed
))
{
if
(
states
.
contains
(
MaterialState
.
press
ed
))
{
return
Colors
.
red
;
return
Colors
.
red
;
}
//<-- SEE HERE
}
//<-- SEE HERE
return
null
;
// Defer to the widget's default.
return
null
;
// Defer to the widget's default.
...
...
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