「Flutter/画像/url」の版間の差分
提供: 初心者エンジニアの簡易メモ
| 行1: | 行1: | ||
==これだけ== | ==これだけ== | ||
Image.network('https://example.com/hogehoge.png') | Image.network('https://example.com/hogehoge.png') | ||
| + | |||
| + | ==画像サイズ== | ||
| + | <pre> | ||
| + | Image.network(threads[index].thumbnail, | ||
| + | height: 40.0, | ||
| + | width: 40.0, | ||
| + | fit: BoxFit.fill); | ||
| + | ==FitType== | ||
| + | BoxFit.fill | ||
| + | BoxFit.contain | ||
| + | BoxFit.cover | ||
| + | BoxFit.fitWidth | ||
| + | BoxFit.fitHeight | ||
| + | BoxFit.none | ||
| + | BoxFit.scaleDown | ||
2019年12月18日 (水) 03:01時点における版
これだけ
Image.network('https://example.com/hogehoge.png')
画像サイズ
Image.network(threads[index].thumbnail,
height: 40.0,
width: 40.0,
fit: BoxFit.fill);
==FitType==
BoxFit.fill
BoxFit.contain
BoxFit.cover
BoxFit.fitWidth
BoxFit.fitHeight
BoxFit.none
BoxFit.scaleDown
