Commit f77903a5 authored by Budi Prasetyo's avatar Budi Prasetyo

home2 , drawer putih , solusi

parent 8120e30b
...@@ -18,9 +18,10 @@ class Home2 extends StatelessWidget { ...@@ -18,9 +18,10 @@ class Home2 extends StatelessWidget {
), ),
child: Column( child: Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: [ children: [
Spacer( Spacer(
flex: 2, flex: 1,
), ),
Container( Container(
width: screenSize.width, width: screenSize.width,
...@@ -30,7 +31,9 @@ class Home2 extends StatelessWidget { ...@@ -30,7 +31,9 @@ class Home2 extends StatelessWidget {
color: const Color.fromARGB(255, 12, 66, 101), color: const Color.fromARGB(255, 12, 66, 101),
fontWeight: FontWeight.bold)), fontWeight: FontWeight.bold)),
), ),
SizedBox(height: 10), Spacer(
flex: 1,
),
Container( Container(
width: screenSize.width, width: screenSize.width,
height: 100, height: 100,
...@@ -44,7 +47,9 @@ class Home2 extends StatelessWidget { ...@@ -44,7 +47,9 @@ class Home2 extends StatelessWidget {
height: 1.6, height: 1.6,
fontWeight: FontWeight.w500)), fontWeight: FontWeight.w500)),
), ),
SizedBox(height: 10), Spacer(
flex: 1,
),
Container( Container(
// padding: const EdgeInsets.only(left: 1), // padding: const EdgeInsets.only(left: 1),
// width: screenSize.width * 0.3, // width: screenSize.width * 0.3,
...@@ -74,7 +79,9 @@ class Home2 extends StatelessWidget { ...@@ -74,7 +79,9 @@ class Home2 extends StatelessWidget {
], ],
), ),
), ),
SizedBox(height: 30), Spacer(
flex: 1,
),
Container( Container(
width: screenSize.width, width: screenSize.width,
height: 100, height: 100,
...@@ -90,7 +97,9 @@ class Home2 extends StatelessWidget { ...@@ -90,7 +97,9 @@ class Home2 extends StatelessWidget {
height: 1.6, height: 1.6,
fontWeight: FontWeight.w500)), fontWeight: FontWeight.w500)),
), ),
SizedBox(height: 10), Spacer(
flex: 1,
),
Container( Container(
width: screenSize.width, width: screenSize.width,
height: 100, height: 100,
...@@ -105,6 +114,9 @@ class Home2 extends StatelessWidget { ...@@ -105,6 +114,9 @@ class Home2 extends StatelessWidget {
height: 1.6, height: 1.6,
fontWeight: FontWeight.w500)), fontWeight: FontWeight.w500)),
), ),
Spacer(
flex: 1,
),
], ],
), ),
); );
......
...@@ -73,7 +73,7 @@ class _SolutionsState extends State<Solutions> { ...@@ -73,7 +73,7 @@ class _SolutionsState extends State<Solutions> {
ElevatedButton ButtonSolution(BuildContext context) { ElevatedButton ButtonSolution(BuildContext context) {
return ElevatedButton( return ElevatedButton(
onPressed: () { onPressed: () {
_scrollToIndex(1500); _scrollToIndex(500);
}, },
style: DefaultColors(), style: DefaultColors(),
// ElevatedButton.styleFrom( // ElevatedButton.styleFrom(
......
...@@ -10,17 +10,17 @@ class DrawerMedApp extends StatelessWidget { ...@@ -10,17 +10,17 @@ class DrawerMedApp extends StatelessWidget {
// backgroundColor: Color.fromARGB(255, 76, 154, 231), // backgroundColor: Color.fromARGB(255, 76, 154, 231),
width: 200, width: 200,
child: Container( child: Container(
decoration: BoxDecoration( // decoration: BoxDecoration(
color: Colors.blue, // color: Colors.blue,
gradient: LinearGradient( // gradient: LinearGradient(
colors: [ // colors: [
Colors.blue, // Colors.blue,
Colors.blue.withOpacity(0.0), // Colors.blue.withOpacity(0.0),
//
], // ],
stops: [0.0, 1.0], // stops: [0.0, 1.0],
), // ),
), // ),
child: Column( child: Column(
children: [ children: [
const SizedBox(height: 50,), const SizedBox(height: 50,),
......
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