@@ -102,7 +102,7 @@ class _InputEndWindowState extends State<InputEndWindow> {
102102
103103 Widget blockGameplan (Matchday md, Color bg) {
104104 return Padding (
105- padding: const EdgeInsets .only (top: 5 , left: 10 , right: 10 , bottom: 40 ),
105+ padding: const EdgeInsets .only (top: 5 , left: 10 , right: 10 , bottom: 20 ),
106106 child: Material (
107107 color: bg,
108108 borderRadius: BorderRadius .circular (13 ),
@@ -164,45 +164,48 @@ class _InputEndWindowState extends State<InputEndWindow> {
164164
165165 Widget blockLivetable (Matchday md, Group g, Color bg) {
166166 return Padding (
167- padding: const EdgeInsets .symmetric (horizontal: 10 ),
168- child: Material (
169- color: bg,
170- borderRadius: BorderRadius .circular (13 ),
171- clipBehavior: Clip .hardEdge,
172- child: Padding (padding: const EdgeInsets .only (top: 4 ), child: Table (
173- defaultVerticalAlignment: TableCellVerticalAlignment .middle,
174- columnWidths: const {
175- 0 : IntrinsicColumnWidth (), // Points
176- 1 : FlexColumnWidth (), // team
177- 2 : IntrinsicColumnWidth (), // GP
178- 3 : IntrinsicColumnWidth (), // W
179- 4 : IntrinsicColumnWidth (), // D
180- 5 : IntrinsicColumnWidth (), // L
181- 6 : IntrinsicColumnWidth (), // goals
182- 7 : IntrinsicColumnWidth (), // diff
183- 8 : IntrinsicColumnWidth (), // pts
184- },
185- children: [
186- TableRow ( children: [
187- Padding (padding: const EdgeInsets .only (left: 14 ), child: Text ("P" )),
188- Padding (padding: const EdgeInsets .only (left: 12 ), child: Text ("Team" )),
189- Center (child: Text ("SP" )),
190- Center (child: Text ("S" )),
191- Center (child: Text ("U" )),
192- Center (child: Text ("N" )),
193- Center (child: Text ("Tore" )),
194- Center (child: Text ("Diff" )),
195- Center (child: Text ("P" )),
196- ],
197- ),
198- ...md
199- .rankingFromGroup (g.name)!
200- .entries.toList ().asMap ().entries
201- .map ((e) => blockLivetableTeam (md, g, md.teamFromName (e.value.key)! , e.key, bg))
202- .toList (),
203- ]
204- )),
205- )
167+ padding: const EdgeInsets .symmetric (horizontal: 10 , vertical: 10 ),
168+ child: Column (children: [
169+ Text (g.name),
170+ Material (
171+ color: bg,
172+ borderRadius: BorderRadius .circular (13 ),
173+ clipBehavior: Clip .hardEdge,
174+ child: Padding (padding: const EdgeInsets .only (top: 4 ), child: Table (
175+ defaultVerticalAlignment: TableCellVerticalAlignment .middle,
176+ columnWidths: const {
177+ 0 : IntrinsicColumnWidth (), // Points
178+ 1 : FlexColumnWidth (), // team
179+ 2 : IntrinsicColumnWidth (), // GP
180+ 3 : IntrinsicColumnWidth (), // W
181+ 4 : IntrinsicColumnWidth (), // D
182+ 5 : IntrinsicColumnWidth (), // L
183+ 6 : IntrinsicColumnWidth (), // goals
184+ 7 : IntrinsicColumnWidth (), // diff
185+ 8 : IntrinsicColumnWidth (), // pts
186+ },
187+ children: [
188+ TableRow ( children: [
189+ Padding (padding: const EdgeInsets .only (left: 14 ), child: Text ("P" )),
190+ Padding (padding: const EdgeInsets .only (left: 12 ), child: Text ("Team" )),
191+ Center (child: Text ("SP" )),
192+ Center (child: Text ("S" )),
193+ Center (child: Text ("U" )),
194+ Center (child: Text ("N" )),
195+ Center (child: Text ("Tore" )),
196+ Center (child: Text ("Diff" )),
197+ Center (child: Text ("P" )),
198+ ],
199+ ),
200+ ...md
201+ .rankingFromGroup (g.name)!
202+ .entries.toList ().asMap ().entries
203+ .map ((e) => blockLivetableTeam (md, g, md.teamFromName (e.value.key)! , e.key, bg))
204+ .toList (),
205+ ]
206+ )),
207+ )
208+ ])
206209 );
207210 }
208211
@@ -300,7 +303,8 @@ class _InputEndWindowState extends State<InputEndWindow> {
300303 Center (child: Padding (padding: EdgeInsets .only (left: 40 ), child: AutoSizeText ("ERGEBNISSE" , maxLines: 1 , style: const TextStyle (fontSize: 25 ))))
301304 ]),
302305 blockGameplan (md, secondBgColor),
303- blockLivetable (md, md.groups[0 ], secondBgColor),
306+ for (int i= 0 ; i < md.groups.length; i++ )
307+ blockLivetable (md, md.groups[i], secondBgColor),
304308 ]
305309 );
306310 }
0 commit comments