0 purchases
yb flutter lib ui
一个灵活的FlutterUI组件库 #
包含常用组件如:按钮、文本、下拉框、装饰背景等。
包含跨端插件如:图片选择器、语音视频等。
Example #
import 'package:yb_flutter_lib_ui/button/widget_button.dart';
import 'package:yb_flutter_lib_ui/text/widget_text.dart';
// 文本组件
WidgetText.getTextNormal(
text: '组件:yb_flutter_lib_ui', color: Colors.red),
// 按钮组件
WidgetButton.getBtnNormal(
// 文本组件
child: WidgetText.getTextNormal(text: '按钮'),
// 背景色
bgColor: Colors.green,
// 圆角
radius: 10,
),
// 复选框
Container(
child: Row(
children: [
Checkbox(
value: first,
activeColor: UICommonColors.appMain,
onChanged: firstCallBack),
Text('中医'),
Checkbox(
value: second,
activeColor: UICommonColors.appMain,
onChanged: secondCallBack),
Text('中西医结合')
],
))
// 圆形带边框背景
static bgRadiusCircleWithBorder(
{Color color = Colors.transparent,
borderColor = UICommonColors.colorE5E5E5,
double radius = 0,
double width = 1.0}) =>
BoxDecoration(
color: color,
border: Border.all(color: borderColor, width: width),
borderRadius: BorderRadius.circular(radius),
);
...
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.