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