:::

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

計數器

今天: 313313313
昨天: 3254325432543254
總計: 8071085807108580710858071085807108580710858071085