Flutter开发控件库,包含几乎所有可能会用到的控件和使用示例。
本站欢迎大家分享优质的源码和程序, 本站内容来源于作者发布和网络转载,如有版权相关问题请及时与我们取得联系,我们将立即删除。
今日推荐
活动倒计时:00:00:00

188
水晶

188
水晶

19
水晶

180
水晶
最新动态
常用的UI控件: AppBar SearchBar Button TabButton CheckButton
常用的Get和Post请求: 发送请求
包括各种样式的Toast和Dialog: Toast Dialog
Flutter开发首选控件集,封装移动APP常用控件,并包含完整精美的使用示例。 源码和示例已经同步发布到GitHub和PubDev 源码下载: https://github.com/ym6745476/ym_flutter_widget 在线示例 : https://ymbok.com/app-3.html 力求全面覆盖开发所需控件,代码规范,低耦合,兼容性好,稳定性好,适用性好,能够大幅度节
小提示 /// 中间位置 YmUiUtil.showToast(context,"这是一条Toast"); /// 指定位置
YmToast.show("这是一条Toast", context, duration: YmToast.lengthShort, gravity: YmToast.bottom);

弹出框 YmUiUtil.showLoading(context);
Future.delayed(Duration(seconds: 3), () {
YmUiUtil.hideLoading(context);
}); YmUiUtil.showAlertDialog(context, "确认提示", "您确定要打开弹窗吗?", "确定", "取消",onOkPressed: (){


Get请求 YmHttp().postForm(url
,{"参数":"值","参数":"值"}
,success: (data) {
print("成功:" + data.toString());
}
,error: (error) {
print("失败:" + error.toString());
}
,complete: (){
print("完成");
}
)
单选按钮,多选按钮 Row(
children: [
YmCheckButton(value:0,
checked:_radioGroupValue1==0,
onChanged: (bool checked,dynamic value){
_checkedSingleButton(checked,value);
},
text: "单选1",
ima

Tab按钮 List _tabButtonList = ["全部","待付款","待发货"];
int _tabButtonSelectedIndex = 0;
YmTabButton(_tabButtonList.elementAt(index),
textColor:Color(0xffffffff),
fontSize:14,
isSelected:this._tabButto

软件排行
热门教程