Skip to content

Commit c6bb650

Browse files
committed
refactor: fix anaylze
1 parent 843c3e7 commit c6bb650

File tree

7 files changed

+13
-13
lines changed

7 files changed

+13
-13
lines changed

mobile/lib/features/balances/presentation/pages/balances.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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;

mobile/lib/features/bills/presentation/pages/bill_payment.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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(

mobile/lib/features/income/presentation/pages/income_payout.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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(

mobile/lib/features/liabilities/presentation/pages/liability_payment.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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(

mobile/lib/features/quick_add/presentation/pages/quick_add_expense.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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(

mobile/lib/features/quick_add/presentation/pages/quick_add_income.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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(

mobile/lib/features/receivables/presentation/pages/receivable_payout.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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(

0 commit comments

Comments
 (0)