- 홈 화면에 웹과 동일한 framer-motion 스타일 애니메이션 적용 - 멤버 화면 카드 스와이프 디자인으로 재구현 - 인스타그램 딥링크 지원 (url_launcher, AndroidManifest queries) - flutter_svg 추가로 SVG 아이콘 동적 strokeWidth 지원 - 바텀 네비게이션 아이콘 strokeWidth 웹과 동일하게 조정 - 멤버 화면 툴바 그림자 제거 및 인디케이터 그림자 최적화 - 탭 전환 시 애니메이션 재생 기능 추가 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
34 lines
786 B
Dart
34 lines
786 B
Dart
/// 멤버 모델
|
|
library;
|
|
|
|
class Member {
|
|
final int id;
|
|
final String name;
|
|
final String? imageUrl;
|
|
final String? birthDate;
|
|
final String? position;
|
|
final String? instagram;
|
|
final bool isFormer;
|
|
|
|
Member({
|
|
required this.id,
|
|
required this.name,
|
|
this.imageUrl,
|
|
this.birthDate,
|
|
this.position,
|
|
this.instagram,
|
|
this.isFormer = false,
|
|
});
|
|
|
|
factory Member.fromJson(Map<String, dynamic> json) {
|
|
return Member(
|
|
id: json['id'] as int,
|
|
name: json['name'] as String,
|
|
imageUrl: json['image_url'] as String?,
|
|
birthDate: json['birth_date'] as String?,
|
|
position: json['position'] as String?,
|
|
instagram: json['instagram'] as String?,
|
|
isFormer: json['is_former'] == 1 || json['is_former'] == true,
|
|
);
|
|
}
|
|
}
|