チーム編集時の文字化け修正済み

This commit is contained in:
2024-07-28 08:39:10 +09:00
parent 08ffc42cdd
commit 7f8adeea01
8 changed files with 349 additions and 119 deletions

View File

@ -19,6 +19,16 @@ class NewCategory {
required this.female,
});
@override
bool operator ==(Object other) =>
identical(this, other) ||
other is NewCategory &&
runtimeType == other.runtimeType &&
id == other.id;
@override
int get hashCode => id.hashCode;
factory NewCategory.fromJson(Map<String, dynamic> json) {
return NewCategory(
id: json['id'] ?? 0,

View File

@ -1,5 +1,6 @@
// lib/models/team.dart
import 'dart:convert';
import 'category.dart';
import 'user.dart';
@ -10,6 +11,7 @@ class Team {
final NewCategory category;
final User owner;
Team({
required this.id,
required this.zekkenNumber,