Commit 767f729c authored by Budi Prasetyo's avatar Budi Prasetyo

homepage , 1 , 3

parent 17566d6d
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:google_fonts/google_fonts.dart';
import 'package:medapp_eksad/appbar/appbar_home.dart'; import 'package:medapp_eksad/appbar/appbar_home.dart';
import 'package:medapp_eksad/screen/contact_us/contact_us2.dart';
import 'package:medapp_eksad/screen/footer.dart'; import 'package:medapp_eksad/screen/footer.dart';
import 'package:medapp_eksad/screen/home/home1.dart'; import 'package:medapp_eksad/screen/home/home1.dart';
import 'package:medapp_eksad/screen/home/home2.dart'; import 'package:medapp_eksad/screen/home/home2.dart';
import 'package:medapp_eksad/screen/home/home3.dart'; import 'package:medapp_eksad/screen/home/home3.dart';
import 'package:medapp_eksad/screen_small/small_footer.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:medapp_eksad/widget/whatsapp.dart'; import 'package:medapp_eksad/widget/whatsapp.dart';
...@@ -37,13 +38,24 @@ class _HomePageState extends State<HomePage> { ...@@ -37,13 +38,24 @@ class _HomePageState extends State<HomePage> {
? AppBarKecil() ? AppBarKecil()
: AppbarHomeLarge(screenSize, context, Colors.blue, Colors.blue, : AppbarHomeLarge(screenSize, context, Colors.blue, Colors.blue,
Colors.black, Colors.black, Colors.black), Colors.black, Colors.black, Colors.black),
drawer: DrawerMeddApp(), drawer: const DrawerMeddApp(),
body: ListView( body: ResponsiveWidget.isSmallScreen(context)
? ListView(
children: [ children: [
Home1(), const Home1(),
Home2(), const Home2(),
Home3(), const Home3(),
Footer(), ContactUs2(),
const FooterSmall(),
],
)
: ListView(
children: [
const Home1(),
const Home2(),
const Home3(),
ContactUs2(),
const Footer(),
], ],
), ),
); );
...@@ -53,7 +65,7 @@ class _HomePageState extends State<HomePage> { ...@@ -53,7 +65,7 @@ class _HomePageState extends State<HomePage> {
return AppBar( return AppBar(
leading: IconButton( leading: IconButton(
onPressed: () => _scaffoldKey.currentState!.openDrawer(), onPressed: () => _scaffoldKey.currentState!.openDrawer(),
icon: Icon( icon: const Icon(
Icons.list_outlined, Icons.list_outlined,
size: 30, size: 30,
color: Colors.black, color: Colors.black,
...@@ -61,13 +73,11 @@ class _HomePageState extends State<HomePage> { ...@@ -61,13 +73,11 @@ class _HomePageState extends State<HomePage> {
), ),
backgroundColor: Colors.white, backgroundColor: Colors.white,
centerTitle: true, centerTitle: true,
title: Container( title: SizedBox(
child: SizedBox(
height: 50, height: 50,
width: 150, width: 150,
child: Image.asset("assets/logo/medapp-logo.png"), child: Image.asset("assets/logo/medapp-logo.png"),
), ),
),
// ), // ),
); );
......
...@@ -16,7 +16,7 @@ class Home1 extends StatelessWidget { ...@@ -16,7 +16,7 @@ class Home1 extends StatelessWidget {
Container( Container(
width: screenSize.width, width: screenSize.width,
height: screenSize.height * 0.7, height: screenSize.height * 0.7,
decoration: BoxDecoration( decoration: const BoxDecoration(
color: Colors.transparent, color: Colors.transparent,
image: DecorationImage( image: DecorationImage(
image: AssetImage( image: AssetImage(
...@@ -35,7 +35,7 @@ class Home1 extends StatelessWidget { ...@@ -35,7 +35,7 @@ class Home1 extends StatelessWidget {
Colors.blue.withOpacity(0.0), Colors.blue.withOpacity(0.0),
Colors.blue, Colors.blue,
], ],
stops: [0.0, 1.0], stops: const [0.0, 1.0],
), ),
), ),
), ),
...@@ -44,7 +44,7 @@ class Home1 extends StatelessWidget { ...@@ -44,7 +44,7 @@ class Home1 extends StatelessWidget {
width: screenSize.width, width: screenSize.width,
height: screenSize.height * 0.6, height: screenSize.height * 0.6,
padding: EdgeInsets.only( padding: EdgeInsets.only(
left: screenSize.width * 0.4, top: screenSize.height * 0.2), left: screenSize.width * 0.4, top: screenSize.height * 0.12),
child: Column( child: Column(
crossAxisAlignment: CrossAxisAlignment.center, crossAxisAlignment: CrossAxisAlignment.center,
mainAxisAlignment: MainAxisAlignment.spaceEvenly, mainAxisAlignment: MainAxisAlignment.spaceEvenly,
......
...@@ -81,6 +81,7 @@ class _Home3State extends State<Home3> { ...@@ -81,6 +81,7 @@ class _Home3State extends State<Home3> {
], ],
), ),
), ),
SizedBox(width: 50,),
SizedBox( SizedBox(
width: screenSize.width * 0.2, width: screenSize.width * 0.2,
child: Column( child: Column(
...@@ -128,6 +129,7 @@ class _Home3State extends State<Home3> { ...@@ -128,6 +129,7 @@ class _Home3State extends State<Home3> {
], ],
), ),
), ),
SizedBox(width: 50,),
SizedBox( SizedBox(
width: screenSize.width * 0.2, width: screenSize.width * 0.2,
child: Column( child: Column(
...@@ -238,6 +240,7 @@ class _Home3State extends State<Home3> { ...@@ -238,6 +240,7 @@ class _Home3State extends State<Home3> {
], ],
), ),
), ),
SizedBox(width: 50,),
SizedBox( SizedBox(
width: screenSize.width * 0.2, width: screenSize.width * 0.2,
child: Column( child: Column(
...@@ -297,6 +300,7 @@ class _Home3State extends State<Home3> { ...@@ -297,6 +300,7 @@ class _Home3State extends State<Home3> {
], ],
), ),
), ),
SizedBox(width: 50,),
SizedBox( SizedBox(
width: screenSize.width * 0.2, width: screenSize.width * 0.2,
child: Column( child: Column(
......
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