Commit 51b6fe4e authored by GayaniPKarunaratne's avatar GayaniPKarunaratne

Add List view to the Add location form

parent d7681c5e
...@@ -82,6 +82,8 @@ Widget _buildName(){ ...@@ -82,6 +82,8 @@ Widget _buildName(){
Widget _buildPNo(){ Widget _buildPNo(){
return TextFormField( return TextFormField(
decoration: InputDecoration(labelText: 'Phone Number'), decoration: InputDecoration(labelText: 'Phone Number'),
keyboardType: TextInputType.phone,
maxLength: 10,
validator: (String value){ validator: (String value){
if (value.isEmpty) { if (value.isEmpty) {
return '*Phone Number is Required'; return '*Phone Number is Required';
...@@ -154,8 +156,6 @@ Widget _buildDate(){ ...@@ -154,8 +156,6 @@ Widget _buildDate(){
Widget _buildTime(){ Widget _buildTime(){
return TextFormField( return TextFormField(
decoration: InputDecoration(labelText: 'Time'), decoration: InputDecoration(labelText: 'Time'),
keyboardType: TextInputType.phone,
maxLength: 10,
validator: (String value){ validator: (String value){
if (value.isEmpty) { if (value.isEmpty) {
return '*Time is Required'; return '*Time is Required';
...@@ -183,8 +183,9 @@ Widget _buildTime(){ ...@@ -183,8 +183,9 @@ Widget _buildTime(){
margin: EdgeInsets.all(24), margin: EdgeInsets.all(24),
child: Form( child: Form(
key: _formKey, key: _formKey,
child: Column( child: ListView(
mainAxisAlignment: MainAxisAlignment.center, scrollDirection: Axis.vertical,
//mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[ children: <Widget>[
_buildName(), _buildName(),
_buildPNo(), _buildPNo(),
......
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