Commit 7aceccb6 authored by GayaniPKarunaratne's avatar GayaniPKarunaratne

Modification in Addlocation dart file

parent f37a7b9f
...@@ -111,8 +111,15 @@ Widget _buildName(){ ...@@ -111,8 +111,15 @@ Widget _buildName(){
return TextFormField( return TextFormField(
decoration: InputDecoration( decoration: InputDecoration(
enabledBorder: OutlineInputBorder( enabledBorder: OutlineInputBorder(
borderSide: BorderSide(color: Colors.green) borderSide: BorderSide(color: Colors.indigo[900]),
borderRadius: BorderRadius.all(Radius.circular(20))
), ),
focusedBorder: OutlineInputBorder(
borderSide: BorderSide(color: Colors.green),
borderRadius: BorderRadius.all(Radius.circular(20))
),
prefixIcon: Icon(Icons.face),
hintText: "Ex : John Smith",
labelText: 'Full Name' labelText: 'Full Name'
), ),
// ignore: missing_return // ignore: missing_return
...@@ -135,8 +142,15 @@ Widget _buildPNo(){ ...@@ -135,8 +142,15 @@ Widget _buildPNo(){
return TextFormField( return TextFormField(
decoration: InputDecoration( decoration: InputDecoration(
enabledBorder: OutlineInputBorder( enabledBorder: OutlineInputBorder(
borderSide: BorderSide(color: Colors.green) borderSide: BorderSide(color: Colors.indigo[900]),
borderRadius: BorderRadius.all(Radius.circular(20))
),
focusedBorder: OutlineInputBorder(
borderSide: BorderSide(color: Colors.green),
borderRadius: BorderRadius.all(Radius.circular(20))
), ),
prefixIcon: Icon(Icons.phone),
hintText: "Ex : 011XXXXXXX",
labelText: 'Phone Number' labelText: 'Phone Number'
), ),
keyboardType: TextInputType.phone, keyboardType: TextInputType.phone,
...@@ -160,8 +174,15 @@ Widget _buildLocation(){ ...@@ -160,8 +174,15 @@ Widget _buildLocation(){
return TextFormField( return TextFormField(
decoration: InputDecoration( decoration: InputDecoration(
enabledBorder: OutlineInputBorder( enabledBorder: OutlineInputBorder(
borderSide: BorderSide(color: Colors.green) borderSide: BorderSide(color: Colors.indigo[900]),
borderRadius: BorderRadius.all(Radius.circular(20))
), ),
focusedBorder: OutlineInputBorder(
borderSide: BorderSide(color: Colors.green),
borderRadius: BorderRadius.all(Radius.circular(20))
),
prefixIcon: Icon(Icons.location_on),
hintText: "Ex : Galle",
labelText: 'Risk Location' labelText: 'Risk Location'
), ),
validator: (String value){ validator: (String value){
...@@ -183,8 +204,15 @@ Widget _buildHotelName(){ ...@@ -183,8 +204,15 @@ Widget _buildHotelName(){
return TextFormField( return TextFormField(
decoration: InputDecoration( decoration: InputDecoration(
enabledBorder: OutlineInputBorder( enabledBorder: OutlineInputBorder(
borderSide: BorderSide(color: Colors.green) borderSide: BorderSide(color: Colors.indigo[900]),
borderRadius: BorderRadius.all(Radius.circular(20))
),
focusedBorder: OutlineInputBorder(
borderSide: BorderSide(color: Colors.green),
borderRadius: BorderRadius.all(Radius.circular(20))
), ),
prefixIcon: Icon(Icons.hotel),
hintText: "Ex : Hilton",
labelText: 'Hotel Name' labelText: 'Hotel Name'
), ),
validator: (String value){ validator: (String value){
...@@ -206,8 +234,15 @@ Widget _buildDate(){ ...@@ -206,8 +234,15 @@ Widget _buildDate(){
return TextFormField( return TextFormField(
decoration: InputDecoration( decoration: InputDecoration(
enabledBorder: OutlineInputBorder( enabledBorder: OutlineInputBorder(
borderSide: BorderSide(color: Colors.green) borderSide: BorderSide(color: Colors.indigo[900]),
borderRadius: BorderRadius.all(Radius.circular(20))
), ),
focusedBorder: OutlineInputBorder(
borderSide: BorderSide(color: Colors.green),
borderRadius: BorderRadius.all(Radius.circular(20))
),
prefixIcon: Icon(Icons.calendar_today),
hintText: "Ex : 2021/04/03",
labelText: 'Date' labelText: 'Date'
), ),
validator: (String value){ validator: (String value){
...@@ -229,8 +264,15 @@ Widget _buildTime(){ ...@@ -229,8 +264,15 @@ Widget _buildTime(){
return TextFormField( return TextFormField(
decoration: InputDecoration( decoration: InputDecoration(
enabledBorder: OutlineInputBorder( enabledBorder: OutlineInputBorder(
borderSide: BorderSide(color: Colors.green) borderSide: BorderSide(color: Colors.indigo[900]),
borderRadius: BorderRadius.all(Radius.circular(20))
),
focusedBorder: OutlineInputBorder(
borderSide: BorderSide(color: Colors.green),
borderRadius: BorderRadius.all(Radius.circular(20))
), ),
prefixIcon: Icon(Icons.lock_clock),
hintText: "Ex : 2.00 P.M",
labelText: 'Time' labelText: 'Time'
), ),
// ignore: missing_return // ignore: missing_return
...@@ -265,6 +307,7 @@ Widget _buildTime(){ ...@@ -265,6 +307,7 @@ Widget _buildTime(){
scrollDirection: Axis.vertical, scrollDirection: Axis.vertical,
//mainAxisAlignment: MainAxisAlignment.center, //mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[ children: <Widget>[
SizedBox(height: 10),
_buildName(), _buildName(),
SizedBox(height: 10), SizedBox(height: 10),
_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