:::

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

計數器

今天: 775775775
昨天: 3068306830683068
總計: 8077280807728080772808077280807728080772808077280