@marcos_feitoza/personal-finance-frontend-feature-dashboard 1.0.1 → 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,17 @@
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
+
8
+ # [1.1.0](https://github.com/MarcosOps/personal-finance-frontend-feature-dashboard/compare/v1.0.1...v1.1.0) (2025-11-28)
9
+
10
+
11
+ ### Features
12
+
13
+ * update Readme.me ([643acb7](https://github.com/MarcosOps/personal-finance-frontend-feature-dashboard/commit/643acb756ce47709e9e364a6e10ca1825d7393ab))
14
+
1
15
  ## [1.0.1](https://github.com/MarcosOps/personal-finance-frontend-feature-dashboard/compare/v1.0.0...v1.0.1) (2025-11-23)
2
16
 
3
17
 
package/README.md CHANGED
@@ -1,39 +1,32 @@
1
- <!--
2
- This README describes the package. If you publish this package to pub.dev,
3
- this README's contents appear on the landing page for your package.
1
+ # Feature: Dashboard (Frontend Flutter)
4
2
 
5
- For information about how to write a good package README, see the guide for
6
- [writing package pages](https://dart.dev/tools/pub/writing-package-pages).
3
+ Este pacote contém a implementação da tela principal do dashboard da aplicação Personal Finance Frontend.
7
4
 
8
- For general information about developing packages, see the Dart guide for
9
- [creating packages](https://dart.dev/guides/libraries/create-packages)
10
- and the Flutter guide for
11
- [developing packages and plugins](https://flutter.dev/to/develop-packages).
12
- -->
5
+ ## Propósito
13
6
 
14
- TODO: Put a short description of the package here that helps potential users
15
- know whether this package might be useful for them.
7
+ O objetivo deste pacote é fornecer uma visão geral abrangente das finanças do usuário. Ele agrega e exibe informações cruciais de várias fontes, como saldos de contas, transações recentes e formulários rápidos para adicionar novas entradas.
16
8
 
17
- ## Features
9
+ ## Conteúdo Principal
18
10
 
19
- TODO: List what your package can do. Maybe include images, gifs, or videos.
11
+ - **`lib/screens/home_screen.dart`**: A implementação principal da tela do dashboard, incluindo a lógica para buscar e exibir os dados agregados.
12
+ - **Widgets de Formulário (usados no dashboard)**: Integram formulários para adicionar salários, despesas e investimentos rapidamente.
20
13
 
21
- ## Getting started
14
+ ---
22
15
 
23
- TODO: List prerequisites and provide or point to information on how to
24
- start using the package.
16
+ ## Como Usar (Instalação como Dependência)
25
17
 
26
- ## Usage
18
+ Este pacote é uma dependência local para a aplicação principal (`personal-finance-frontend`).
27
19
 
28
- TODO: Include short and useful examples for package users. Add longer examples
29
- to `/example` folder.
20
+ No `pubspec.yaml` da aplicação principal, adicione a seguinte linha em `dependencies`:
30
21
 
31
- ```dart
32
- const like = 'sample';
22
+ ```yaml
23
+ personal_finance_frontend_feature_dashboard:
24
+ path: ../personal-finance-frontend-feature-dashboard
33
25
  ```
34
26
 
35
- ## Additional information
27
+ ## Features
36
28
 
37
- TODO: Tell users more about the package: where to find more information, how to
38
- contribute to the package, how to file issues, what response they can expect
39
- from the package authors, and more.
29
+ - **Visão Geral Financeira**: Exibe saldos de contas (cash, cartões, investimentos), resumos de despesas e receitas.
30
+ - **Transações Recentes**: Mostra um histórico rápido das últimas transações.
31
+ - **Formulários de Entrada Rápida**: Integra formulários para registro rápido de salários, despesas e investimentos.
32
+ - **Navegação**: Contém o menu principal para navegar para outras features do aplicativo.
@@ -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.0.1",
3
+ "version": "1.1.1",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },