Commit 0a349f0f authored by Budi Prasetyo's avatar Budi Prasetyo
parents 8347a7a8 0e35683d
This diff is collapsed.
...@@ -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() {
......
...@@ -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.hovered)) { if (states.contains(MaterialState.pressed)) {
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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment