diff --git a/lib/home.dart b/lib/home.dart index b954861..0a4aca0 100644 --- a/lib/home.dart +++ b/lib/home.dart @@ -496,7 +496,10 @@ class HomePageState extends State { const TextStyle(fontSize: 20), ), Text( - lesson["classrooms"][0]["short"], + lesson["classrooms"].length > 0 + ? lesson["classrooms"][0] + ["short"] + : "?", style: const TextStyle(fontSize: 14), ),