sc_flutter_component_library
library
Functions
-
ConfirmButtonsWidget({required VoidCallback onConfirm, required VoidCallback onCancel, String confirmText = "确认", String cancelText = "取消", EdgeInsetsGeometry? margin})
→ Widget
-
确认对话框按钮组
-
DangerButtonWidget(String text, {VoidCallback? onPressed, bool enabled = true, ButtonSize size = ButtonSize.medium, EdgeInsetsGeometry? margin})
→ Widget
-
危险按钮 - 红色填充
-
EBtnWidget(String text, {dynamic onPressed()?, Color backColor = Colors.blue, Color textColor = Colors.white, dynamic margin, Widget? widget, List<Widget> children = const []})
→ Widget
-
-
FBtnWidget(String text, {dynamic onPressed()?, Size size = const Size(100, 45), Color backColor = Colors.blue, Color textColor = Colors.white, dynamic margin, Widget? widget, List<Widget> children = const []})
→ Widget
-
-
IconTextButtonWidget(IconData icon, String text, {VoidCallback? onPressed, Color? color, ButtonSize size = ButtonSize.medium, EdgeInsetsGeometry? margin})
→ Widget
-
图标按钮 - 带文字
-
LargeButtonWidget(String text, {VoidCallback? onPressed, Color? backgroundColor, Color? foregroundColor, EdgeInsetsGeometry? margin})
→ Widget
-
大尺寸按钮
-
LinkButtonWidget(String text, {VoidCallback? onPressed, Color? color, EdgeInsetsGeometry? margin})
→ Widget
-
链接样式按钮
-
LoadingButtonWidget(String text, {VoidCallback? onPressed, bool loading = false, Color? backgroundColor, Color? foregroundColor, ButtonSize size = ButtonSize.medium, EdgeInsetsGeometry? margin})
→ Widget
-
加载按钮 - 带加载状态
-
OutlinedIconButtonWidget(IconData icon, String text, {VoidCallback? onPressed, Color? color, ButtonSize size = ButtonSize.medium, EdgeInsetsGeometry? margin})
→ Widget
-
轮廓图标按钮
-
PrimaryButtonWidget(String text, {VoidCallback? onPressed, bool enabled = true, ButtonSize size = ButtonSize.medium, EdgeInsetsGeometry? margin})
→ Widget
-
主要操作按钮 - 蓝色填充
-
RoundedButtonWidget(String text, {VoidCallback? onPressed, Color? backgroundColor, Color? foregroundColor, double borderRadius = 20.0, ButtonSize size = ButtonSize.medium, EdgeInsetsGeometry? margin})
→ Widget
-
圆角按钮
-
SecondaryButtonWidget(String text, {VoidCallback? onPressed, bool enabled = true, ButtonSize size = ButtonSize.medium, EdgeInsetsGeometry? margin})
→ Widget
-
次要操作按钮 - 灰色填充
-
SimpleIconButtonWidget(IconData icon, {VoidCallback? onPressed, Color? color, ButtonSize size = ButtonSize.medium, String? tooltip})
→ Widget
-
简单图标按钮
-
SmallButtonWidget(String text, {VoidCallback? onPressed, Color? backgroundColor, Color? foregroundColor, EdgeInsetsGeometry? margin})
→ Widget
-
小尺寸按钮
-
SuccessButtonWidget(String text, {VoidCallback? onPressed, bool enabled = true, ButtonSize size = ButtonSize.medium, EdgeInsetsGeometry? margin})
→ Widget
-
成功按钮 - 绿色填充
-
TBtnWidget(String text, {dynamic onPressed()?, bool visible = true})
→ Widget
-
-
WarningButtonWidget(String text, {VoidCallback? onPressed, bool enabled = true, ButtonSize size = ButtonSize.medium, EdgeInsetsGeometry? margin})
→ Widget
-
警告按钮 - 橙色填充