大幅変更&環境バージョンアップ
This commit is contained in:
35
lib/widgets/category_change_dialog.dart
Normal file
35
lib/widgets/category_change_dialog.dart
Normal file
@ -0,0 +1,35 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:get/get.dart';
|
||||
|
||||
class CategoryChangeDialog extends StatelessWidget {
|
||||
final String oldCategory;
|
||||
final String newCategory;
|
||||
|
||||
const CategoryChangeDialog({
|
||||
Key? key,
|
||||
required this.oldCategory,
|
||||
required this.newCategory,
|
||||
}) : super(key: key);
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return AlertDialog(
|
||||
title: Text('カテゴリ変更の警告'),
|
||||
content: Text(
|
||||
'チームの構成変更により、カテゴリが $oldCategory から $newCategory に変更されます。'
|
||||
'このチームは既にエントリーしています。どのように処理しますか?'
|
||||
),
|
||||
actions: [
|
||||
TextButton(
|
||||
child: Text('新しいチームを作成'),
|
||||
onPressed: () => Get.back(result: true),
|
||||
),
|
||||
TextButton(
|
||||
child: Text('既存のエントリーを更新'),
|
||||
onPressed: () => Get.back(result: false),
|
||||
),
|
||||
],
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user