Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
CHILD INTELLIGENT ASSESSMENT TOOL
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
2020-046
CHILD INTELLIGENT ASSESSMENT TOOL
Commits
c207515f
Commit
c207515f
authored
Oct 30, 2020
by
Dasun Madushanka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update components-body of the DM test
parent
0e43368c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
81 additions
and
0 deletions
+81
-0
MainAppDMT/lib/screens/details/compenents/body.dart
MainAppDMT/lib/screens/details/compenents/body.dart
+81
-0
No files found.
MainAppDMT/lib/screens/details/compenents/body.dart
0 → 100644
View file @
c207515f
import
'package:DMTI_app/constants.dart'
;
import
'package:DMTI_app/models/product.dart'
;
import
'package:flutter/material.dart'
;
import
'chat_and_add_to_cart.dart'
;
import
'list_of_colors.dart'
;
import
'product_image.dart'
;
class
Body
extends
StatelessWidget
{
final
Product
product
;
const
Body
({
Key
key
,
this
.
product
})
:
super
(
key:
key
);
@override
Widget
build
(
BuildContext
context
)
{
// it provide us total height and width
Size
size
=
MediaQuery
.
of
(
context
).
size
;
// it enable scrolling on small devices
return
SafeArea
(
bottom:
false
,
child:
SingleChildScrollView
(
child:
Column
(
crossAxisAlignment:
CrossAxisAlignment
.
start
,
children:
<
Widget
>[
Container
(
width:
double
.
infinity
,
padding:
EdgeInsets
.
symmetric
(
horizontal:
kDefaultPadding
),
decoration:
BoxDecoration
(
color:
kBackgroundColor
,
borderRadius:
BorderRadius
.
only
(
bottomLeft:
Radius
.
circular
(
50
),
bottomRight:
Radius
.
circular
(
50
),
),
),
child:
Column
(
crossAxisAlignment:
CrossAxisAlignment
.
start
,
children:
<
Widget
>[
Center
(
child:
Hero
(
tag:
'
${product.id}
'
,
child:
ProductPoster
(
size:
size
,
image:
product
.
image
,
),
),
),
ListOfColors
(),
Padding
(
padding:
const
EdgeInsets
.
symmetric
(
vertical:
kDefaultPadding
/
2
),
child:
Text
(
product
.
title
,
style:
Theme
.
of
(
context
).
textTheme
.
headline6
,
),
),
Text
(
'
${product.price}
\
M
\
I
\
N'
,
style:
TextStyle
(
fontSize:
18
,
fontWeight:
FontWeight
.
w600
,
color:
kSecondaryColor
,
),
),
Padding
(
padding:
EdgeInsets
.
symmetric
(
vertical:
kDefaultPadding
/
2
),
child:
Text
(
product
.
description
,
style:
TextStyle
(
color:
kTextLightColor
),
),
),
SizedBox
(
height:
kDefaultPadding
),
],
),
),
ChatAndAddToCart
(),
],
),
),
);
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment