@marcos_feitoza/personal-finance-frontend-core-ui 1.0.0 → 1.0.2
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 +14 -0
- package/lib/utils/app_logger.dart +15 -0
- package/lib/widgets/investment_form.dart +8 -7
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [1.0.2](https://github.com/MarcosOps/personal-finance-frontend-core-ui/compare/v1.0.1...v1.0.2) (2025-11-26)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* fix front logs ([d80a471](https://github.com/MarcosOps/personal-finance-frontend-core-ui/commit/d80a471a13e1cf9f1756f88f5d5e1453c9ed1609))
|
|
7
|
+
|
|
8
|
+
## [1.0.1](https://github.com/MarcosOps/personal-finance-frontend-core-ui/compare/v1.0.0...v1.0.1) (2025-11-22)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* update transaction error message to Transfer not completed. ([05c8369](https://github.com/MarcosOps/personal-finance-frontend-core-ui/commit/05c83695b15fb2091729e29753356e64e3ee2892))
|
|
14
|
+
|
|
1
15
|
# 1.0.0 (2025-11-22)
|
|
2
16
|
|
|
3
17
|
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import 'package:flutter/foundation.dart';
|
|
2
|
+
|
|
3
|
+
/// A simple logger class that only prints messages in debug mode.
|
|
4
|
+
///
|
|
5
|
+
/// This prevents logs from appearing in the browser console in production builds,
|
|
6
|
+
/// which is a good practice for security and performance.
|
|
7
|
+
class AppLogger {
|
|
8
|
+
/// Logs a [message] to the console only if the application is running
|
|
9
|
+
/// in debug mode.
|
|
10
|
+
static void log(dynamic message) {
|
|
11
|
+
if (kDebugMode) {
|
|
12
|
+
print(message);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -106,7 +106,7 @@ class _InvestmentFormState extends State<InvestmentForm> {
|
|
|
106
106
|
content: Text(errorMessage),
|
|
107
107
|
actions: <Widget>[
|
|
108
108
|
TextButton(
|
|
109
|
-
child: const Text('Transfer
|
|
109
|
+
child: const Text('Transfer not completed!'),
|
|
110
110
|
onPressed: () {
|
|
111
111
|
Navigator.of(ctx).pop();
|
|
112
112
|
},
|
|
@@ -189,12 +189,13 @@ class _InvestmentFormState extends State<InvestmentForm> {
|
|
|
189
189
|
),
|
|
190
190
|
const SizedBox(height: 16),
|
|
191
191
|
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
192
|
+
// Campo de valor (com formatação de moeda)
|
|
193
|
+
AppTextField(
|
|
194
|
+
controller: _amountController,
|
|
195
|
+
labelText: 'Amount',
|
|
196
|
+
isCurrency: true,
|
|
197
|
+
),
|
|
198
|
+
const SizedBox(height: 16),
|
|
198
199
|
|
|
199
200
|
// Campo de data (com seletor de calendário)
|
|
200
201
|
AppTextField(
|