From 8c8fcf095c2fb4c4026bbfcd265385c6b95e6069 Mon Sep 17 00:00:00 2001 From: Dewmal Date: Sun, 22 Mar 2020 21:17:46 +0530 Subject: [PATCH] Display case registration number instead of standard case name such as "Case 1" or "Case 2" Fix #137 --- lib/widgets/case_item.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/widgets/case_item.dart b/lib/widgets/case_item.dart index a72c8e9..13f3c92 100644 --- a/lib/widgets/case_item.dart +++ b/lib/widgets/case_item.dart @@ -46,7 +46,7 @@ class CaseItem extends StatelessWidget { crossAxisAlignment: CrossAxisAlignment.start, children: [ Text( - "CASE " + _case.id.toString(), + _case.caseNumber, style: TextStyle( fontSize: 18.0, fontWeight: FontWeight.w800), ), @@ -157,7 +157,7 @@ class CaseItem extends StatelessWidget { ? RaisedButton( color: TrackerColors.primaryColor, child: Text( - "REGISTER ME, I WAS THERE", + "REGISTER", style: TextStyle(color: Colors.white), ), shape: RoundedRectangleBorder(