ほぼ完成:QRcodeトライ
This commit is contained in:
@ -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,
|
||||
|
||||
Reference in New Issue
Block a user