Erweiterungen Ranking
This commit is contained in:
1 parent
972855789d
commit
9f89673751
5 files changed
+266
-509
No files matched your search
@@ -2,7 +2,7 @@ import 'package:flutter/material.dart';
|
||||
import 'package:isar/isar.dart';
|
||||
import 'package:stadtbote/content_views/utils/content_view_widget.dart';
|
||||
import 'package:stadtbote/content_views/utils/header_info.dart';
|
||||
import 'package:stadtbote/model/ranking.dart';
|
||||
import 'package:stadtbote/model/rank.dart';
|
||||
import 'package:stadtbote/popups/tasks_popups/zip_popup.dart';
|
||||
import 'package:stadtbote/protocoll_messages/zip_message.dart';
|
||||
import 'package:stadtbote/tools/mqtt_core.dart';
|
||||
@@ -41,14 +41,14 @@ class ApproachAreaPage extends ContentViewWidget {
|
||||
}
|
||||
|
||||
class _ApproachAreaPageState extends State<ApproachAreaPage> {
|
||||
late Ranking? _ranking;
|
||||
late List<Rank>? _rankings;
|
||||
|
||||
late bool _initCompleted = false;
|
||||
|
||||
@override
|
||||
void initState() {
|
||||
Future.delayed(const Duration(seconds: 0), () async {
|
||||
_ranking = await MyApp.isarInstance.rankings.where().findFirst();
|
||||
_rankings = await MyApp.isarInstance.ranks.where().findAll();
|
||||
|
||||
_initCompleted = true;
|
||||
|
||||
@@ -82,9 +82,9 @@ class _ApproachAreaPageState extends State<ApproachAreaPage> {
|
||||
List<Widget> _fillColumns() {
|
||||
List<Widget> columns = [];
|
||||
|
||||
if (_ranking != null) {
|
||||
for (int i = 0; i < _ranking!.ranks.length; i++) {
|
||||
var rank = _ranking!.ranks[i];
|
||||
if (_rankings != null) {
|
||||
for (int i = 0; i < _rankings!.length; i++) {
|
||||
var rank = _rankings![i];
|
||||
|
||||
List<Widget> entries = [];
|
||||
entries.add(
|
||||
|
||||
Reference in new issue
Block a user