I'm Kcat
  • Home / 主页
  • Memo / 随笔小记
  • Recommand Development Tools / 开发工具推荐
  • Covers / 翻唱
  • About Me/ 关于我
Sign in Subscribe

Flutter

A collection of 1 post
Flutter Widget - SafeArea
Flutter

Flutter Widget - SafeArea

SafeArea[1] 是用于适配不规则尺寸设备的一个 Widget,如 iPhone X 这类设备 我们就在默认 Flutter 项目 - 计数器,在 iPhone Xs 基础上测试 SafeArea 这是未修改前的布局代码部分: @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar( title: Text(widget.title), ), body: Center( child: Column( mainAxisAlignment: MainAxisAlignment.center, children: <Widget>[ Text( 'You have pushed the button
03 May 2019 2 min read
Page 1 of 1
I'm Kcat © 2025
Powered by Ghost