:::

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


:::

書籍目錄

展開 | 闔起

快速登入


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

計數器

今天: 3726372637263726
昨天: 2489248924892489
總計: 8025708802570880257088025708802570880257088025708