Commit f472cba6 authored by GayaniPKarunaratne's avatar GayaniPKarunaratne

Done code part in display no of infected people

parent c4281225
...@@ -83,7 +83,7 @@ class _SearchEventState extends State<SearchEvent> { ...@@ -83,7 +83,7 @@ class _SearchEventState extends State<SearchEvent> {
DateTime now = new DateTime.now(); DateTime now = new DateTime.now();
//Duration dur = new Duration(days: 1); //Duration dur = new Duration(days: 1);
var yesterday = now.subtract(const Duration(days: 1)); var yesterday = now.subtract(const Duration(days: 2));
// String year = yesterday.year.toString(); // String year = yesterday.year.toString();
// String month = yesterday.month.toString(); // String month = yesterday.month.toString();
// String date = yesterday.day.toString(); // String date = yesterday.day.toString();
...@@ -203,6 +203,7 @@ Widget _buildDistrict(){ ...@@ -203,6 +203,7 @@ Widget _buildDistrict(){
//---------------------------------------------No Of Infected----------------------------------------------------- //---------------------------------------------No Of Infected-----------------------------------------------------
Widget _buildNoOfInfected(){ Widget _buildNoOfInfected(){
return TextFormField( return TextFormField(
readOnly: true,
decoration: InputDecoration( decoration: InputDecoration(
enabledBorder: OutlineInputBorder( enabledBorder: OutlineInputBorder(
borderSide: BorderSide(color: Colors.indigo[900]), borderSide: BorderSide(color: Colors.indigo[900]),
...@@ -213,8 +214,8 @@ Widget _buildNoOfInfected(){ ...@@ -213,8 +214,8 @@ Widget _buildNoOfInfected(){
borderRadius: BorderRadius.all(Radius.circular(20)) borderRadius: BorderRadius.all(Radius.circular(20))
), ),
prefixIcon: Icon(Icons.people_outlined), prefixIcon: Icon(Icons.people_outlined),
hintText: "Ex : 250", hintText: "No Of Infected people",
labelText: 'No Of Infected People' labelText: noOfInfected
), ),
// ignore: missing_return // ignore: missing_return
validator: (String value){ validator: (String value){
......
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