button is less square
This commit is contained in:
parent
231ed2c9df
commit
84c2fb1f2a
1 changed files with 43 additions and 44 deletions
|
@ -460,57 +460,56 @@ class ReceiptPage2State extends State<ReceiptPage2> {
|
||||||
child: Tooltip(
|
child: Tooltip(
|
||||||
message: "Submit receipt",
|
message: "Submit receipt",
|
||||||
child: Container(
|
child: Container(
|
||||||
decoration: new BoxDecoration(
|
|
||||||
border: new Border.all(color : Colors.transparent, width: 2),
|
|
||||||
borderRadius: BorderRadius.all(Radius.circular(2)),
|
|
||||||
),
|
|
||||||
height: 75.0,
|
height: 75.0,
|
||||||
child: Stack(
|
child: ClipRRect(
|
||||||
children: [
|
borderRadius: BorderRadius.circular(2),
|
||||||
AnimatedBackground(),
|
child: Stack(
|
||||||
Material(
|
children: [
|
||||||
type: MaterialType.transparency,
|
AnimatedBackground(),
|
||||||
child: InkWell(
|
Material(
|
||||||
child: Center(
|
type: MaterialType.transparency,
|
||||||
child : Text("GO",
|
child: InkWell(
|
||||||
style:
|
child: Center(
|
||||||
TextStyle(color: Colors.white, fontSize: 30.0),
|
child : Text("GO",
|
||||||
|
style:
|
||||||
|
TextStyle(color: Colors.white, fontSize: 30.0),
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
onTap: () {
|
||||||
onTap: () {
|
try {
|
||||||
try {
|
if (transaction.amount.text == "" || transaction.organisation.name == null) {
|
||||||
if (transaction.amount.text == "" || transaction.organisation.name == null) {
|
|
||||||
showDialog(
|
|
||||||
context: context,
|
|
||||||
builder: (BuildContext context) {
|
|
||||||
return _invalidDialog(context);
|
|
||||||
}
|
|
||||||
);
|
|
||||||
} else {
|
|
||||||
if (double.tryParse(transaction.amount.text) != null && double.tryParse(transaction.amount.text) > 0) {
|
|
||||||
_submitReceipt(transaction);
|
|
||||||
} else {
|
|
||||||
showDialog(
|
showDialog(
|
||||||
context: context,
|
context: context,
|
||||||
builder: (BuildContext context) {
|
builder: (BuildContext context) {
|
||||||
return _invalidDialog(context);
|
return _invalidDialog(context);
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
} else {
|
||||||
|
if (double.tryParse(transaction.amount.text) != null && double.tryParse(transaction.amount.text) > 0) {
|
||||||
|
_submitReceipt(transaction);
|
||||||
|
} else {
|
||||||
|
showDialog(
|
||||||
|
context: context,
|
||||||
|
builder: (BuildContext context) {
|
||||||
|
return _invalidDialog(context);
|
||||||
|
}
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
catch (_) {
|
||||||
catch (_) {
|
showDialog(
|
||||||
showDialog(
|
context: context,
|
||||||
context: context,
|
builder: (BuildContext context) {
|
||||||
builder: (BuildContext context) {
|
return _invalidDialog(context);
|
||||||
return _invalidDialog(context);
|
}
|
||||||
}
|
);
|
||||||
);
|
}
|
||||||
}
|
},
|
||||||
},
|
),
|
||||||
),
|
),
|
||||||
),
|
],
|
||||||
],
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
Reference in a new issue