layout_interface library Null safety

Properties

bottomBarHeight double
底部安全区距离 dp
read / write
minInteractiveDimensionLayout double
  • kMinInteractiveDimensionCupertino
  • The Material spec on touch targets at material.io/design/usability/accessibility.html#layout-typography. 交互维数
  • read / write
    位于 Dart Packages/flutter/src/material/constans.dart AppBar工具栏组件的高度 (不包含状态栏高度)
    read / write
    screenHeight double
    当前屏幕高度 dp
    read / write
    screenWidth double
    当前屏幕宽度 dp
    read / write
    statusBarHeight double
    状态栏高度 dp 刘海屏会更高
    read / write
    tabBarHeight double
    底部导航栏的高度
    read / write

    Functions

    h(dynamic height) → dynamic
    phone高
    lh(dynamic height) → dynamic
    流式布局-高(0-1)
    lw(dynamic width) → dynamic
    流式布局-宽(0-1)
    sp(dynamic sp) → dynamic
    字体
    w(dynamic width) → dynamic
    phone宽