:::

6-2 取得螢幕大小+圓角矩形

Size size = MediaQuery.of(context).size;

用法:

Container(
  width: size.width * 0.8,
  height: 300.0,
  decoration: BoxDecoration(
    color: Color(0xff1f1f1f),
    borderRadius: BorderRadius.circular(5.0)
  ),
),

http://laomengit.com/flutter/widgets/MediaQuery.html#mediaquery


:::

書籍目錄

展開 | 闔起

快速登入


http%3A%2F%2Fcampus-xoops.tn.edu.tw%2Fmodules%2Ftad_book3%2Fpage.php%3Ftbdsn%3D1886%26tbsn%3D42

計數器

今天: 1513151315131513
昨天: 8625862586258625
總計: 8032120803212080321208032120803212080321208032120