Commit 9d8c7357 authored by Budi Prasetyo's avatar Budi Prasetyo

small screen buat demo

parent 24343d95
......@@ -24,10 +24,8 @@ class DemoUser extends StatefulWidget {
}
class _DemoUserState extends State<DemoUser> {
final GlobalKey<ScaffoldState> _scaffoldKey = new GlobalKey<ScaffoldState>();
@override
Widget build(BuildContext context) {
// setPageTitle('Free Demo Medapp', context);
......@@ -41,26 +39,30 @@ class _DemoUserState extends State<DemoUser> {
appBar: ResponsiveWidget.isSmallScreen(context)
? AppBarKecil()
: AppbarHomeLargeUser(screenSize, context, Colors.black, Colors.black,
Colors.black, Colors.black, Colors.black,Colors.blue),
Colors.black, Colors.black, Colors.black, Colors.blue),
drawer: const DrawerMedApp(),
body: Container(
width: screenSize.width,
height: screenSize.height,
child: Column(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: [
Center(child: Text('Welcome, $mail',style: GoogleFonts.poppins(fontSize: 25),),),
Row(
body: ResponsiveWidget.isSmallScreen(context)
? Container(
padding: EdgeInsets.symmetric(horizontal: screenSize.width*0.1),
width: screenSize.width,
height: screenSize.height,
child: Column(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: [
Box(
wijet: ElevatedButton.icon(
onPressed: () {},
icon: Icon(
Center(
child: Text(
'Welcome, $mail',
style: GoogleFonts.poppins(fontSize: 25),
),
),
Card(
child: ListTile(
onTap: (){},
leading: Icon(
Icons.download,
size: 40,
),
label: Text(
title: Text(
'Download APK',
style: GoogleFonts.poppins(
fontSize: 20, fontWeight: FontWeight.w600),
......@@ -68,14 +70,14 @@ class _DemoUserState extends State<DemoUser> {
),
),
),
Box(
wijet: ElevatedButton.icon(
onPressed: () {},
icon: Icon(
Card(
child: ListTile(
onTap: (){},
leading: Icon(
Icons.tv,
size: 40,
),
label: Text(
title: Text(
'TV Display',
style: GoogleFonts.poppins(
fontSize: 20, fontWeight: FontWeight.w600),
......@@ -83,14 +85,14 @@ class _DemoUserState extends State<DemoUser> {
),
),
),
Box(
wijet: ElevatedButton.icon(
onPressed: () {},
icon: Icon(
Card(
child: ListTile(
onTap: (){},
leading: Icon(
Icons.phone_android,
size: 40,
),
label: Text(
title: Text(
'Kiosk',
style: GoogleFonts.poppins(
fontSize: 20, fontWeight: FontWeight.w600),
......@@ -98,27 +100,120 @@ class _DemoUserState extends State<DemoUser> {
),
),
),
Box(
wijet: ElevatedButton.icon(
onPressed: () {},
icon: Icon(
Card(
child: ListTile(
onTap: (){},
leading: Icon(
Icons.browser_updated,
size: 40,
),
label: Text(
'Web Admin',
title: Text(
'Website Admin',
style: GoogleFonts.poppins(
fontSize: 20, fontWeight: FontWeight.w600),
textAlign: TextAlign.center,
),
),
),
ElevatedButton(
onPressed: () {
context.read<FirebaseAuthMethods>().signOut(context);
Navigator.pushNamed(context, '/');
},
style: ElevatedButton.styleFrom(
primary: const Color(0xff1e5ea8),
fixedSize: const Size(130, 45),
onPrimary: Colors.red,
),
child: const Text(
'Logout',
style: TextStyle(
color: Colors.white, fontSize: 19, fontWeight: FontWeight.w500),
),
),
],
),
],
),
),
)
: Container(
width: screenSize.width,
height: screenSize.height,
child: Column(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: [
Center(
child: Text(
'Welcome, $mail',
style: GoogleFonts.poppins(fontSize: 25),
),
),
Row(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: [
Box(
wijet: ElevatedButton.icon(
onPressed: () {},
icon: Icon(
Icons.download,
size: 40,
),
label: Text(
'Download APK',
style: GoogleFonts.poppins(
fontSize: 20, fontWeight: FontWeight.w600),
textAlign: TextAlign.center,
),
),
),
Box(
wijet: ElevatedButton.icon(
onPressed: () {},
icon: Icon(
Icons.tv,
size: 40,
),
label: Text(
'TV Display',
style: GoogleFonts.poppins(
fontSize: 20, fontWeight: FontWeight.w600),
textAlign: TextAlign.center,
),
),
),
Box(
wijet: ElevatedButton.icon(
onPressed: () {},
icon: Icon(
Icons.phone_android,
size: 40,
),
label: Text(
'Kiosk',
style: GoogleFonts.poppins(
fontSize: 20, fontWeight: FontWeight.w600),
textAlign: TextAlign.center,
),
),
),
Box(
wijet: ElevatedButton.icon(
onPressed: () {},
icon: Icon(
Icons.browser_updated,
size: 40,
),
label: Text(
'Web Admin',
style: GoogleFonts.poppins(
fontSize: 20, fontWeight: FontWeight.w600),
textAlign: TextAlign.center,
),
),
),
],
),
],
),
),
);
}
......
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