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

homepage , 1 , 3

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