[flutter]未処理

  1. 複数のウェブサイトを一つのfirebaseプロジェクトにdeploy

    1. https://www.youtube.com/watch?v=MVj17xZQ4kE

  2. 「firebase : このシステムではスクリプトの実行が無効になっているため、ファイル…..」「Firebase cannot be loading because running scripts is disabled on this system」の対応

    1. https://stackoverflow.com/questions/60594178/firebase-cannot-be-loading-because-running-scripts-is-disabled-on-this-system

  3. navigatorとMaterialPageRouteでその前のルートをすべて取り除く

    1. https://stackoverflow.com/a/57233955/19464995

  4. flutterでfirebaseのリストに要素を追加

    1. FieldValue.arrayUnion

  5. flutterでfirebaseのリスト要素を削除

    1. FieldValue.arrayRemove

  6. textformfieldで日付を扱う

    1. https://www.choge-blog.com/programming/flutterdatepicker-textformfield-input/

  7. 漢字を中国語から日本語にする

    1. https://zenn.dev/enoiu/articles/596078e878145d

  8. map内の値が特定の文字列を含むものだけにフィルター

    1. filterData.removeWhere((key, value) => !(key.contains(文字列)));

  9. mapデータをcsvとして書き出す

    1. https://iamkaival.medium.com/read-write-csv-in-flutter-web-9f8ec960914c

Container(
                                  height: 180,
                                  width: 450,
                                  child: Ink(
                                    color: Colors.white,
                                    child: GridView.count(
                                      primary: true,
                                      crossAxisCount: 3,
                                      mainAxisSpacing: 10,
                                      crossAxisSpacing: 10,
                                      childAspectRatio: 2.5,
                                      children: List.generate(isSelected.length, (index) {
                                        return InkWell(
                                            onTap: () {
                                              setState(() {
                                                for (int buttonIndex = 0; buttonIndex < isSelected.length; buttonIndex++) {
                                                  if (buttonIndex == index) {
                                                    isSelected[buttonIndex] = !isSelected[buttonIndex];
                                                  } else {
                                                    isSelected[buttonIndex] = false;
                                                  }
                                                }
                                              });
                                            },
                                            child: Container(
                                              decoration: BoxDecoration(
                                                  color: isSelected[index] ? Colors.brown[100] : Colors.white,
                                                  borderRadius: BorderRadius.circular(8),
                                                  border: Border.all(
                                                    color: isSelected[index] ? const Color.fromARGB(255, 215, 204, 200) : Colors.brown,
                                                    width: 3,
                                                  )),
                                              child: Align(
                                                  alignment: Alignment.center,
                                                  child: Text(textList[index], style: TextStyle(fontSize: 20, color: isSelected[index] ? Colors.white : Colors.brown))),
                                            ));
                                      }),
                                    ),
                                  ),
                                ),


この記事が気に入ったらサポートをしてみませんか?