File tree Expand file tree Collapse file tree 7 files changed +13
-13
lines changed
balances/presentation/pages
income/presentation/pages
liabilities/presentation/pages
quick_add/presentation/pages
receivables/presentation/pages Expand file tree Collapse file tree 7 files changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -144,7 +144,7 @@ class _BalancesPageState extends State<BalancesPage> {
144144 TextButton (
145145 onPressed: pending
146146 ? null
147- : () async {
147+ : () {
148148 setState (() {
149149 errorPayment = "" ;
150150 pending = true ;
Original file line number Diff line number Diff line change @@ -169,7 +169,7 @@ class _BillPaymentState extends State<BillPayment> {
169169 PrimaryButton (
170170 text: "Pay bill" ,
171171 enabled: ! pending,
172- onPressed: () async {
172+ onPressed: () {
173173 setState (() {
174174 pending = true ;
175175 });
@@ -206,7 +206,7 @@ class _BillPaymentState extends State<BillPayment> {
206206
207207 } on Exception {
208208 if (context.mounted) {
209- return showDialog (
209+ showDialog (
210210 context: context,
211211 builder: (context) {
212212 return AlertDialog (
Original file line number Diff line number Diff line change @@ -130,7 +130,7 @@ class _IncomePayoutState extends State<IncomePayout> {
130130 PrimaryButton (
131131 text: "Payout Income Source" ,
132132 enabled: ! pending && balanceIndex != - 1 ,
133- onPressed: () async {
133+ onPressed: () {
134134 setState (() {
135135 pending = true ;
136136 });
@@ -156,7 +156,7 @@ class _IncomePayoutState extends State<IncomePayout> {
156156 }
157157 } on Exception {
158158 if (context.mounted) {
159- return showDialog (
159+ showDialog (
160160 context: context,
161161 builder: (context) {
162162 return AlertDialog (
Original file line number Diff line number Diff line change @@ -154,7 +154,7 @@ class _LiabilityPaymentState extends State<LiabilityPayment> {
154154 PrimaryButton (
155155 text: "Pay liability" ,
156156 enabled: ! pending,
157- onPressed: () async {
157+ onPressed: () {
158158 setState (() {
159159 pending = true ;
160160 });
@@ -232,7 +232,7 @@ class _LiabilityPaymentState extends State<LiabilityPayment> {
232232
233233 } on Exception {
234234 if (context.mounted) {
235- return showDialog (
235+ showDialog (
236236 context: context,
237237 builder: (context) {
238238 return AlertDialog (
Original file line number Diff line number Diff line change @@ -330,7 +330,7 @@ class _QuickAddExpenseState extends State<QuickAddExpense> {
330330 PrimaryButton (
331331 text: "Add expense" ,
332332 enabled: ! pending,
333- onPressed: () async {
333+ onPressed: () {
334334 setState (() {
335335 pending = true ;
336336 });
@@ -414,7 +414,7 @@ class _QuickAddExpenseState extends State<QuickAddExpense> {
414414 }
415415 } on Exception {
416416 if (context.mounted) {
417- return showDialog (
417+ showDialog (
418418 context: context,
419419 builder: (context) {
420420 return AlertDialog (
Original file line number Diff line number Diff line change @@ -296,7 +296,7 @@ class _QuickAddIncomeState extends State<QuickAddIncome> {
296296 PrimaryButton (
297297 text: "Add income" ,
298298 enabled: ! pending,
299- onPressed: () async {
299+ onPressed: () {
300300 setState (() {
301301 pending = true ;
302302 });
@@ -372,7 +372,7 @@ class _QuickAddIncomeState extends State<QuickAddIncome> {
372372 }
373373 } on Exception {
374374 if (context.mounted) {
375- return showDialog (
375+ showDialog (
376376 context: context,
377377 builder: (context) {
378378 return AlertDialog (
Original file line number Diff line number Diff line change @@ -154,7 +154,7 @@ class _ReceivablePayState extends State<ReceivablePay> {
154154 PrimaryButton (
155155 text: "Pay receivable" ,
156156 enabled: ! pending,
157- onPressed: () async {
157+ onPressed: () {
158158 setState (() {
159159 pending = true ;
160160 });
@@ -239,7 +239,7 @@ class _ReceivablePayState extends State<ReceivablePay> {
239239 }
240240 } on Exception {
241241 if (context.mounted) {
242- return showDialog (
242+ showDialog (
243243 context: context,
244244 builder: (context) {
245245 return AlertDialog (
You can’t perform that action at this time.
0 commit comments