Widget hero(Widget text) { if (heroTag != null) return Hero(tag: heroTag!, child: text); return text; }