GameHistoryView anpassen #20
@@ -5,8 +5,8 @@ import 'package:game_tracker/data/dto/group.dart';
|
|||||||
import 'package:game_tracker/data/dto/player.dart';
|
import 'package:game_tracker/data/dto/player.dart';
|
||||||
import 'package:game_tracker/presentation/widgets/tiles/game_history_tile.dart';
|
import 'package:game_tracker/presentation/widgets/tiles/game_history_tile.dart';
|
||||||
import 'package:game_tracker/presentation/widgets/top_centered_message.dart';
|
import 'package:game_tracker/presentation/widgets/top_centered_message.dart';
|
||||||
|
import 'package:game_tracker/presentation/widgets/app_skeleton.dart'; // Add this import
|
||||||
import 'package:provider/provider.dart';
|
import 'package:provider/provider.dart';
|
||||||
import 'package:skeletonizer/skeletonizer.dart';
|
|
||||||
|
|
||||||
class GameHistoryView extends StatefulWidget {
|
class GameHistoryView extends StatefulWidget {
|
||||||
|
gelbeinhalb marked this conversation as resolved
Outdated
|
|||||||
const GameHistoryView({super.key});
|
const GameHistoryView({super.key});
|
||||||
@@ -86,21 +86,8 @@ class _GameHistoryViewState extends State<GameHistoryView> {
|
|||||||
..sort((a, b) => b.createdAt.compareTo(a.createdAt)))
|
..sort((a, b) => b.createdAt.compareTo(a.createdAt)))
|
||||||
.toList();
|
.toList();
|
||||||
|
|
||||||
return Skeletonizer(
|
return AppSkeleton(
|
||||||
|
gelbeinhalb marked this conversation as resolved
Outdated
flixcoo
commented
Bitte das Custom Widget Bitte das Custom Widget `AppSkeleton` aus `development` hier noch Implementieren
|
|||||||
effect: PulseEffect(
|
|
||||||
from: Colors.grey[800]!,
|
|
||||||
to: Colors.grey[600]!,
|
|
||||||
duration: const Duration(milliseconds: 800),
|
|
||||||
),
|
|
||||||
enabled: isLoading,
|
enabled: isLoading,
|
||||||
enableSwitchAnimation: true,
|
|
||||||
switchAnimationConfig: const SwitchAnimationConfig(
|
|
||||||
duration: Duration(milliseconds: 200),
|
|
||||||
switchInCurve: Curves.linear,
|
|
||||||
switchOutCurve: Curves.linear,
|
|
||||||
transitionBuilder: AnimatedSwitcher.defaultTransitionBuilder,
|
|
||||||
layoutBuilder: AnimatedSwitcher.defaultLayoutBuilder,
|
|
||||||
),
|
|
||||||
child: ListView.builder(
|
child: ListView.builder(
|
||||||
padding: const EdgeInsets.only(bottom: 85),
|
padding: const EdgeInsets.only(bottom: 85),
|
||||||
itemCount: games.length + 1,
|
itemCount: games.length + 1,
|
||||||
|
|||||||
Reference in New Issue
Block a user
Umbennenung zu
GameViewstand mal im Raum oder?Ist nicht ein GameView das was sich öffnet wenn man auf ein Game klickt?
@mathiskir hat die jetzt
GameResultViewgenannt, aber quatsch ihr euch da sonst nochmal abIch finde wir sollten beides von
Game....ViewinMatch...Viewumbenennen.Game = Das Spiel (Brettspiel, Kartenspiel)
Match = Eine Partie des Spiels
@flixcoo @mathiskir
Ja fand ich glaub ich sinnvoll. Dann müssten wir aber auch die entsprechenden Klassen umbenennen. Ich würde vorschlagen dass gesammelt in einem Ticket zu machen und deins so zu mergen
Ja würde ich auch sagen, weil dann ja sogar die Datenbank implementation geändert werden muss noch. Und auch unsere test json
ja, lass das hier erstmal rauslassen