[flutter]未処理
複数のウェブサイトを一つのfirebaseプロジェクトにdeploy
「firebase : このシステムではスクリプトの実行が無効になっているため、ファイル…..」「Firebase cannot be loading because running scripts is disabled on this system」の対応
navigatorとMaterialPageRouteでその前のルートをすべて取り除く
flutterでfirebaseのリストに要素を追加
FieldValue.arrayUnion
flutterでfirebaseのリスト要素を削除
FieldValue.arrayRemove
textformfieldで日付を扱う
漢字を中国語から日本語にする
map内の値が特定の文字列を含むものだけにフィルター
filterData.removeWhere((key, value) => !(key.contains(文字列)));
mapデータをcsvとして書き出す
https://www.choge-blog.com/programming/flutterlistview-builder-map-use/
container下にのみborder
複数行の複数選択肢ボタン作成
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))),
));
}),
),
),
),
この記事が気に入ったらサポートをしてみませんか?