scale_design library

Classes

CircularIcon
ElevatedBtn
FloatingActionBtn
自定义的 FloatingActionButton 类,它扩展了 Flutter 的 FloatingActionButton 类。 它添加了 sizedisabled 参数,并在构造函数中使用 scaleHeightscaleWidthscaleFont 函数处理样式中的尺寸问题。
IconBtn
OutlinedBtn
Responsive
ResposiveScaffold
Scale
Scale 类用于管理屏幕尺寸和布局比例,以便在应用程序中创建响应式布局
ScrollableIconsCard
Widget class for displaying a set of horizontally scrolling icon cards. 用于显示一组横向滚动的图标卡片的 Widget 类
ShinyButton
光影按钮
SlideText
SlideText is a widget that displays a list of text that scrolls vertically. SlideText 是一个显示垂直滚动文本列表的小部件。
T
TextBtn
Toast
TSpan

Functions

perHeight(double n) double
获取屏幕高度的 n 分之一。 Get 1/n of the screen height.
perWidth(double n) double
获取屏幕宽度的 n 分之一。 Get 1/n of the screen width
scaleFont(double fontSize) double
根据屏幕大小获取按比例缩放的字体大小
scaleHeight(double inputHeight) double
根据屏幕大小获取按比例缩放的高度
scaleWidth(double inputWidth) double
根据屏幕大小获取按比例缩放的宽度 Gets the scaled width according to the screen size.