In GestureDetector in onTap event i have a if condition like this:
Positioned(
left: 1.0,
top: -20.0,
child: GestureDetector(
onTap: () => {
if (widget.status == RemoteStatus.edit)
{
showChooseProfileScreen(0).then((val) {
if (val != null && val) {
print("------> $val");
}
})
}
else {
if (!onTapRaised)
{
sendCommand(54); //Expected to find '}'. error
onTapRaised = true;
releaseTapRaised(onTapRaised);
}
}
},
child: Container(
margin: EdgeInsets.only(left: 20.0, top: 20.0),
Someone knows why i got error Expected to find '}'. in sendCommand(54); part?
I run flutter clean before but i still got this error.
