Semi Final 7th Aug 2024

This commit is contained in:
2024-08-07 14:24:05 +09:00
parent 66ade1fe09
commit 347861e5a1
23 changed files with 342 additions and 160 deletions

View File

@ -36,24 +36,50 @@ class _IndexPageState extends State<IndexPage> {
void initState() {
super.initState();
WidgetsBinding.instance.addPostFrameCallback((_) {
//checkEntryAndShowHelper();
//checkLoginAndShowDialog();
});
}
/*
void checkEntryAndShowHelper() async {
final hasEntry = await checkIfUserHasEntry(); // この関数は実装する必要があります
if (!hasEntry) {
showHelperDialog(
context,
'イベントに参加するには、チーム登録・メンバー登録及びエントリーが必要になります。',
'entry_helper',
showDoNotShowAgain: true,
void checkLoginAndShowDialog() {
if (indexController.currentUser.isEmpty) {
showDialog(
context: context,
barrierDismissible: false,
builder: (BuildContext context) {
return AlertDialog(
title: Text('ログインが必要です'),
content: Column(
mainAxisSize: MainAxisSize.min,
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text('1) ログインされていません。ロゲに参加するにはログインが必要です。'),
SizedBox(height: 10),
Text('2) ログイン後、個人情報入力、チーム登録、エントリー登録を行なってください。'),
SizedBox(height: 10),
Text('3) エントリー登録は場所と日にちごとに行なってください。'),
],
),
actions: [
TextButton(
child: Text('キャンセル'),
onPressed: () {
Navigator.of(context).pop();
},
),
ElevatedButton(
child: Text('ログイン'),
onPressed: () {
Navigator.of(context).pop();
Get.toNamed(AppPages.LOGIN);
},
),
],
);
},
);
}
}
*/
// class IndexPage extends GetView<IndexController> {
// IndexPage({Key? key}) : super(key: key);