Mobile_POS_App/lib/screens/dashboard_screen.dart
Mengsreang-Channel 58e36e659c first commit
2021-02-01 17:07:44 +07:00

469 lines
20 KiB
Dart

import 'add_to_cart_screen.dart';
import 'package:flutter/material.dart';
class DashboardScreen extends StatefulWidget {
@override
_DashboardScreenState createState() => _DashboardScreenState();
}
class _DashboardScreenState extends State<DashboardScreen> {
@override
Widget build(BuildContext context) {
return Container(
child: SingleChildScrollView(
child: Padding(
padding: const EdgeInsets.symmetric(horizontal: 10.0, vertical: 5.0),
child: Column(
children: [
Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Text(
'Location ID#SMON123',
style: TextStyle(
fontSize: 12
),
),
Container(
width: 90,
child: Column(
mainAxisAlignment: MainAxisAlignment.end,
children: [
Text(
'Last Synced',
style: TextStyle(
fontSize: 12,
color: Colors.blueGrey,
),
),
Container(
child: Row(
children: [
Container(
width: 10,
height: 10,
margin: EdgeInsets.only(right: 6.0),
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(10),
color: Colors.green[400],
),
),
Text(
'3 mins ago',
style: TextStyle(
fontSize: 13
),
),
],
),
),
],
),
),
RaisedButton(
padding: EdgeInsets.symmetric(vertical: 10, horizontal: 15),
onPressed: () {},
child: Row(
children: [
Icon(
Icons.help_outline_rounded,
size: 20,
),
Text(
'Help',
style: TextStyle(
fontSize: 16
),
),
],
),
),
],
),
SizedBox(height: 10,),
Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Container(
width: 190,
height: 140,
child: Card(
elevation: 5,
child: Padding(
padding: const EdgeInsets.all(10.0),
child: Row(
children: [
Container(
width: 110,
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
'Grilled Corn',
style: TextStyle(
fontSize: 20,
fontWeight: FontWeight.bold,
),
),
SizedBox(height: 10,),
Text(
'150g',
style: TextStyle(
fontSize: 18,
color: Colors.blueGrey[300],
),
),
SizedBox(height: 30,),
Text(
'\$1.75',
style: TextStyle(
fontSize: 22,
fontWeight: FontWeight.bold,
color: Colors.deepOrange,
),
),
],
),
),
Container(
width: 50,
height: 80,
margin: EdgeInsets.only(top: 20),
child: Container(
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(10),
image: DecorationImage(
fit: BoxFit.cover,
image: NetworkImage('https://images.pexels.com/photos/286283/pexels-photo-286283.jpeg?auto=compress&cs=tinysrgb&h=750&w=1260'),
),
),
),
),
],
),
),
),
),
Container(
width: 190,
height: 140,
child: Card(
elevation: 5,
child: Padding(
padding: const EdgeInsets.all(10.0),
child: Row(
children: [
Container(
width: 110,
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
'Fruit',
style: TextStyle(
fontSize: 20,
fontWeight: FontWeight.bold,
),
),
SizedBox(height: 10,),
Text(
'140g',
style: TextStyle(
fontSize: 18,
color: Colors.blueGrey[300],
),
),
SizedBox(height: 30,),
Text(
'\$1.65',
style: TextStyle(
fontSize: 22,
fontWeight: FontWeight.bold,
color: Colors.deepOrange,
),
),
],
),
),
Container(
width: 50,
height: 80,
margin: EdgeInsets.only(top: 20),
child: Container(
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(10),
image: DecorationImage(
fit: BoxFit.cover,
image: NetworkImage('https://images.pexels.com/photos/1435735/pexels-photo-1435735.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=750&w=1260'),
),
),
),
),
],
),
),
),
),
],
),
SizedBox(height: 10,),
Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Container(
width: 190,
height: 140,
child: Card(
elevation: 5,
child: Padding(
padding: const EdgeInsets.all(10.0),
child: Row(
children: [
Container(
width: 110,
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
'Cho Cafe',
style: TextStyle(
fontSize: 20,
fontWeight: FontWeight.bold,
),
),
SizedBox(height: 10,),
Text(
'50g',
style: TextStyle(
fontSize: 18,
color: Colors.blueGrey[300],
),
),
SizedBox(height: 30,),
Text(
'\$0.75',
style: TextStyle(
fontSize: 22,
fontWeight: FontWeight.bold,
color: Colors.deepOrange,
),
),
],
),
),
Container(
width: 50,
height: 80,
margin: EdgeInsets.only(top: 20),
child: Container(
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(10),
image: DecorationImage(
fit: BoxFit.cover,
image: NetworkImage('https://images.pexels.com/photos/3206433/pexels-photo-3206433.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=750&w=1260'),
),
),
),
),
],
),
),
),
),
Container(
width: 190,
height: 140,
child: Card(
elevation: 5,
child: Padding(
padding: const EdgeInsets.all(10.0),
child: Row(
children: [
Container(
width: 110,
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
'Che Soup',
style: TextStyle(
fontSize: 20,
fontWeight: FontWeight.bold,
),
),
SizedBox(height: 10,),
Text(
'90g',
style: TextStyle(
fontSize: 18,
color: Colors.blueGrey[300],
),
),
SizedBox(height: 30,),
Text(
'\$2.75',
style: TextStyle(
fontSize: 22,
fontWeight: FontWeight.bold,
color: Colors.deepOrange,
),
),
],
),
),
Container(
width: 50,
height: 80,
margin: EdgeInsets.only(top: 20),
child: Container(
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(10),
image: DecorationImage(
fit: BoxFit.cover,
image: NetworkImage('https://images.pexels.com/photos/3662104/pexels-photo-3662104.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=750&w=1260'),
),
),
),
),
],
),
),
),
),
],
),
SizedBox(height: 10,),
Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Container(
width: 190,
height: 140,
child: Card(
elevation: 5,
child: Padding(
padding: const EdgeInsets.all(10.0),
child: Row(
children: [
Container(
width: 110,
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
'Nat Milk',
style: TextStyle(
fontSize: 20,
fontWeight: FontWeight.bold,
),
),
SizedBox(height: 10,),
Text(
'80g',
style: TextStyle(
fontSize: 18,
color: Colors.blueGrey[300],
),
),
SizedBox(height: 30,),
Text(
'\$1.85',
style: TextStyle(
fontSize: 22,
fontWeight: FontWeight.bold,
color: Colors.deepOrange,
),
),
],
),
),
Container(
width: 50,
height: 80,
margin: EdgeInsets.only(top: 20),
child: Container(
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(10),
image: DecorationImage(
fit: BoxFit.cover,
image: NetworkImage('https://images.pexels.com/photos/1435706/pexels-photo-1435706.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=750&w=1260'),
),
),
),
),
],
),
),
),
),
Container(
width: 190,
height: 140,
child: Card(
elevation: 5,
child: Padding(
padding: const EdgeInsets.all(10.0),
child: Row(
children: [
Container(
width: 110,
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
'Cho Cake',
style: TextStyle(
fontSize: 20,
fontWeight: FontWeight.bold,
),
),
SizedBox(height: 10,),
Text(
'120g',
style: TextStyle(
fontSize: 18,
color: Colors.blueGrey[300],
),
),
SizedBox(height: 30,),
Text(
'\$1.95',
style: TextStyle(
fontSize: 22,
fontWeight: FontWeight.bold,
color: Colors.deepOrange,
),
),
],
),
),
Container(
width: 50,
height: 80,
margin: EdgeInsets.only(top: 20),
child: Container(
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(10),
image: DecorationImage(
fit: BoxFit.cover,
image: NetworkImage('https://images.pexels.com/photos/1998635/pexels-photo-1998635.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=750&w=1260'),
),
),
),
),
],
),
),
),
),
],
),
],
),
),
),
);
}
}