Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
2
2021-035-CoviDefender
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
1
Merge Requests
1
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
2021-035
2021-035-CoviDefender
Commits
f37a7b9f
Commit
f37a7b9f
authored
Jul 03, 2021
by
GayaniPKarunaratne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change some codes in Addlocation dart file
parent
cd54b311
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
44 additions
and
7 deletions
+44
-7
lib/EAnalyzer/AddLocation.dart
lib/EAnalyzer/AddLocation.dart
+44
-7
No files found.
lib/EAnalyzer/AddLocation.dart
View file @
f37a7b9f
...
...
@@ -109,7 +109,13 @@ final GlobalKey<FormState> _formKey = GlobalKey<FormState>();
//---------------------------------------------User Name-----------------------------------------------------
Widget
_buildName
(
){
return
TextFormField
(
decoration:
InputDecoration
(
labelText:
'Full Name'
),
decoration:
InputDecoration
(
enabledBorder:
OutlineInputBorder
(
borderSide:
BorderSide
(
color:
Colors
.
green
)
),
labelText:
'Full Name'
),
// ignore: missing_return
validator:
(
String
value
){
if
(
value
.
isEmpty
)
{
return
'*Full Name is Required'
;
...
...
@@ -127,7 +133,12 @@ Widget _buildName(){
//---------------------------------------------Phone Number-----------------------------------------------------
Widget
_buildPNo
(
){
return
TextFormField
(
decoration:
InputDecoration
(
labelText:
'Phone Number'
),
decoration:
InputDecoration
(
enabledBorder:
OutlineInputBorder
(
borderSide:
BorderSide
(
color:
Colors
.
green
)
),
labelText:
'Phone Number'
),
keyboardType:
TextInputType
.
phone
,
maxLength:
10
,
validator:
(
String
value
){
...
...
@@ -147,7 +158,12 @@ Widget _buildPNo(){
//---------------------------------------------Risk Location-----------------------------------------------------
Widget
_buildLocation
(
){
return
TextFormField
(
decoration:
InputDecoration
(
labelText:
'Risk Location'
),
decoration:
InputDecoration
(
enabledBorder:
OutlineInputBorder
(
borderSide:
BorderSide
(
color:
Colors
.
green
)
),
labelText:
'Risk Location'
),
validator:
(
String
value
){
if
(
value
.
isEmpty
)
{
return
'*Risk Location is Required'
;
...
...
@@ -165,7 +181,12 @@ Widget _buildLocation(){
//---------------------------------------------Hotel Name-----------------------------------------------------
Widget
_buildHotelName
(
){
return
TextFormField
(
decoration:
InputDecoration
(
labelText:
'Hotel Name'
),
decoration:
InputDecoration
(
enabledBorder:
OutlineInputBorder
(
borderSide:
BorderSide
(
color:
Colors
.
green
)
),
labelText:
'Hotel Name'
),
validator:
(
String
value
){
if
(
value
.
isEmpty
)
{
return
'*Hotel Name is Required'
;
...
...
@@ -183,7 +204,12 @@ Widget _buildHotelName(){
//---------------------------------------------Date-----------------------------------------------------
Widget
_buildDate
(
){
return
TextFormField
(
decoration:
InputDecoration
(
labelText:
'Date'
),
decoration:
InputDecoration
(
enabledBorder:
OutlineInputBorder
(
borderSide:
BorderSide
(
color:
Colors
.
green
)
),
labelText:
'Date'
),
validator:
(
String
value
){
if
(
value
.
isEmpty
)
{
return
'*Date is Required'
;
...
...
@@ -201,7 +227,13 @@ Widget _buildDate(){
//---------------------------------------------Time-----------------------------------------------------
Widget
_buildTime
(
){
return
TextFormField
(
decoration:
InputDecoration
(
labelText:
'Time'
),
decoration:
InputDecoration
(
enabledBorder:
OutlineInputBorder
(
borderSide:
BorderSide
(
color:
Colors
.
green
)
),
labelText:
'Time'
),
// ignore: missing_return
validator:
(
String
value
){
if
(
value
.
isEmpty
)
{
return
'*Time is Required'
;
...
...
@@ -234,14 +266,19 @@ Widget _buildTime(){
//mainAxisAlignment: MainAxisAlignment.center,
children:
<
Widget
>[
_buildName
(),
SizedBox
(
height:
10
),
_buildPNo
(),
SizedBox
(
height:
10
),
_buildLocation
(),
SizedBox
(
height:
10
),
_buildHotelName
(),
SizedBox
(
height:
10
),
_buildDate
(),
SizedBox
(
height:
10
),
_buildTime
(),
SizedBox
(
height:
10
0
),
SizedBox
(
height:
5
0
),
RaisedButton
(
color:
Colors
.
green
,
child:
Text
(
...
...
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