@marcos_feitoza/personal-finance-frontend-core-ui 1.0.0
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/.circleci/config.yml +23 -0
- package/.metadata +45 -0
- package/CHANGELOG.md +26 -0
- package/README.md +16 -0
- package/analysis_options.yaml +28 -0
- package/android/app/build.gradle.kts +44 -0
- package/android/app/src/debug/AndroidManifest.xml +7 -0
- package/android/app/src/main/AndroidManifest.xml +45 -0
- package/android/app/src/main/kotlin/com/example/personal_finance_frontend_core_ui/MainActivity.kt +5 -0
- package/android/app/src/main/res/drawable/launch_background.xml +12 -0
- package/android/app/src/main/res/drawable-v21/launch_background.xml +12 -0
- package/android/app/src/main/res/mipmap-hdpi/ic_launcher.png +0 -0
- package/android/app/src/main/res/mipmap-mdpi/ic_launcher.png +0 -0
- package/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png +0 -0
- package/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png +0 -0
- package/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png +0 -0
- package/android/app/src/main/res/values/styles.xml +18 -0
- package/android/app/src/main/res/values-night/styles.xml +18 -0
- package/android/app/src/profile/AndroidManifest.xml +7 -0
- package/android/build.gradle.kts +21 -0
- package/android/gradle/wrapper/gradle-wrapper.properties +5 -0
- package/android/gradle.properties +3 -0
- package/android/settings.gradle.kts +25 -0
- package/ios/Flutter/AppFrameworkInfo.plist +26 -0
- package/ios/Flutter/Debug.xcconfig +1 -0
- package/ios/Flutter/Release.xcconfig +1 -0
- package/ios/Runner/AppDelegate.swift +13 -0
- package/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json +122 -0
- package/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png +0 -0
- package/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png +0 -0
- package/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png +0 -0
- package/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png +0 -0
- package/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png +0 -0
- package/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png +0 -0
- package/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png +0 -0
- package/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png +0 -0
- package/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png +0 -0
- package/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png +0 -0
- package/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png +0 -0
- package/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png +0 -0
- package/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png +0 -0
- package/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png +0 -0
- package/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png +0 -0
- package/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json +23 -0
- package/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png +0 -0
- package/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png +0 -0
- package/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png +0 -0
- package/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md +5 -0
- package/ios/Runner/Base.lproj/LaunchScreen.storyboard +37 -0
- package/ios/Runner/Base.lproj/Main.storyboard +26 -0
- package/ios/Runner/Info.plist +49 -0
- package/ios/Runner/Runner-Bridging-Header.h +1 -0
- package/ios/Runner.xcodeproj/project.pbxproj +619 -0
- package/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
- package/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
- package/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings +8 -0
- package/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme +101 -0
- package/ios/Runner.xcworkspace/contents.xcworkspacedata +7 -0
- package/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
- package/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings +8 -0
- package/ios/RunnerTests/RunnerTests.swift +12 -0
- package/lib/main.dart +122 -0
- package/lib/personal_finance_frontend_core_ui.dart +1 -0
- package/lib/utils/currency_input_formatter.dart +49 -0
- package/lib/utils/currency_utils.dart +14 -0
- package/lib/utils/theme_notifier.dart +33 -0
- package/lib/widgets/app_widgets.dart +405 -0
- package/lib/widgets/crypto_trade_form.dart +357 -0
- package/lib/widgets/dividend_log_form.dart +151 -0
- package/lib/widgets/edit_transaction_dialog.dart +112 -0
- package/lib/widgets/expense_form.dart +238 -0
- package/lib/widgets/investment_form.dart +223 -0
- package/lib/widgets/rrsp_contribution_form.dart +157 -0
- package/lib/widgets/salary_form.dart +152 -0
- package/lib/widgets/trade_form.dart +374 -0
- package/lib/widgets/user_profile_avatar.dart +60 -0
- package/linux/CMakeLists.txt +128 -0
- package/linux/flutter/CMakeLists.txt +88 -0
- package/linux/flutter/generated_plugin_registrant.cc +11 -0
- package/linux/flutter/generated_plugin_registrant.h +15 -0
- package/linux/flutter/generated_plugins.cmake +23 -0
- package/linux/runner/CMakeLists.txt +26 -0
- package/linux/runner/main.cc +6 -0
- package/linux/runner/my_application.cc +130 -0
- package/linux/runner/my_application.h +18 -0
- package/macos/Flutter/Flutter-Debug.xcconfig +1 -0
- package/macos/Flutter/Flutter-Release.xcconfig +1 -0
- package/macos/Flutter/GeneratedPluginRegistrant.swift +10 -0
- package/macos/Runner/AppDelegate.swift +13 -0
- package/macos/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json +68 -0
- package/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png +0 -0
- package/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png +0 -0
- package/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png +0 -0
- package/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png +0 -0
- package/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png +0 -0
- package/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png +0 -0
- package/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png +0 -0
- package/macos/Runner/Base.lproj/MainMenu.xib +343 -0
- package/macos/Runner/Configs/AppInfo.xcconfig +14 -0
- package/macos/Runner/Configs/Debug.xcconfig +2 -0
- package/macos/Runner/Configs/Release.xcconfig +2 -0
- package/macos/Runner/Configs/Warnings.xcconfig +13 -0
- package/macos/Runner/DebugProfile.entitlements +12 -0
- package/macos/Runner/Info.plist +32 -0
- package/macos/Runner/MainFlutterWindow.swift +15 -0
- package/macos/Runner/Release.entitlements +8 -0
- package/macos/Runner.xcodeproj/project.pbxproj +705 -0
- package/macos/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
- package/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme +99 -0
- package/macos/Runner.xcworkspace/contents.xcworkspacedata +7 -0
- package/macos/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
- package/macos/RunnerTests/RunnerTests.swift +12 -0
- package/package.json +29 -0
- package/pubspec.yaml +94 -0
- package/test/widget_test.dart +30 -0
- package/web/favicon.png +0 -0
- package/web/icons/Icon-192.png +0 -0
- package/web/icons/Icon-512.png +0 -0
- package/web/icons/Icon-maskable-192.png +0 -0
- package/web/icons/Icon-maskable-512.png +0 -0
- package/web/index.html +38 -0
- package/web/manifest.json +35 -0
- package/windows/CMakeLists.txt +108 -0
- package/windows/flutter/CMakeLists.txt +109 -0
- package/windows/flutter/generated_plugin_registrant.cc +11 -0
- package/windows/flutter/generated_plugin_registrant.h +15 -0
- package/windows/flutter/generated_plugins.cmake +23 -0
- package/windows/runner/CMakeLists.txt +40 -0
- package/windows/runner/Runner.rc +121 -0
- package/windows/runner/flutter_window.cpp +71 -0
- package/windows/runner/flutter_window.h +33 -0
- package/windows/runner/main.cpp +43 -0
- package/windows/runner/resource.h +16 -0
- package/windows/runner/resources/app_icon.ico +0 -0
- package/windows/runner/runner.exe.manifest +14 -0
- package/windows/runner/utils.cpp +65 -0
- package/windows/runner/utils.h +19 -0
- package/windows/runner/win32_window.cpp +288 -0
- package/windows/runner/win32_window.h +102 -0
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<Scheme
|
|
3
|
+
LastUpgradeVersion = "1510"
|
|
4
|
+
version = "1.3">
|
|
5
|
+
<BuildAction
|
|
6
|
+
parallelizeBuildables = "YES"
|
|
7
|
+
buildImplicitDependencies = "YES">
|
|
8
|
+
<BuildActionEntries>
|
|
9
|
+
<BuildActionEntry
|
|
10
|
+
buildForTesting = "YES"
|
|
11
|
+
buildForRunning = "YES"
|
|
12
|
+
buildForProfiling = "YES"
|
|
13
|
+
buildForArchiving = "YES"
|
|
14
|
+
buildForAnalyzing = "YES">
|
|
15
|
+
<BuildableReference
|
|
16
|
+
BuildableIdentifier = "primary"
|
|
17
|
+
BlueprintIdentifier = "33CC10EC2044A3C60003C045"
|
|
18
|
+
BuildableName = "personal_finance_frontend_core_ui.app"
|
|
19
|
+
BlueprintName = "Runner"
|
|
20
|
+
ReferencedContainer = "container:Runner.xcodeproj">
|
|
21
|
+
</BuildableReference>
|
|
22
|
+
</BuildActionEntry>
|
|
23
|
+
</BuildActionEntries>
|
|
24
|
+
</BuildAction>
|
|
25
|
+
<TestAction
|
|
26
|
+
buildConfiguration = "Debug"
|
|
27
|
+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
|
28
|
+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
|
29
|
+
shouldUseLaunchSchemeArgsEnv = "YES">
|
|
30
|
+
<MacroExpansion>
|
|
31
|
+
<BuildableReference
|
|
32
|
+
BuildableIdentifier = "primary"
|
|
33
|
+
BlueprintIdentifier = "33CC10EC2044A3C60003C045"
|
|
34
|
+
BuildableName = "personal_finance_frontend_core_ui.app"
|
|
35
|
+
BlueprintName = "Runner"
|
|
36
|
+
ReferencedContainer = "container:Runner.xcodeproj">
|
|
37
|
+
</BuildableReference>
|
|
38
|
+
</MacroExpansion>
|
|
39
|
+
<Testables>
|
|
40
|
+
<TestableReference
|
|
41
|
+
skipped = "NO"
|
|
42
|
+
parallelizable = "YES">
|
|
43
|
+
<BuildableReference
|
|
44
|
+
BuildableIdentifier = "primary"
|
|
45
|
+
BlueprintIdentifier = "331C80D4294CF70F00263BE5"
|
|
46
|
+
BuildableName = "RunnerTests.xctest"
|
|
47
|
+
BlueprintName = "RunnerTests"
|
|
48
|
+
ReferencedContainer = "container:Runner.xcodeproj">
|
|
49
|
+
</BuildableReference>
|
|
50
|
+
</TestableReference>
|
|
51
|
+
</Testables>
|
|
52
|
+
</TestAction>
|
|
53
|
+
<LaunchAction
|
|
54
|
+
buildConfiguration = "Debug"
|
|
55
|
+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
|
56
|
+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
|
57
|
+
launchStyle = "0"
|
|
58
|
+
useCustomWorkingDirectory = "NO"
|
|
59
|
+
ignoresPersistentStateOnLaunch = "NO"
|
|
60
|
+
debugDocumentVersioning = "YES"
|
|
61
|
+
debugServiceExtension = "internal"
|
|
62
|
+
enableGPUValidationMode = "1"
|
|
63
|
+
allowLocationSimulation = "YES">
|
|
64
|
+
<BuildableProductRunnable
|
|
65
|
+
runnableDebuggingMode = "0">
|
|
66
|
+
<BuildableReference
|
|
67
|
+
BuildableIdentifier = "primary"
|
|
68
|
+
BlueprintIdentifier = "33CC10EC2044A3C60003C045"
|
|
69
|
+
BuildableName = "personal_finance_frontend_core_ui.app"
|
|
70
|
+
BlueprintName = "Runner"
|
|
71
|
+
ReferencedContainer = "container:Runner.xcodeproj">
|
|
72
|
+
</BuildableReference>
|
|
73
|
+
</BuildableProductRunnable>
|
|
74
|
+
</LaunchAction>
|
|
75
|
+
<ProfileAction
|
|
76
|
+
buildConfiguration = "Profile"
|
|
77
|
+
shouldUseLaunchSchemeArgsEnv = "YES"
|
|
78
|
+
savedToolIdentifier = ""
|
|
79
|
+
useCustomWorkingDirectory = "NO"
|
|
80
|
+
debugDocumentVersioning = "YES">
|
|
81
|
+
<BuildableProductRunnable
|
|
82
|
+
runnableDebuggingMode = "0">
|
|
83
|
+
<BuildableReference
|
|
84
|
+
BuildableIdentifier = "primary"
|
|
85
|
+
BlueprintIdentifier = "33CC10EC2044A3C60003C045"
|
|
86
|
+
BuildableName = "personal_finance_frontend_core_ui.app"
|
|
87
|
+
BlueprintName = "Runner"
|
|
88
|
+
ReferencedContainer = "container:Runner.xcodeproj">
|
|
89
|
+
</BuildableReference>
|
|
90
|
+
</BuildableProductRunnable>
|
|
91
|
+
</ProfileAction>
|
|
92
|
+
<AnalyzeAction
|
|
93
|
+
buildConfiguration = "Debug">
|
|
94
|
+
</AnalyzeAction>
|
|
95
|
+
<ArchiveAction
|
|
96
|
+
buildConfiguration = "Release"
|
|
97
|
+
revealArchiveInOrganizer = "YES">
|
|
98
|
+
</ArchiveAction>
|
|
99
|
+
</Scheme>
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import Cocoa
|
|
2
|
+
import FlutterMacOS
|
|
3
|
+
import XCTest
|
|
4
|
+
|
|
5
|
+
class RunnerTests: XCTestCase {
|
|
6
|
+
|
|
7
|
+
func testExample() {
|
|
8
|
+
// If you add code to the Runner application, consider adding tests here.
|
|
9
|
+
// See https://developer.apple.com/documentation/xctest for more information about using XCTest.
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@marcos_feitoza/personal-finance-frontend-core-ui",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"publishConfig": {
|
|
5
|
+
"access": "public"
|
|
6
|
+
},
|
|
7
|
+
"scripts": {
|
|
8
|
+
"release": "semantic-release"
|
|
9
|
+
},
|
|
10
|
+
"devDependencies": {
|
|
11
|
+
"semantic-release": "^18.0.0",
|
|
12
|
+
"@semantic-release/changelog": "^6.0.0",
|
|
13
|
+
"@semantic-release/git": "^10.0.0",
|
|
14
|
+
"@semantic-release/github": "^8.0.0"
|
|
15
|
+
},
|
|
16
|
+
"release": {
|
|
17
|
+
"branches": [
|
|
18
|
+
"main"
|
|
19
|
+
],
|
|
20
|
+
"plugins": [
|
|
21
|
+
"@semantic-release/commit-analyzer",
|
|
22
|
+
"@semantic-release/release-notes-generator",
|
|
23
|
+
"@semantic-release/changelog",
|
|
24
|
+
"@semantic-release/npm",
|
|
25
|
+
"@semantic-release/github",
|
|
26
|
+
"@semantic-release/git"
|
|
27
|
+
]
|
|
28
|
+
}
|
|
29
|
+
}
|
package/pubspec.yaml
ADDED
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
name: personal_finance_frontend_core_ui
|
|
2
|
+
description: "A new Flutter project."
|
|
3
|
+
# The following line prevents the package from being accidentally published to
|
|
4
|
+
# pub.dev using `flutter pub publish`. This is preferred for private packages.
|
|
5
|
+
publish_to: 'none' # Remove this line if you wish to publish to pub.dev
|
|
6
|
+
|
|
7
|
+
# The following defines the version and build number for your application.
|
|
8
|
+
# A version number is three numbers separated by dots, like 1.2.43
|
|
9
|
+
# followed by an optional build number separated by a +.
|
|
10
|
+
# Both the version and the builder number may be overridden in flutter
|
|
11
|
+
# build by specifying --build-name and --build-number, respectively.
|
|
12
|
+
# In Android, build-name is used as versionName while build-number used as versionCode.
|
|
13
|
+
# Read more about Android versioning at https://developer.android.com/studio/publish/versioning
|
|
14
|
+
# In iOS, build-name is used as CFBundleShortVersionString while build-number is used as CFBundleVersion.
|
|
15
|
+
# Read more about iOS versioning at
|
|
16
|
+
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
|
|
17
|
+
# In Windows, build-name is used as the major, minor, and patch parts
|
|
18
|
+
# of the product and file versions while build-number is used as the build suffix.
|
|
19
|
+
version: 1.0.0+1
|
|
20
|
+
|
|
21
|
+
environment:
|
|
22
|
+
sdk: ^3.4.3
|
|
23
|
+
|
|
24
|
+
# Dependencies specify other packages that your package needs in order to work.
|
|
25
|
+
# To automatically upgrade your package dependencies to the latest versions
|
|
26
|
+
# consider running `flutter pub upgrade --major-versions`. Alternatively,
|
|
27
|
+
# dependencies can be manually updated by changing the version numbers below to
|
|
28
|
+
# the latest version available on pub.dev. To see which dependencies have newer
|
|
29
|
+
# versions available, run `flutter pub outdated`.
|
|
30
|
+
dependencies:
|
|
31
|
+
flutter:
|
|
32
|
+
sdk: flutter
|
|
33
|
+
intl: ^0.17.0
|
|
34
|
+
provider: ^6.0.0
|
|
35
|
+
flutter_multi_formatter: ^2.12.0
|
|
36
|
+
personal_finance_frontend_core_services:
|
|
37
|
+
path: ../personal-finance-frontend-core-services
|
|
38
|
+
|
|
39
|
+
# The following adds the Cupertino Icons font to your application.
|
|
40
|
+
# Use with the CupertinoIcons class for iOS style icons.
|
|
41
|
+
cupertino_icons: ^1.0.8
|
|
42
|
+
|
|
43
|
+
dev_dependencies:
|
|
44
|
+
flutter_test:
|
|
45
|
+
sdk: flutter
|
|
46
|
+
|
|
47
|
+
# The "flutter_lints" package below contains a set of recommended lints to
|
|
48
|
+
# encourage good coding practices. The lint set provided by the package is
|
|
49
|
+
# activated in the `analysis_options.yaml` file located at the root of your
|
|
50
|
+
# package. See that file for information about deactivating specific lint
|
|
51
|
+
# rules and activating additional ones.
|
|
52
|
+
flutter_lints: ^5.0.0
|
|
53
|
+
|
|
54
|
+
# For information on the generic Dart part of this file, see the
|
|
55
|
+
# following page: https://dart.dev/tools/pub/pubspec
|
|
56
|
+
|
|
57
|
+
# The following section is specific to Flutter packages.
|
|
58
|
+
flutter:
|
|
59
|
+
|
|
60
|
+
# The following line ensures that the Material Icons font is
|
|
61
|
+
# included with your application, so that you can use the icons in
|
|
62
|
+
# the material Icons class.
|
|
63
|
+
uses-material-design: true
|
|
64
|
+
|
|
65
|
+
# To add assets to your application, add an assets section, like this:
|
|
66
|
+
# assets:
|
|
67
|
+
# - images/a_dot_burr.jpeg
|
|
68
|
+
# - images/a_dot_ham.jpeg
|
|
69
|
+
|
|
70
|
+
# An image asset can refer to one or more resolution-specific "variants", see
|
|
71
|
+
# https://flutter.dev/to/resolution-aware-images
|
|
72
|
+
|
|
73
|
+
# For details regarding adding assets from package dependencies, see
|
|
74
|
+
# https://flutter.dev/to/asset-from-package
|
|
75
|
+
|
|
76
|
+
# To add custom fonts to your application, add a fonts section here,
|
|
77
|
+
# in this "flutter" section. Each entry in this list should have a
|
|
78
|
+
# "family" key with the font family name, and a "fonts" key with a
|
|
79
|
+
# list giving the asset and other descriptors for the font. For
|
|
80
|
+
# example:
|
|
81
|
+
# fonts:
|
|
82
|
+
# - family: Schyler
|
|
83
|
+
# fonts:
|
|
84
|
+
# - asset: fonts/Schyler-Regular.ttf
|
|
85
|
+
# - asset: fonts/Schyler-Italic.ttf
|
|
86
|
+
# style: italic
|
|
87
|
+
# - family: Trajan Pro
|
|
88
|
+
# fonts:
|
|
89
|
+
# - asset: fonts/TrajanPro.ttf
|
|
90
|
+
# - asset: fonts/TrajanPro_Bold.ttf
|
|
91
|
+
# weight: 700
|
|
92
|
+
#
|
|
93
|
+
# For details regarding fonts from package dependencies,
|
|
94
|
+
# see https://flutter.dev/to/font-from-package
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
// This is a basic Flutter widget test.
|
|
2
|
+
//
|
|
3
|
+
// To perform an interaction with a widget in your test, use the WidgetTester
|
|
4
|
+
// utility in the flutter_test package. For example, you can send tap and scroll
|
|
5
|
+
// gestures. You can also use WidgetTester to find child widgets in the widget
|
|
6
|
+
// tree, read text, and verify that the values of widget properties are correct.
|
|
7
|
+
|
|
8
|
+
import 'package:flutter/material.dart';
|
|
9
|
+
import 'package:flutter_test/flutter_test.dart';
|
|
10
|
+
|
|
11
|
+
import 'package:personal_finance_frontend_core_ui/main.dart';
|
|
12
|
+
|
|
13
|
+
void main() {
|
|
14
|
+
testWidgets('Counter increments smoke test', (WidgetTester tester) async {
|
|
15
|
+
// Build our app and trigger a frame.
|
|
16
|
+
await tester.pumpWidget(const MyApp());
|
|
17
|
+
|
|
18
|
+
// Verify that our counter starts at 0.
|
|
19
|
+
expect(find.text('0'), findsOneWidget);
|
|
20
|
+
expect(find.text('1'), findsNothing);
|
|
21
|
+
|
|
22
|
+
// Tap the '+' icon and trigger a frame.
|
|
23
|
+
await tester.tap(find.byIcon(Icons.add));
|
|
24
|
+
await tester.pump();
|
|
25
|
+
|
|
26
|
+
// Verify that our counter has incremented.
|
|
27
|
+
expect(find.text('0'), findsNothing);
|
|
28
|
+
expect(find.text('1'), findsOneWidget);
|
|
29
|
+
});
|
|
30
|
+
}
|
package/web/favicon.png
ADDED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/web/index.html
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html>
|
|
3
|
+
<head>
|
|
4
|
+
<!--
|
|
5
|
+
If you are serving your web app in a path other than the root, change the
|
|
6
|
+
href value below to reflect the base path you are serving from.
|
|
7
|
+
|
|
8
|
+
The path provided below has to start and end with a slash "/" in order for
|
|
9
|
+
it to work correctly.
|
|
10
|
+
|
|
11
|
+
For more details:
|
|
12
|
+
* https://developer.mozilla.org/en-US/docs/Web/HTML/Element/base
|
|
13
|
+
|
|
14
|
+
This is a placeholder for base href that will be replaced by the value of
|
|
15
|
+
the `--base-href` argument provided to `flutter build`.
|
|
16
|
+
-->
|
|
17
|
+
<base href="$FLUTTER_BASE_HREF">
|
|
18
|
+
|
|
19
|
+
<meta charset="UTF-8">
|
|
20
|
+
<meta content="IE=Edge" http-equiv="X-UA-Compatible">
|
|
21
|
+
<meta name="description" content="A new Flutter project.">
|
|
22
|
+
|
|
23
|
+
<!-- iOS meta tags & icons -->
|
|
24
|
+
<meta name="mobile-web-app-capable" content="yes">
|
|
25
|
+
<meta name="apple-mobile-web-app-status-bar-style" content="black">
|
|
26
|
+
<meta name="apple-mobile-web-app-title" content="personal_finance_frontend_core_ui">
|
|
27
|
+
<link rel="apple-touch-icon" href="icons/Icon-192.png">
|
|
28
|
+
|
|
29
|
+
<!-- Favicon -->
|
|
30
|
+
<link rel="icon" type="image/png" href="favicon.png"/>
|
|
31
|
+
|
|
32
|
+
<title>personal_finance_frontend_core_ui</title>
|
|
33
|
+
<link rel="manifest" href="manifest.json">
|
|
34
|
+
</head>
|
|
35
|
+
<body>
|
|
36
|
+
<script src="flutter_bootstrap.js" async></script>
|
|
37
|
+
</body>
|
|
38
|
+
</html>
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "personal_finance_frontend_core_ui",
|
|
3
|
+
"short_name": "personal_finance_frontend_core_ui",
|
|
4
|
+
"start_url": ".",
|
|
5
|
+
"display": "standalone",
|
|
6
|
+
"background_color": "#0175C2",
|
|
7
|
+
"theme_color": "#0175C2",
|
|
8
|
+
"description": "A new Flutter project.",
|
|
9
|
+
"orientation": "portrait-primary",
|
|
10
|
+
"prefer_related_applications": false,
|
|
11
|
+
"icons": [
|
|
12
|
+
{
|
|
13
|
+
"src": "icons/Icon-192.png",
|
|
14
|
+
"sizes": "192x192",
|
|
15
|
+
"type": "image/png"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"src": "icons/Icon-512.png",
|
|
19
|
+
"sizes": "512x512",
|
|
20
|
+
"type": "image/png"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"src": "icons/Icon-maskable-192.png",
|
|
24
|
+
"sizes": "192x192",
|
|
25
|
+
"type": "image/png",
|
|
26
|
+
"purpose": "maskable"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"src": "icons/Icon-maskable-512.png",
|
|
30
|
+
"sizes": "512x512",
|
|
31
|
+
"type": "image/png",
|
|
32
|
+
"purpose": "maskable"
|
|
33
|
+
}
|
|
34
|
+
]
|
|
35
|
+
}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
# Project-level configuration.
|
|
2
|
+
cmake_minimum_required(VERSION 3.14)
|
|
3
|
+
project(personal_finance_frontend_core_ui LANGUAGES CXX)
|
|
4
|
+
|
|
5
|
+
# The name of the executable created for the application. Change this to change
|
|
6
|
+
# the on-disk name of your application.
|
|
7
|
+
set(BINARY_NAME "personal_finance_frontend_core_ui")
|
|
8
|
+
|
|
9
|
+
# Explicitly opt in to modern CMake behaviors to avoid warnings with recent
|
|
10
|
+
# versions of CMake.
|
|
11
|
+
cmake_policy(VERSION 3.14...3.25)
|
|
12
|
+
|
|
13
|
+
# Define build configuration option.
|
|
14
|
+
get_property(IS_MULTICONFIG GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG)
|
|
15
|
+
if(IS_MULTICONFIG)
|
|
16
|
+
set(CMAKE_CONFIGURATION_TYPES "Debug;Profile;Release"
|
|
17
|
+
CACHE STRING "" FORCE)
|
|
18
|
+
else()
|
|
19
|
+
if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
|
|
20
|
+
set(CMAKE_BUILD_TYPE "Debug" CACHE
|
|
21
|
+
STRING "Flutter build mode" FORCE)
|
|
22
|
+
set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS
|
|
23
|
+
"Debug" "Profile" "Release")
|
|
24
|
+
endif()
|
|
25
|
+
endif()
|
|
26
|
+
# Define settings for the Profile build mode.
|
|
27
|
+
set(CMAKE_EXE_LINKER_FLAGS_PROFILE "${CMAKE_EXE_LINKER_FLAGS_RELEASE}")
|
|
28
|
+
set(CMAKE_SHARED_LINKER_FLAGS_PROFILE "${CMAKE_SHARED_LINKER_FLAGS_RELEASE}")
|
|
29
|
+
set(CMAKE_C_FLAGS_PROFILE "${CMAKE_C_FLAGS_RELEASE}")
|
|
30
|
+
set(CMAKE_CXX_FLAGS_PROFILE "${CMAKE_CXX_FLAGS_RELEASE}")
|
|
31
|
+
|
|
32
|
+
# Use Unicode for all projects.
|
|
33
|
+
add_definitions(-DUNICODE -D_UNICODE)
|
|
34
|
+
|
|
35
|
+
# Compilation settings that should be applied to most targets.
|
|
36
|
+
#
|
|
37
|
+
# Be cautious about adding new options here, as plugins use this function by
|
|
38
|
+
# default. In most cases, you should add new options to specific targets instead
|
|
39
|
+
# of modifying this function.
|
|
40
|
+
function(APPLY_STANDARD_SETTINGS TARGET)
|
|
41
|
+
target_compile_features(${TARGET} PUBLIC cxx_std_17)
|
|
42
|
+
target_compile_options(${TARGET} PRIVATE /W4 /WX /wd"4100")
|
|
43
|
+
target_compile_options(${TARGET} PRIVATE /EHsc)
|
|
44
|
+
target_compile_definitions(${TARGET} PRIVATE "_HAS_EXCEPTIONS=0")
|
|
45
|
+
target_compile_definitions(${TARGET} PRIVATE "$<$<CONFIG:Debug>:_DEBUG>")
|
|
46
|
+
endfunction()
|
|
47
|
+
|
|
48
|
+
# Flutter library and tool build rules.
|
|
49
|
+
set(FLUTTER_MANAGED_DIR "${CMAKE_CURRENT_SOURCE_DIR}/flutter")
|
|
50
|
+
add_subdirectory(${FLUTTER_MANAGED_DIR})
|
|
51
|
+
|
|
52
|
+
# Application build; see runner/CMakeLists.txt.
|
|
53
|
+
add_subdirectory("runner")
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
# Generated plugin build rules, which manage building the plugins and adding
|
|
57
|
+
# them to the application.
|
|
58
|
+
include(flutter/generated_plugins.cmake)
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
# === Installation ===
|
|
62
|
+
# Support files are copied into place next to the executable, so that it can
|
|
63
|
+
# run in place. This is done instead of making a separate bundle (as on Linux)
|
|
64
|
+
# so that building and running from within Visual Studio will work.
|
|
65
|
+
set(BUILD_BUNDLE_DIR "$<TARGET_FILE_DIR:${BINARY_NAME}>")
|
|
66
|
+
# Make the "install" step default, as it's required to run.
|
|
67
|
+
set(CMAKE_VS_INCLUDE_INSTALL_TO_DEFAULT_BUILD 1)
|
|
68
|
+
if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
|
|
69
|
+
set(CMAKE_INSTALL_PREFIX "${BUILD_BUNDLE_DIR}" CACHE PATH "..." FORCE)
|
|
70
|
+
endif()
|
|
71
|
+
|
|
72
|
+
set(INSTALL_BUNDLE_DATA_DIR "${CMAKE_INSTALL_PREFIX}/data")
|
|
73
|
+
set(INSTALL_BUNDLE_LIB_DIR "${CMAKE_INSTALL_PREFIX}")
|
|
74
|
+
|
|
75
|
+
install(TARGETS ${BINARY_NAME} RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}"
|
|
76
|
+
COMPONENT Runtime)
|
|
77
|
+
|
|
78
|
+
install(FILES "${FLUTTER_ICU_DATA_FILE}" DESTINATION "${INSTALL_BUNDLE_DATA_DIR}"
|
|
79
|
+
COMPONENT Runtime)
|
|
80
|
+
|
|
81
|
+
install(FILES "${FLUTTER_LIBRARY}" DESTINATION "${INSTALL_BUNDLE_LIB_DIR}"
|
|
82
|
+
COMPONENT Runtime)
|
|
83
|
+
|
|
84
|
+
if(PLUGIN_BUNDLED_LIBRARIES)
|
|
85
|
+
install(FILES "${PLUGIN_BUNDLED_LIBRARIES}"
|
|
86
|
+
DESTINATION "${INSTALL_BUNDLE_LIB_DIR}"
|
|
87
|
+
COMPONENT Runtime)
|
|
88
|
+
endif()
|
|
89
|
+
|
|
90
|
+
# Copy the native assets provided by the build.dart from all packages.
|
|
91
|
+
set(NATIVE_ASSETS_DIR "${PROJECT_BUILD_DIR}native_assets/windows/")
|
|
92
|
+
install(DIRECTORY "${NATIVE_ASSETS_DIR}"
|
|
93
|
+
DESTINATION "${INSTALL_BUNDLE_LIB_DIR}"
|
|
94
|
+
COMPONENT Runtime)
|
|
95
|
+
|
|
96
|
+
# Fully re-copy the assets directory on each build to avoid having stale files
|
|
97
|
+
# from a previous install.
|
|
98
|
+
set(FLUTTER_ASSET_DIR_NAME "flutter_assets")
|
|
99
|
+
install(CODE "
|
|
100
|
+
file(REMOVE_RECURSE \"${INSTALL_BUNDLE_DATA_DIR}/${FLUTTER_ASSET_DIR_NAME}\")
|
|
101
|
+
" COMPONENT Runtime)
|
|
102
|
+
install(DIRECTORY "${PROJECT_BUILD_DIR}/${FLUTTER_ASSET_DIR_NAME}"
|
|
103
|
+
DESTINATION "${INSTALL_BUNDLE_DATA_DIR}" COMPONENT Runtime)
|
|
104
|
+
|
|
105
|
+
# Install the AOT library on non-Debug builds only.
|
|
106
|
+
install(FILES "${AOT_LIBRARY}" DESTINATION "${INSTALL_BUNDLE_DATA_DIR}"
|
|
107
|
+
CONFIGURATIONS Profile;Release
|
|
108
|
+
COMPONENT Runtime)
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
# This file controls Flutter-level build steps. It should not be edited.
|
|
2
|
+
cmake_minimum_required(VERSION 3.14)
|
|
3
|
+
|
|
4
|
+
set(EPHEMERAL_DIR "${CMAKE_CURRENT_SOURCE_DIR}/ephemeral")
|
|
5
|
+
|
|
6
|
+
# Configuration provided via flutter tool.
|
|
7
|
+
include(${EPHEMERAL_DIR}/generated_config.cmake)
|
|
8
|
+
|
|
9
|
+
# TODO: Move the rest of this into files in ephemeral. See
|
|
10
|
+
# https://github.com/flutter/flutter/issues/57146.
|
|
11
|
+
set(WRAPPER_ROOT "${EPHEMERAL_DIR}/cpp_client_wrapper")
|
|
12
|
+
|
|
13
|
+
# Set fallback configurations for older versions of the flutter tool.
|
|
14
|
+
if (NOT DEFINED FLUTTER_TARGET_PLATFORM)
|
|
15
|
+
set(FLUTTER_TARGET_PLATFORM "windows-x64")
|
|
16
|
+
endif()
|
|
17
|
+
|
|
18
|
+
# === Flutter Library ===
|
|
19
|
+
set(FLUTTER_LIBRARY "${EPHEMERAL_DIR}/flutter_windows.dll")
|
|
20
|
+
|
|
21
|
+
# Published to parent scope for install step.
|
|
22
|
+
set(FLUTTER_LIBRARY ${FLUTTER_LIBRARY} PARENT_SCOPE)
|
|
23
|
+
set(FLUTTER_ICU_DATA_FILE "${EPHEMERAL_DIR}/icudtl.dat" PARENT_SCOPE)
|
|
24
|
+
set(PROJECT_BUILD_DIR "${PROJECT_DIR}/build/" PARENT_SCOPE)
|
|
25
|
+
set(AOT_LIBRARY "${PROJECT_DIR}/build/windows/app.so" PARENT_SCOPE)
|
|
26
|
+
|
|
27
|
+
list(APPEND FLUTTER_LIBRARY_HEADERS
|
|
28
|
+
"flutter_export.h"
|
|
29
|
+
"flutter_windows.h"
|
|
30
|
+
"flutter_messenger.h"
|
|
31
|
+
"flutter_plugin_registrar.h"
|
|
32
|
+
"flutter_texture_registrar.h"
|
|
33
|
+
)
|
|
34
|
+
list(TRANSFORM FLUTTER_LIBRARY_HEADERS PREPEND "${EPHEMERAL_DIR}/")
|
|
35
|
+
add_library(flutter INTERFACE)
|
|
36
|
+
target_include_directories(flutter INTERFACE
|
|
37
|
+
"${EPHEMERAL_DIR}"
|
|
38
|
+
)
|
|
39
|
+
target_link_libraries(flutter INTERFACE "${FLUTTER_LIBRARY}.lib")
|
|
40
|
+
add_dependencies(flutter flutter_assemble)
|
|
41
|
+
|
|
42
|
+
# === Wrapper ===
|
|
43
|
+
list(APPEND CPP_WRAPPER_SOURCES_CORE
|
|
44
|
+
"core_implementations.cc"
|
|
45
|
+
"standard_codec.cc"
|
|
46
|
+
)
|
|
47
|
+
list(TRANSFORM CPP_WRAPPER_SOURCES_CORE PREPEND "${WRAPPER_ROOT}/")
|
|
48
|
+
list(APPEND CPP_WRAPPER_SOURCES_PLUGIN
|
|
49
|
+
"plugin_registrar.cc"
|
|
50
|
+
)
|
|
51
|
+
list(TRANSFORM CPP_WRAPPER_SOURCES_PLUGIN PREPEND "${WRAPPER_ROOT}/")
|
|
52
|
+
list(APPEND CPP_WRAPPER_SOURCES_APP
|
|
53
|
+
"flutter_engine.cc"
|
|
54
|
+
"flutter_view_controller.cc"
|
|
55
|
+
)
|
|
56
|
+
list(TRANSFORM CPP_WRAPPER_SOURCES_APP PREPEND "${WRAPPER_ROOT}/")
|
|
57
|
+
|
|
58
|
+
# Wrapper sources needed for a plugin.
|
|
59
|
+
add_library(flutter_wrapper_plugin STATIC
|
|
60
|
+
${CPP_WRAPPER_SOURCES_CORE}
|
|
61
|
+
${CPP_WRAPPER_SOURCES_PLUGIN}
|
|
62
|
+
)
|
|
63
|
+
apply_standard_settings(flutter_wrapper_plugin)
|
|
64
|
+
set_target_properties(flutter_wrapper_plugin PROPERTIES
|
|
65
|
+
POSITION_INDEPENDENT_CODE ON)
|
|
66
|
+
set_target_properties(flutter_wrapper_plugin PROPERTIES
|
|
67
|
+
CXX_VISIBILITY_PRESET hidden)
|
|
68
|
+
target_link_libraries(flutter_wrapper_plugin PUBLIC flutter)
|
|
69
|
+
target_include_directories(flutter_wrapper_plugin PUBLIC
|
|
70
|
+
"${WRAPPER_ROOT}/include"
|
|
71
|
+
)
|
|
72
|
+
add_dependencies(flutter_wrapper_plugin flutter_assemble)
|
|
73
|
+
|
|
74
|
+
# Wrapper sources needed for the runner.
|
|
75
|
+
add_library(flutter_wrapper_app STATIC
|
|
76
|
+
${CPP_WRAPPER_SOURCES_CORE}
|
|
77
|
+
${CPP_WRAPPER_SOURCES_APP}
|
|
78
|
+
)
|
|
79
|
+
apply_standard_settings(flutter_wrapper_app)
|
|
80
|
+
target_link_libraries(flutter_wrapper_app PUBLIC flutter)
|
|
81
|
+
target_include_directories(flutter_wrapper_app PUBLIC
|
|
82
|
+
"${WRAPPER_ROOT}/include"
|
|
83
|
+
)
|
|
84
|
+
add_dependencies(flutter_wrapper_app flutter_assemble)
|
|
85
|
+
|
|
86
|
+
# === Flutter tool backend ===
|
|
87
|
+
# _phony_ is a non-existent file to force this command to run every time,
|
|
88
|
+
# since currently there's no way to get a full input/output list from the
|
|
89
|
+
# flutter tool.
|
|
90
|
+
set(PHONY_OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/_phony_")
|
|
91
|
+
set_source_files_properties("${PHONY_OUTPUT}" PROPERTIES SYMBOLIC TRUE)
|
|
92
|
+
add_custom_command(
|
|
93
|
+
OUTPUT ${FLUTTER_LIBRARY} ${FLUTTER_LIBRARY_HEADERS}
|
|
94
|
+
${CPP_WRAPPER_SOURCES_CORE} ${CPP_WRAPPER_SOURCES_PLUGIN}
|
|
95
|
+
${CPP_WRAPPER_SOURCES_APP}
|
|
96
|
+
${PHONY_OUTPUT}
|
|
97
|
+
COMMAND ${CMAKE_COMMAND} -E env
|
|
98
|
+
${FLUTTER_TOOL_ENVIRONMENT}
|
|
99
|
+
"${FLUTTER_ROOT}/packages/flutter_tools/bin/tool_backend.bat"
|
|
100
|
+
${FLUTTER_TARGET_PLATFORM} $<CONFIG>
|
|
101
|
+
VERBATIM
|
|
102
|
+
)
|
|
103
|
+
add_custom_target(flutter_assemble DEPENDS
|
|
104
|
+
"${FLUTTER_LIBRARY}"
|
|
105
|
+
${FLUTTER_LIBRARY_HEADERS}
|
|
106
|
+
${CPP_WRAPPER_SOURCES_CORE}
|
|
107
|
+
${CPP_WRAPPER_SOURCES_PLUGIN}
|
|
108
|
+
${CPP_WRAPPER_SOURCES_APP}
|
|
109
|
+
)
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Generated file. Do not edit.
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
// clang-format off
|
|
6
|
+
|
|
7
|
+
#ifndef GENERATED_PLUGIN_REGISTRANT_
|
|
8
|
+
#define GENERATED_PLUGIN_REGISTRANT_
|
|
9
|
+
|
|
10
|
+
#include <flutter/plugin_registry.h>
|
|
11
|
+
|
|
12
|
+
// Registers Flutter plugins.
|
|
13
|
+
void RegisterPlugins(flutter::PluginRegistry* registry);
|
|
14
|
+
|
|
15
|
+
#endif // GENERATED_PLUGIN_REGISTRANT_
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
#
|
|
2
|
+
# Generated file, do not edit.
|
|
3
|
+
#
|
|
4
|
+
|
|
5
|
+
list(APPEND FLUTTER_PLUGIN_LIST
|
|
6
|
+
)
|
|
7
|
+
|
|
8
|
+
list(APPEND FLUTTER_FFI_PLUGIN_LIST
|
|
9
|
+
)
|
|
10
|
+
|
|
11
|
+
set(PLUGIN_BUNDLED_LIBRARIES)
|
|
12
|
+
|
|
13
|
+
foreach(plugin ${FLUTTER_PLUGIN_LIST})
|
|
14
|
+
add_subdirectory(flutter/ephemeral/.plugin_symlinks/${plugin}/windows plugins/${plugin})
|
|
15
|
+
target_link_libraries(${BINARY_NAME} PRIVATE ${plugin}_plugin)
|
|
16
|
+
list(APPEND PLUGIN_BUNDLED_LIBRARIES $<TARGET_FILE:${plugin}_plugin>)
|
|
17
|
+
list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${plugin}_bundled_libraries})
|
|
18
|
+
endforeach(plugin)
|
|
19
|
+
|
|
20
|
+
foreach(ffi_plugin ${FLUTTER_FFI_PLUGIN_LIST})
|
|
21
|
+
add_subdirectory(flutter/ephemeral/.plugin_symlinks/${ffi_plugin}/windows plugins/${ffi_plugin})
|
|
22
|
+
list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${ffi_plugin}_bundled_libraries})
|
|
23
|
+
endforeach(ffi_plugin)
|