:::

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%3Ftbsn%3D42%26tbdsn%3D1886

計數器

今天: 3144314431443144
昨天: 4771477147714771
總計: 5539147553914755391475539147553914755391475539147