问题描述
我希望下面的代码能够根据我输入的 BLOOG GROUP 和 RHESUS 获取捐赠者的数据,但它从数据库中获取所有内容,而不是所需内容。
Column(
crossAxisAlignment: CrossAxisAlignment.stretch,children: <Widget>[
RaisedButton(
color: Colors.red,textColor: Colors.white,child: Padding(
padding: EdgeInsets.all(10.0),child: Row(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,children: <Widget>[
Text("SEARCH",style: TextStyle(fontSize: 24.0)),],)),onpressed: () {
if (bloodtype == 'blood' && rhesustype == 'rhesus') {
showDialog(
context: context,builder: (BuildContext context) {
return AlertDialog(
title: new Text('No available donor...'),actions: <Widget>[
//FlatButton
TextButton(
child: new Text("OK"),onpressed: () {
Navigator.of(context).pop();
})
],);
});
} else {
getData();
}
},
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)