v1.4.2+63
All checks were successful
Flutter Schmutter / build (push) Successful in 3m51s

This commit is contained in:
2025-06-21 16:28:57 +02:00
parent 73a44bb269
commit 7a88c23e57
10 changed files with 285 additions and 156 deletions

17
lib/models/user.dart Normal file
View File

@ -0,0 +1,17 @@
class User {
final int id;
final String username;
final String? avatarUrl;
User({required this.id, required this.username, this.avatarUrl});
factory User.fromJson(Map<String, dynamic> json) {
return User(
id: json['userid'],
username: json['user'],
avatarUrl: json['avatar'] != null
? 'https://f0ck.me/t/${json['avatar']}.webp'
: null,
);
}
}