@marcos_feitoza/personal-finance-frontend-feature-dashboard 1.1.0 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## [1.1.1](https://github.com/MarcosOps/personal-finance-frontend-feature-dashboard/compare/v1.1.0...v1.1.1) (2025-12-06)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * conversão double.parse ([8804b4c](https://github.com/MarcosOps/personal-finance-frontend-feature-dashboard/commit/8804b4c544d9720befe5dcf27e2f544b0273063f))
7
+
1
8
  # [1.1.0](https://github.com/MarcosOps/personal-finance-frontend-feature-dashboard/compare/v1.0.1...v1.1.0) (2025-11-28)
2
9
 
3
10
 
@@ -137,12 +137,11 @@ class _HomeScreenState extends State<HomeScreen> {
137
137
  for (var item in pmSummary) {
138
138
  final paymentMethod =
139
139
  (item['payment_method'] as String?)?.toUpperCase();
140
- if (paymentMethod == 'RBC') {
141
- _rbcUnpaidExpenses += double.parse(item['unpaid_amount'].toString());
142
- } else if (paymentMethod == 'BMO') {
143
- _bmoUnpaidExpenses += double.parse(item['unpaid_amount'].toString());
144
- }
145
- }
140
+ if (paymentMethod == 'RBC') {
141
+ _rbcUnpaidExpenses += double.tryParse(item['unpaid_amount']?.toString() ?? '0.0') ?? 0.0;
142
+ } else if (paymentMethod == 'BMO') {
143
+ _bmoUnpaidExpenses += double.tryParse(item['unpaid_amount']?.toString() ?? '0.0') ?? 0.0;
144
+ } }
146
145
 
147
146
  _cashTransactions = otherResults[1] as List<Map<String, dynamic>>;
148
147
  _rbcTransactions = otherResults[2] as List<Map<String, dynamic>>;
@@ -660,7 +659,7 @@ class _HomeScreenState extends State<HomeScreen> {
660
659
  children: transactions.map((transaction) {
661
660
  final date = DateFormat('MM/dd')
662
661
  .format(DateTime.parse(transaction['date']));
663
- final amount = double.parse(transaction['amount'].toString())
662
+ final amount = (double.tryParse(transaction['amount']?.toString() ?? '0.0') ?? 0.0)
664
663
  .toStringAsFixed(2);
665
664
  final subcategory =
666
665
  transaction['subcategory'] ?? 'No subcategory';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marcos_feitoza/personal-finance-frontend-feature-dashboard",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },