IconButton(
icon: Image.asset( 'assets/icons/wechat2x.png', height: 30.h, ),
onPressed: (){ }
)
icon: Icon(Icons.add_a_photo, size: 30, color: Colors.black,),
icon: Image.asset('assets/icons/wechat2x.png', height: 30.h,),
StorageManager.sharedPreferences.get("userId")
Navigator.of(context).push(MaterialPageRoute(builder: (_) =>
RectificationOfProblemInfo(provider.model.records[index],isSelf: chargeFlag,))
);
Navigator.of(context).pop();
Navigator.pushAndRemoveUntil(context, MaterialPageRoute(builder: (context) {
return LoginPage();
}),(route) => route.isCurrent,);
Navigator.push(context, MaterialPageRoute(builder: (context) {
return InspectionTask();
})).then((_) {
setState(() {
});
});
Navigator.popUntil(context, (route) => route.isFirst);
leading: IconButton(
icon: Icon(Icons.arrow_back_rounded),
onPressed: () {
Navigator.push(context, MaterialPageRoute(builder: (context) {
return InspectionTask();
})).then((_) {
setState(() {
});
});
// Navigator.popUntil(context, (route) => route.isFirst);
},
),
text:"${TextUtils.replaceNotValid(provider.model.records[index].orderDesc, '-')}",
ListView.builder(
shrinkWrap: true,
itemCount: provider.model.records.length,
itemBuilder: (ctx, index) {
return Text("")
})
width:MediaQuery.of(context).size.width,
Theme(
data: Theme.of(context).copyWith(
dividerColor: Colors.transparent),
child:Text("")
)
)
GestureDetector(
onTap: () {}
child:Text("")
)
RaisedButton(
color:Colors.blue,
textColor:Colors.white,
child: Text('确定'),
onPressed: () {
// 跳转创建问题整改单
Navigator.push( context, MaterialPageRoute(builder: (context) {
return RectificationProblemCreate(widget.inspectionTaskDetail);
}));
},
),
Fluttertoast.showToast(
msg: "忽略原因必填",
toastLength: Toast.LENGTH_SHORT,
gravity: ToastGravity.CENTER,
timeInSecForIosWeb: 1,// 显示的时间
backgroundColor: Colors.grey[100],// 自定义背景色
textColor: Colors.red,// 自定义字体颜色
fontSize: 16.0);// 自定义字体大小
}
//按回车键搜索
TextField(
controller: searchController,
focusNode: focusNode,
maxLines: 1,
textAlign: TextAlign.start,
style: TextStyle(
fontSize: 15.sp,
color: Color(0xFF222222)
),
decoration: InputDecoration(
fillColor:Colors.white,
filled: true,
border: InputBorder.none,
contentPadding: EdgeInsets.zero,
// isDense: true,
hintText: "请输入搜索",
hintStyle: TextStyle(
fontSize: 15.sp,
color: Colors.grey,
)
),
textInputAction: TextInputAction.search,
onEditingComplete: () {
// 进行搜索
_provider.keyWord=searchController.text.trim();
focusNode.unfocus();
_provider.initData();
setState(() {
});
},
Text("手机验证码登陆",
// strutStyle:StrutStyle(
// // fontSize: 18,
// // height: 1.2,
// // leading: 0.5,
// ),style: TextStyle(
// decoration: TextDecoration.underline,
// decorationColor: Colors.blueAccent[700],
// decorationStyle: TextDecorationStyle.solid,
// decorationThickness: 3,
// ),
),
https://blog.csdn.net/u010156024/article/details/48207145