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
0e35683d
Commit
0e35683d
authored
Sep 02, 2022
by
rizky ramadhan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
button
parent
50052a1f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
29 deletions
+25
-29
solution.dart
lib/screen/solution.dart
+24
-28
button_color.dart
lib/widget/button_color.dart
+1
-1
No files found.
lib/screen/solution.dart
View file @
0e35683d
...
...
@@ -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_solution/small_solution1.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/responsive.dart'
;
import
'package:flutter/services.dart'
;
...
...
@@ -29,7 +30,6 @@ class Solutions extends StatefulWidget {
class
_SolutionsState
extends
State
<
Solutions
>
{
final
GlobalKey
<
ScaffoldState
>
_scaffoldKey
=
GlobalKey
<
ScaffoldState
>();
ScrollController
controller2
=
ScrollController
();
void
_scrollToIndex
(
double
index
)
{
controller2
.
animateTo
(
index
,
...
...
@@ -37,7 +37,6 @@ class _SolutionsState extends State<Solutions> {
curve:
Curves
.
fastLinearToSlowEaseIn
);
}
@override
Widget
build
(
BuildContext
context
)
{
setPageTitle
(
'MeddApp Solutions'
,
context
);
...
...
@@ -54,14 +53,15 @@ class _SolutionsState extends State<Solutions> {
children:
const
[
SmallOurSolution
(),
SmallOurSolution2
(),
FooterSmall
(),
],
)
:
ListView
(
controller:
controller2
,
children:
[
OurSolution
(
button:
ButtonSolution
(
context
),),
OurSolution
(
button:
ButtonSolution
(
context
),
),
OurSolution2
(),
OurSolution3
(),
ContactUs2
(),
...
...
@@ -71,32 +71,28 @@ class _SolutionsState extends State<Solutions> {
);
}
ElevatedButton
ButtonSolution
(
BuildContext
context
)
{
return
ElevatedButton
(
onPressed:
()
{
_scrollToIndex
(
1500
);
},
style:
ElevatedButton
.
styleFrom
(
shape:
RoundedRectangleBorder
(
borderRadius:
BorderRadius
.
circular
(
10
),
),
primary:
Color
.
fromARGB
(
255
,
48
,
104
,
170
),
// shape: MaterialStateProperty.all(RoundedRectangleBorder(borderRadius: BorderRadius.circular(30.0))),
),
child:
const
Text
(
'FREE DEMO'
,
style:
TextStyle
(
fontSize:
19
,
fontWeight:
FontWeight
.
w500
,
letterSpacing:
1.1
,
color:
Colors
.
white
),
),
);
onPressed:
()
{
_scrollToIndex
(
1500
);
},
style:
DefaultColors
(),
// ElevatedButton.styleFrom(
// shape: RoundedRectangleBorder(
// borderRadius: BorderRadius.circular(10),
// ),
// primary: Color.fromARGB(255, 48, 104, 170),
// // shape: MaterialStateProperty.all(RoundedRectangleBorder(borderRadius: BorderRadius.circular(30.0))),
// ),
child:
const
Text
(
'FREE DEMO'
,
style:
TextStyle
(
fontSize:
19
,
fontWeight:
FontWeight
.
w500
,
letterSpacing:
1.1
,
color:
Colors
.
white
),
),
);
}
AppBar
AppBarKecil
()
{
...
...
lib/widget/button_color.dart
View file @
0e35683d
...
...
@@ -9,7 +9,7 @@ ButtonStyle DefaultColors() {
),
overlayColor:
MaterialStateProperty
.
resolveWith
<
Color
?>(
(
Set
<
MaterialState
>
states
)
{
if
(
states
.
contains
(
MaterialState
.
hover
ed
))
{
if
(
states
.
contains
(
MaterialState
.
press
ed
))
{
return
Colors
.
red
;
}
//<-- SEE HERE
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