Persistent/app_export library

Classes

ColorConstant

Constants

figmaDesignHeight → const num
figmaDesignStatusBar → const num
figmaDesignWidth → const num

Properties

height → dynamic
此方法用於獲取設備視口高度。
no setter
size Size
getter/setter pair
width → dynamic
此方法用於獲取設備視口寬度。
no setter

Functions

getFontSize(double px) double
該方法用於根據Viewport設置文字字體大小
getHorizontalSize(double px) double
此方法用於根據視口寬度設置屏幕或小部件的填充/邊距(左側和右側)和寬度。
getMargin({double? all, double? left, double? top, double? right, double? bottom}) EdgeInsetsGeometry
該方法用於響應式設置margin
getMarginOrPadding({double? all, double? left, double? top, double? right, double? bottom}) EdgeInsetsGeometry
該方法用於響應式獲取padding或margin
getPadding({double? all, double? left, double? top, double? right, double? bottom}) EdgeInsetsGeometry
該方法用於響應式設置padding
getScreenSize() Size
getSize(double px) double
該方法用於設置圖片高寬的最小px
getVerticalSize(double px) double
此方法用於根據視口高度設置屏幕或小部件的填充/邊距(用於頂部和底部)和高度。