Commit 5347ae80 authored by Budi Prasetyo's avatar Budi Prasetyo

dashboard

parent caa14fd5
import 'package:flutter/material.dart';
class Dashboard1 extends StatelessWidget {
const Dashboard1({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
var screenSize = MediaQuery.of(context).size;
return Stack(
children: [
Image.asset('assets/images/medapp_image1.png',height: screenSize.height,width: screenSize.width,)
],
);
}
}
import 'package:flutter/material.dart';
import 'package:google_fonts/google_fonts.dart';
class Dashboard3 extends StatefulWidget {
const Dashboard3({Key? key}) : super(key: key);
@override
State<Dashboard3> createState() => _Dashboard3State();
}
class _Dashboard3State extends State<Dashboard3> {
final TextEditingController phoneController = TextEditingController();
@override
Widget build(BuildContext context) {
var screenSize = MediaQuery.of(context).size;
return Container(
height: screenSize.height,
width: screenSize.width,
child: Center(
child: Container(
height: screenSize.height*0.7,
width: screenSize.width*0.6,
decoration: BoxDecoration(
color: Colors.white60,
borderRadius: BorderRadius.circular(20),
border: Border.all(
width: 5,
color: const Color.fromARGB(255, 10, 116, 255),
),
boxShadow: [
BoxShadow(
color: const Color.fromARGB(255, 10, 116, 255)
.withAlpha(60),
blurRadius: 5.0,
spreadRadius: 5.0,
offset: const Offset(
0.0,
3.0,
),
),
]),
child: Column(
crossAxisAlignment: CrossAxisAlignment.center,
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: [
Padding(
padding: EdgeInsets.symmetric(horizontal: screenSize.width*0.08),
child: ListTile(
minLeadingWidth: 10,
leading: Icon(Icons.whatsapp,color: Colors.green,size: 40),
title: Text('Change WhatsApp Admin Number',
style: GoogleFonts.poppins(height: 1.5,fontSize: 25,fontWeight: FontWeight.bold,color: Colors.green),
),
),
),
Form(
child: Column(
crossAxisAlignment: CrossAxisAlignment.center,
mainAxisAlignment: MainAxisAlignment.spaceAround,
children: [
Container(
width: 250,
child: TextFormField(
controller: phoneController,
decoration: const InputDecoration(
hintText: "Enter a whatsapp number",
fillColor: Colors.white,
filled: true,
enabledBorder: OutlineInputBorder(
borderRadius: BorderRadius.zero,
borderSide:
BorderSide(width: 1, color: Colors.blue),
),
focusedBorder: OutlineInputBorder(
borderRadius: BorderRadius.zero,
borderSide:
BorderSide(width: 1, color: Colors.blue),
),
),
),
),
SizedBox(height: 20,),
Container(
height : 40,
width : 180,
child: ElevatedButton(
onPressed: (){},
style: ElevatedButton.styleFrom(
primary: Colors.blue[900],
onSurface: Colors.white,
side: BorderSide(
color: Colors.white
),
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.all(Radius.circular(30)
),
),
),
child: Text(
"Change Number",
style: TextStyle(
fontSize: 16,
letterSpacing: 2
),
),
),
),
],
),
)
],
),
),
),
);
}
}
import 'package:flutter/material.dart';
import 'package:easy_sidemenu/easy_sidemenu.dart';
import 'package:medapp_eksad/dashboard/admin/admin_dashboard.dart';
import 'package:medapp_eksad/dashboard/admin/admin_whatsapp.dart';
class DashboardAdmin extends StatefulWidget {
const DashboardAdmin({Key? key}) : super(key: key);
......@@ -143,15 +145,7 @@ class _DashboardAdminState extends State<DashboardAdmin> {
child: PageView(
controller: page,
children: [
Container(
color: Colors.white,
child: const Center(
child: Text(
'Dashboard',
style: TextStyle(fontSize: 35),
),
),
),
const Dashboard1(),
Container(
color: Colors.white,
child: const Center(
......@@ -170,20 +164,22 @@ class _DashboardAdminState extends State<DashboardAdmin> {
),
),
),
Dashboard3(),
Container(
color: Colors.white,
child: const Center(
child: Text(
'Download',
'Settings',
style: TextStyle(fontSize: 35),
),
),
),
Container(
color: Colors.white,
child: const Center(
child: Text(
'Settings',
'Dashboard',
style: TextStyle(fontSize: 35),
),
),
......
......@@ -21,7 +21,7 @@ class ContactUs2 extends StatelessWidget {
Widget build(BuildContext context) {
var screenSize = MediaQuery.of(context).size;
return Container(
height: 500,
height: 460,
width: screenSize.width,
// color: Colors.blue,
decoration: const BoxDecoration(
......
......@@ -11,7 +11,7 @@ class Home2 extends StatelessWidget {
return Container(
width: screenSize.width * 0.5,
color: const Color.fromARGB(255, 227, 235, 253),
height: screenSize.height * 0.9,
height: screenSize.height * 1.1,
padding: EdgeInsets.only(
left: screenSize.width * 0.10,
right: screenSize.width * 0.10,
......
......@@ -66,9 +66,11 @@ class Home4 extends StatelessWidget {
height: 100,
width: ScreenSize.width *0.30,
child: Text(
"MedApps menyediakan Aplikasi Mobile dan juga website yang bisa anda kunjungi",
"Now this application is available on your smartphone, Download now !",
style: TextStyle(
fontSize: 18,
fontSize: 21,
height: 1.3,
letterSpacing: 1.3,
color: Colors.white
),
)
......@@ -95,7 +97,7 @@ class Home4 extends StatelessWidget {
),
),
child: Text(
"LEARN MORE",
"Download",
style: TextStyle(
fontSize: 18,
letterSpacing: 2
......
......@@ -2,9 +2,6 @@ import 'package:flutter/material.dart';
import 'package:carousel_slider/carousel_slider.dart';
final List<String> imgList = [
'images/homepage.png',
'images/solution.jpg',
'images/contactus1.jpg',
'images/solution1.jpg',
'images/solution2.jpg',
......
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