ほぼ完成:QRcodeトライ

This commit is contained in:
2024-08-01 20:08:12 +09:00
parent 3d7a5ae0c1
commit ee007795b9
25 changed files with 3214 additions and 1121 deletions

View File

@ -126,15 +126,26 @@ class _TeamDetailPageState extends State<TeamDetailPage> {
),
SizedBox(height: 16),
DropdownButtonFormField<NewCategory>(
decoration: InputDecoration(labelText: 'カテゴリ'),
value: controller.selectedCategory.value,
items: controller.categories.map((category) => DropdownMenuItem(
value: category,
child: Text(category.categoryName),
)).toList(),
onChanged: (value) => controller.updateCategory(value),
),
Obx(() {
if (controller.categories.isEmpty) {
return Text('カテゴリデータを読み込めませんでした。', style: TextStyle(color: Colors.red));
}
return DropdownButtonFormField<NewCategory>(
decoration: InputDecoration(labelText: 'カテゴリ'),
value: controller.selectedCategory.value,
items: controller.categories.map((category) => DropdownMenuItem(
value: category,
child: Text(category.categoryName),
)).toList(),
/*
items: controller.getFilteredCategories().map((category) => DropdownMenuItem(
value: category,
child: Text(category.categoryName),
)).toList(),
*/
onChanged: (value) => controller.updateCategory(value),
);
}),
if (mode.value == 'edit')
Padding(
padding: EdgeInsets.symmetric(vertical: 16),
@ -160,7 +171,7 @@ class _TeamDetailPageState extends State<TeamDetailPage> {
? '${member.lastname} ${member.firstname}'
: member.isActive
? '${member.lastname} ${member.firstname}'
: '${member.email?.split('@')[0] ?? ''}(未承認)';
: '${member.email?.split('@')[0] ?? ''}'; //(未承認)';
return ListTile(
title: Text(displayName),
subtitle: isDummyEmail ? Text('Email未設定') : null,