More work with fire stats

This commit is contained in:
Vicente J. Ruiz Jurado 2018-08-01 22:47:18 +02:00
parent 74b0d37839
commit 367df46f7e
6 changed files with 46 additions and 17 deletions

View file

@ -72,8 +72,10 @@ class GenericMapBottom extends StatelessWidget {
case FireMapStatus.view:
if (state.numFires != null) {
actionList.add(new Text(state.numFires > 0
? S.of(context).firesAroundThisArea(
state.numFires.toString(), kmAround.toString())
? loc.currentNumFires == 1
? S.of(context).fireAroundThisArea(loc.distance.toString())
: S.of(context).firesAroundThisArea(
state.numFires.toString(), kmAround.toString())
: S.of(context).noFiresAroundThisArea(kmAround.toString())));
// SizedBox(width: 10.0)
}