Initial commit - app-padrao-1.0

This commit is contained in:
Erik Silva
2025-12-19 23:29:24 -03:00
commit ec76d3d633
205 changed files with 13131 additions and 0 deletions

45
.gitignore vendored Normal file
View File

@@ -0,0 +1,45 @@
# Miscellaneous
*.class
*.log
*.pyc
*.swp
.DS_Store
.atom/
.build/
.buildlog/
.history
.svn/
.swiftpm/
migrate_working_dir/
# IntelliJ related
*.iml
*.ipr
*.iws
.idea/
# The .vscode folder contains launch configuration and tasks you configure in
# VS Code which you may wish to be included in version control, so this line
# is commented out by default.
#.vscode/
# Flutter/Dart/Pub related
**/doc/api/
**/ios/Flutter/.last_build_id
.dart_tool/
.flutter-plugins-dependencies
.pub-cache/
.pub/
/build/
/coverage/
# Symbolication related
app.*.symbols
# Obfuscation related
app.*.map.json
# Android Studio will place build artifacts here
/android/app/debug
/android/app/profile
/android/app/release

45
.metadata Normal file
View File

@@ -0,0 +1,45 @@
# This file tracks properties of this Flutter project.
# Used by Flutter tool to assess capabilities and perform upgrades etc.
#
# This file should be version controlled and should not be manually edited.
version:
revision: "19074d12f7eaf6a8180cd4036a430c1d76de904e"
channel: "stable"
project_type: app
# Tracks metadata for the flutter migrate command
migration:
platforms:
- platform: root
create_revision: 19074d12f7eaf6a8180cd4036a430c1d76de904e
base_revision: 19074d12f7eaf6a8180cd4036a430c1d76de904e
- platform: android
create_revision: 19074d12f7eaf6a8180cd4036a430c1d76de904e
base_revision: 19074d12f7eaf6a8180cd4036a430c1d76de904e
- platform: ios
create_revision: 19074d12f7eaf6a8180cd4036a430c1d76de904e
base_revision: 19074d12f7eaf6a8180cd4036a430c1d76de904e
- platform: linux
create_revision: 19074d12f7eaf6a8180cd4036a430c1d76de904e
base_revision: 19074d12f7eaf6a8180cd4036a430c1d76de904e
- platform: macos
create_revision: 19074d12f7eaf6a8180cd4036a430c1d76de904e
base_revision: 19074d12f7eaf6a8180cd4036a430c1d76de904e
- platform: web
create_revision: 19074d12f7eaf6a8180cd4036a430c1d76de904e
base_revision: 19074d12f7eaf6a8180cd4036a430c1d76de904e
- platform: windows
create_revision: 19074d12f7eaf6a8180cd4036a430c1d76de904e
base_revision: 19074d12f7eaf6a8180cd4036a430c1d76de904e
# User provided section
# List of Local paths (relative to this file) that should be
# ignored by the migrate tool.
#
# Files that are not part of the templates will be ignored by default.
unmanaged_files:
- 'lib/main.dart'
- 'ios/Runner.xcodeproj/project.pbxproj'

16
README.md Normal file
View File

@@ -0,0 +1,16 @@
# barber_app
A new Flutter project.
## Getting Started
This project is a starting point for a Flutter application.
A few resources to get you started if this is your first Flutter project:
- [Lab: Write your first Flutter app](https://docs.flutter.dev/get-started/codelab)
- [Cookbook: Useful Flutter samples](https://docs.flutter.dev/cookbook)
For help getting started with Flutter development, view the
[online documentation](https://docs.flutter.dev/), which offers tutorials,
samples, guidance on mobile development, and a full API reference.

28
analysis_options.yaml Normal file
View File

@@ -0,0 +1,28 @@
# This file configures the analyzer, which statically analyzes Dart code to
# check for errors, warnings, and lints.
#
# The issues identified by the analyzer are surfaced in the UI of Dart-enabled
# IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be
# invoked from the command line by running `flutter analyze`.
# The following line activates a set of recommended lints for Flutter apps,
# packages, and plugins designed to encourage good coding practices.
include: package:flutter_lints/flutter.yaml
linter:
# The lint rules applied to this project can be customized in the
# section below to disable rules from the `package:flutter_lints/flutter.yaml`
# included above or to enable additional rules. A list of all available lints
# and their documentation is published at https://dart.dev/lints.
#
# Instead of disabling a lint rule for the entire project in the
# section below, it can also be suppressed for a single line of code
# or a specific dart file by using the `// ignore: name_of_lint` and
# `// ignore_for_file: name_of_lint` syntax on the line or in the file
# producing the lint.
rules:
# avoid_print: false # Uncomment to disable the `avoid_print` rule
# prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule
# Additional information about this file can be found at
# https://dart.dev/guides/language/analysis-options

BIN
analysis_report.txt Normal file

Binary file not shown.

BIN
analysis_results.txt Normal file

Binary file not shown.

64
analyze.txt Normal file
View File

@@ -0,0 +1,64 @@
[info] 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss (G:\Projetos\barber-app\lib\features\auth\presentation\pages\login_page.dart:118:40)
[info] 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss (G:\Projetos\barber-app\lib\features\auth\presentation\pages\login_page.dart:125:47)
[info] 'activeColor' is deprecated and shouldn't be used. Use activeThumbColor instead. This feature was deprecated after v3.31.0-2.0.pre (G:\Projetos\barber-app\lib\features\finances\presentation\pages\add_transaction_page.dart:212:19)
[info] 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss (G:\Projetos\barber-app\lib\features\finances\presentation\pages\add_transaction_page.dart:237:37)
[info] 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss (G:\Projetos\barber-app\lib\features\finances\presentation\pages\finances_page.dart:96:72)
[info] 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss (G:\Projetos\barber-app\lib\features\finances\presentation\pages\finances_page.dart:190:46)
[info] 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss (G:\Projetos\barber-app\lib\features\finances\presentation\pages\finances_page.dart:225:33)
[info] 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss (G:\Projetos\barber-app\lib\features\finances\presentation\pages\finances_page.dart:235:72)
[info] 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss (G:\Projetos\barber-app\lib\features\finances\presentation\pages\finances_page.dart:272:57)
[info] 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss (G:\Projetos\barber-app\lib\features\finances\presentation\pages\finances_page.dart:306:53)
[info] 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss (G:\Projetos\barber-app\lib\features\finances\presentation\pages\finances_page.dart:322:46)
[info] Don't use 'BuildContext's across async gaps (G:\Projetos\barber-app\lib\features\finances\presentation\pages\finances_page.dart:355:29)
[info] 'activeColor' is deprecated and shouldn't be used. Use activeThumbColor instead. This feature was deprecated after v3.31.0-2.0.pre (G:\Projetos\barber-app\lib\features\haircuts\presentation\pages\add_haircut_page.dart:204:19)
[warning] Unused import: 'package:barber_app/features/settings/data/models/settings_model.dart' (G:\Projetos\barber-app\lib\features\haircuts\presentation\pages\add_haircut_page.dart:6:8)
[info] 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss (G:\Projetos\barber-app\lib\features\haircuts\presentation\pages\haircuts_page.dart:88:46)
[info] 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss (G:\Projetos\barber-app\lib\features\haircuts\presentation\pages\haircuts_page.dart:113:40)
[info] 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss (G:\Projetos\barber-app\lib\features\haircuts\presentation\pages\haircuts_page.dart:140:45)
[info] 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss (G:\Projetos\barber-app\lib\features\haircuts\presentation\pages\haircuts_page.dart:193:45)
[info] 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss (G:\Projetos\barber-app\lib\features\haircuts\presentation\pages\haircuts_page.dart:232:52)
[warning] Unused import: 'package:barber_app/features/settings/data/models/settings_model.dart' (G:\Projetos\barber-app\lib\features\haircuts\presentation\pages\haircuts_page.dart:8:8)
[warning] Unused import: 'package:barber_app/core/database/database_service.dart' (G:\Projetos\barber-app\lib\features\haircuts\presentation\pages\haircuts_page.dart:9:8)
[info] Don't use 'BuildContext's across async gaps (G:\Projetos\barber-app\lib\features\haircuts\presentation\pages\haircuts_page.dart:275:29)
[info] Don't use 'BuildContext's across async gaps (G:\Projetos\barber-app\lib\features\haircuts\presentation\pages\haircuts_page.dart:277:36)
[error] The getter 'currentUser' isn't defined for the type 'AuthBloc' (G:\Projetos\barber-app\lib\features\home\presentation\pages\home_page.dart:117:43)
[info] 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss (G:\Projetos\barber-app\lib\features\home\presentation\pages\home_page.dart:46:35)
[info] 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss (G:\Projetos\barber-app\lib\features\home\presentation\pages\home_page.dart:248:50)
[info] 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss (G:\Projetos\barber-app\lib\features\home\presentation\pages\home_page.dart:250:69)
[info] 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss (G:\Projetos\barber-app\lib\features\home\presentation\pages\home_page.dart:317:70)
[info] 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss (G:\Projetos\barber-app\lib\features\home\presentation\pages\home_page.dart:328:72)
[info] 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss (G:\Projetos\barber-app\lib\features\home\presentation\widgets\revenue_chart.dart:134:44)
[info] 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss (G:\Projetos\barber-app\lib\features\home\presentation\widgets\revenue_chart.dart:144:46)
[info] 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss (G:\Projetos\barber-app\lib\features\home\presentation\widgets\revenue_chart.dart:145:46)
[warning] The value of the local variable 'weekData' isn't used (G:\Projetos\barber-app\lib\features\home\presentation\widgets\revenue_chart.dart:12:11)
[info] Statements in a for should be enclosed in a block (G:\Projetos\barber-app\lib\features\home\presentation\widgets\revenue_chart.dart:33:31)
[error] A value of type 'ProductModel?' can't be assigned to a variable of type 'ProductModel' (G:\Projetos\barber-app\lib\features\products\presentation\pages\add_product_page.dart:91:24)
[error] The method 'TransactionRepository' isn't defined for the type '_AddProductPageState' (G:\Projetos\barber-app\lib\features\products\presentation\pages\add_product_page.dart:105:36)
[info] 'activeColor' is deprecated and shouldn't be used. Use activeThumbColor instead. This feature was deprecated after v3.31.0-2.0.pre (G:\Projetos\barber-app\lib\features\products\presentation\pages\add_product_page.dart:282:21)
[info] 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss (G:\Projetos\barber-app\lib\features\products\presentation\pages\products_page.dart:43:42)
[info] 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss (G:\Projetos\barber-app\lib\features\products\presentation\pages\products_page.dart:89:58)
[info] 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss (G:\Projetos\barber-app\lib\features\products\presentation\pages\products_page.dart:152:35)
[info] 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss (G:\Projetos\barber-app\lib\features\products\presentation\pages\products_page.dart:163:58)
[info] 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss (G:\Projetos\barber-app\lib\features\products\presentation\pages\products_page.dart:199:49)
[info] 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss (G:\Projetos\barber-app\lib\features\products\presentation\pages\products_page.dart:200:49)
[warning] The value of the field '_products' isn't used (G:\Projetos\barber-app\lib\features\products\presentation\pages\products_page.dart:19:22)
[warning] The value of the field '_isLoading' isn't used (G:\Projetos\barber-app\lib\features\products\presentation\pages\products_page.dart:20:8)
[warning] The value of the field '_categories' isn't used (G:\Projetos\barber-app\lib\features\products\presentation\pages\products_page.dart:22:16)
[info] The private field _products could be 'final' (G:\Projetos\barber-app\lib\features\products\presentation\pages\products_page.dart:19:22)
[info] The private field _isLoading could be 'final' (G:\Projetos\barber-app\lib\features\products\presentation\pages\products_page.dart:20:8)
[info] The private field _categories could be 'final' (G:\Projetos\barber-app\lib\features\products\presentation\pages\products_page.dart:22:16)
[info] Don't use 'BuildContext's across async gaps (G:\Projetos\barber-app\lib\features\products\presentation\pages\products_page.dart:302:29)
[info] 'value' is deprecated and shouldn't be used. Use component accessors like .r or .g, or toARGB32 for an explicit conversion (G:\Projetos\barber-app\lib\features\settings\presentation\pages\settings_page.dart:93:39)
[info] 'value' is deprecated and shouldn't be used. Use component accessors like .r or .g, or toARGB32 for an explicit conversion (G:\Projetos\barber-app\lib\features\settings\presentation\pages\settings_page.dart:93:54)
[info] 'value' is deprecated and shouldn't be used. Use component accessors like .r or .g, or toARGB32 for an explicit conversion (G:\Projetos\barber-app\lib\features\settings\presentation\pages\settings_page.dart:101:72)
[info] 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss (G:\Projetos\barber-app\lib\features\settings\presentation\pages\settings_page.dart:119:28)
[info] 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss (G:\Projetos\barber-app\lib\features\settings\presentation\pages\settings_page.dart:322:54)
[info] Don't use 'BuildContext's across async gaps (G:\Projetos\barber-app\lib\features\settings\presentation\pages\settings_page.dart:105:23)
[error] The method 'listenable' isn't defined for the type 'Box' (G:\Projetos\barber-app\lib\main.dart:41:60)
[error] The method 'containsKey' can't be unconditionally invoked because the receiver can be 'null' (G:\Projetos\barber-app\lib\main.dart:45:35)
[error] The method 'get' can't be unconditionally invoked because the receiver can be 'null' (G:\Projetos\barber-app\lib\main.dart:46:32)
[info] 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss (G:\Projetos\barber-app\lib\main.dart:96:44)
[warning] Unused import: 'package:barber_app/features/settings/data/models/settings_model.dart' (G:\Projetos\barber-app\lib\main.dart:11:8)
[info] 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss (G:\Projetos\barber-app\lib\shared\widgets\loading_button.dart:32:59)
[info] 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss (G:\Projetos\barber-app\lib\shared\widgets\stat_card.dart:45:66)
[error] The name 'MyApp' isn't a class (G:\Projetos\barber-app\test\widget_test.dart:16:35)

63
analyze_final.txt Normal file
View File

@@ -0,0 +1,63 @@
[info] 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss (G:\Projetos\barber-app\lib\features\auth\presentation\pages\login_page.dart:118:40)
[info] 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss (G:\Projetos\barber-app\lib\features\auth\presentation\pages\login_page.dart:125:47)
[info] 'activeColor' is deprecated and shouldn't be used. Use activeThumbColor instead. This feature was deprecated after v3.31.0-2.0.pre (G:\Projetos\barber-app\lib\features\finances\presentation\pages\add_transaction_page.dart:212:19)
[info] 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss (G:\Projetos\barber-app\lib\features\finances\presentation\pages\add_transaction_page.dart:237:37)
[info] 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss (G:\Projetos\barber-app\lib\features\finances\presentation\pages\finances_page.dart:96:72)
[info] 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss (G:\Projetos\barber-app\lib\features\finances\presentation\pages\finances_page.dart:190:46)
[info] 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss (G:\Projetos\barber-app\lib\features\finances\presentation\pages\finances_page.dart:225:33)
[info] 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss (G:\Projetos\barber-app\lib\features\finances\presentation\pages\finances_page.dart:235:72)
[info] 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss (G:\Projetos\barber-app\lib\features\finances\presentation\pages\finances_page.dart:272:57)
[info] 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss (G:\Projetos\barber-app\lib\features\finances\presentation\pages\finances_page.dart:306:53)
[info] 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss (G:\Projetos\barber-app\lib\features\finances\presentation\pages\finances_page.dart:322:46)
[info] Don't use 'BuildContext's across async gaps (G:\Projetos\barber-app\lib\features\finances\presentation\pages\finances_page.dart:355:29)
[info] 'activeColor' is deprecated and shouldn't be used. Use activeThumbColor instead. This feature was deprecated after v3.31.0-2.0.pre (G:\Projetos\barber-app\lib\features\haircuts\presentation\pages\add_haircut_page.dart:204:19)
[warning] Unused import: 'package:barber_app/features/settings/data/models/settings_model.dart' (G:\Projetos\barber-app\lib\features\haircuts\presentation\pages\add_haircut_page.dart:6:8)
[info] 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss (G:\Projetos\barber-app\lib\features\haircuts\presentation\pages\haircuts_page.dart:88:46)
[info] 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss (G:\Projetos\barber-app\lib\features\haircuts\presentation\pages\haircuts_page.dart:113:40)
[info] 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss (G:\Projetos\barber-app\lib\features\haircuts\presentation\pages\haircuts_page.dart:140:45)
[info] 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss (G:\Projetos\barber-app\lib\features\haircuts\presentation\pages\haircuts_page.dart:193:45)
[info] 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss (G:\Projetos\barber-app\lib\features\haircuts\presentation\pages\haircuts_page.dart:232:52)
[warning] Unused import: 'package:barber_app/features/settings/data/models/settings_model.dart' (G:\Projetos\barber-app\lib\features\haircuts\presentation\pages\haircuts_page.dart:8:8)
[warning] Unused import: 'package:barber_app/core/database/database_service.dart' (G:\Projetos\barber-app\lib\features\haircuts\presentation\pages\haircuts_page.dart:9:8)
[info] Don't use 'BuildContext's across async gaps (G:\Projetos\barber-app\lib\features\haircuts\presentation\pages\haircuts_page.dart:275:29)
[info] Don't use 'BuildContext's across async gaps (G:\Projetos\barber-app\lib\features\haircuts\presentation\pages\haircuts_page.dart:277:36)
[info] 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss (G:\Projetos\barber-app\lib\features\home\presentation\pages\home_page.dart:46:35)
[info] 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss (G:\Projetos\barber-app\lib\features\home\presentation\pages\home_page.dart:249:50)
[info] 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss (G:\Projetos\barber-app\lib\features\home\presentation\pages\home_page.dart:251:69)
[info] 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss (G:\Projetos\barber-app\lib\features\home\presentation\pages\home_page.dart:318:70)
[info] 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss (G:\Projetos\barber-app\lib\features\home\presentation\pages\home_page.dart:329:72)
[info] 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss (G:\Projetos\barber-app\lib\features\home\presentation\widgets\revenue_chart.dart:134:44)
[info] 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss (G:\Projetos\barber-app\lib\features\home\presentation\widgets\revenue_chart.dart:144:46)
[info] 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss (G:\Projetos\barber-app\lib\features\home\presentation\widgets\revenue_chart.dart:145:46)
[warning] The value of the local variable 'weekData' isn't used (G:\Projetos\barber-app\lib\features\home\presentation\widgets\revenue_chart.dart:12:11)
[info] Statements in a for should be enclosed in a block (G:\Projetos\barber-app\lib\features\home\presentation\widgets\revenue_chart.dart:33:31)
[error] A value of type 'ProductModel?' can't be assigned to a variable of type 'ProductModel' (G:\Projetos\barber-app\lib\features\products\presentation\pages\add_product_page.dart:91:24)
[error] The method 'TransactionRepository' isn't defined for the type '_AddProductPageState' (G:\Projetos\barber-app\lib\features\products\presentation\pages\add_product_page.dart:105:36)
[info] 'activeColor' is deprecated and shouldn't be used. Use activeThumbColor instead. This feature was deprecated after v3.31.0-2.0.pre (G:\Projetos\barber-app\lib\features\products\presentation\pages\add_product_page.dart:282:21)
[info] 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss (G:\Projetos\barber-app\lib\features\products\presentation\pages\products_page.dart:43:42)
[info] 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss (G:\Projetos\barber-app\lib\features\products\presentation\pages\products_page.dart:89:58)
[info] 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss (G:\Projetos\barber-app\lib\features\products\presentation\pages\products_page.dart:152:35)
[info] 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss (G:\Projetos\barber-app\lib\features\products\presentation\pages\products_page.dart:163:58)
[info] 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss (G:\Projetos\barber-app\lib\features\products\presentation\pages\products_page.dart:199:49)
[info] 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss (G:\Projetos\barber-app\lib\features\products\presentation\pages\products_page.dart:200:49)
[warning] The value of the field '_products' isn't used (G:\Projetos\barber-app\lib\features\products\presentation\pages\products_page.dart:19:22)
[warning] The value of the field '_isLoading' isn't used (G:\Projetos\barber-app\lib\features\products\presentation\pages\products_page.dart:20:8)
[warning] The value of the field '_categories' isn't used (G:\Projetos\barber-app\lib\features\products\presentation\pages\products_page.dart:22:16)
[info] The private field _products could be 'final' (G:\Projetos\barber-app\lib\features\products\presentation\pages\products_page.dart:19:22)
[info] The private field _isLoading could be 'final' (G:\Projetos\barber-app\lib\features\products\presentation\pages\products_page.dart:20:8)
[info] The private field _categories could be 'final' (G:\Projetos\barber-app\lib\features\products\presentation\pages\products_page.dart:22:16)
[info] Don't use 'BuildContext's across async gaps (G:\Projetos\barber-app\lib\features\products\presentation\pages\products_page.dart:302:29)
[info] 'value' is deprecated and shouldn't be used. Use component accessors like .r or .g, or toARGB32 for an explicit conversion (G:\Projetos\barber-app\lib\features\settings\presentation\pages\settings_page.dart:93:39)
[info] 'value' is deprecated and shouldn't be used. Use component accessors like .r or .g, or toARGB32 for an explicit conversion (G:\Projetos\barber-app\lib\features\settings\presentation\pages\settings_page.dart:93:54)
[info] 'value' is deprecated and shouldn't be used. Use component accessors like .r or .g, or toARGB32 for an explicit conversion (G:\Projetos\barber-app\lib\features\settings\presentation\pages\settings_page.dart:101:72)
[info] 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss (G:\Projetos\barber-app\lib\features\settings\presentation\pages\settings_page.dart:119:28)
[info] 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss (G:\Projetos\barber-app\lib\features\settings\presentation\pages\settings_page.dart:322:54)
[info] Don't use 'BuildContext's across async gaps (G:\Projetos\barber-app\lib\features\settings\presentation\pages\settings_page.dart:105:23)
[error] The method 'listenable' isn't defined for the type 'Box' (G:\Projetos\barber-app\lib\main.dart:41:60)
[error] The method 'containsKey' can't be unconditionally invoked because the receiver can be 'null' (G:\Projetos\barber-app\lib\main.dart:45:35)
[error] The method 'get' can't be unconditionally invoked because the receiver can be 'null' (G:\Projetos\barber-app\lib\main.dart:46:32)
[info] 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss (G:\Projetos\barber-app\lib\main.dart:96:44)
[warning] Unused import: 'package:barber_app/features/settings/data/models/settings_model.dart' (G:\Projetos\barber-app\lib\main.dart:11:8)
[info] 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss (G:\Projetos\barber-app\lib\shared\widgets\loading_button.dart:32:59)
[info] 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss (G:\Projetos\barber-app\lib\shared\widgets\stat_card.dart:45:66)
[error] The name 'MyApp' isn't a class (G:\Projetos\barber-app\test\widget_test.dart:16:35)

BIN
analyze_output.txt Normal file

Binary file not shown.

14
android/.gitignore vendored Normal file
View File

@@ -0,0 +1,14 @@
gradle-wrapper.jar
/.gradle
/captures/
/gradlew
/gradlew.bat
/local.properties
GeneratedPluginRegistrant.java
.cxx/
# Remember to never publicly share your keystore.
# See https://flutter.dev/to/reference-keystore
key.properties
**/*.keystore
**/*.jks

View File

@@ -0,0 +1,45 @@
plugins {
id("com.android.application")
id("kotlin-android")
// The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins.
id("dev.flutter.flutter-gradle-plugin")
}
android {
namespace = "com.barberapp.barber_app"
compileSdk = flutter.compileSdkVersion
ndkVersion = flutter.ndkVersion
compileOptions {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
kotlinOptions {
jvmTarget = JavaVersion.VERSION_17.toString()
}
defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId = "com.barberapp.barber_app"
// You can update the following values to match your application needs.
// For more information, see: https://flutter.dev/to/review-gradle-config.
minSdk = flutter.minSdkVersion
targetSdk = flutter.targetSdkVersion
versionCode = flutter.versionCode
versionName = flutter.versionName
multiDexEnabled = true
}
buildTypes {
release {
// TODO: Add your own signing config for the release build.
// Signing with the debug keys for now, so `flutter run --release` works.
signingConfig = signingConfigs.getByName("debug")
}
}
}
flutter {
source = "../.."
}

View File

@@ -0,0 +1,7 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<!-- The INTERNET permission is required for development. Specifically,
the Flutter tool needs it to communicate with the running application
to allow setting breakpoints, to provide hot reload, etc.
-->
<uses-permission android:name="android.permission.INTERNET"/>
</manifest>

View File

@@ -0,0 +1,45 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<application
android:label="Barber App"
android:name="${applicationName}"
android:icon="@mipmap/launcher_icon">
<activity
android:name=".MainActivity"
android:exported="true"
android:launchMode="singleTop"
android:taskAffinity=""
android:theme="@style/LaunchTheme"
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
android:hardwareAccelerated="true"
android:windowSoftInputMode="adjustResize">
<!-- Specifies an Android theme to apply to this Activity as soon as
the Android process has started. This theme is visible to the user
while the Flutter UI initializes. After that, this theme continues
to determine the Window background behind the Flutter UI. -->
<meta-data
android:name="io.flutter.embedding.android.NormalTheme"
android:resource="@style/NormalTheme"
/>
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
</activity>
<!-- Don't delete the meta-data below.
This is used by the Flutter tool to generate GeneratedPluginRegistrant.java -->
<meta-data
android:name="flutterEmbedding"
android:value="2" />
</application>
<!-- Required to query activities that can process text, see:
https://developer.android.com/training/package-visibility and
https://developer.android.com/reference/android/content/Intent#ACTION_PROCESS_TEXT.
In particular, this is used by the Flutter engine in io.flutter.plugin.text.ProcessTextPlugin. -->
<queries>
<intent>
<action android:name="android.intent.action.PROCESS_TEXT"/>
<data android:mimeType="text/plain"/>
</intent>
</queries>
</manifest>

View File

@@ -0,0 +1,5 @@
package com.barberapp.barber_app
import io.flutter.embedding.android.FlutterActivity
class MainActivity : FlutterActivity()

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

View File

@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Modify this file to customize your launch splash screen -->
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="?android:colorBackground" />
<!-- You can insert your own image assets here -->
<!-- <item>
<bitmap
android:gravity="center"
android:src="@mipmap/launch_image" />
</item> -->
</layer-list>

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 96 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 167 KiB

View File

@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Modify this file to customize your launch splash screen -->
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@android:color/white" />
<!-- You can insert your own image assets here -->
<!-- <item>
<bitmap
android:gravity="center"
android:src="@mipmap/launch_image" />
</item> -->
</layer-list>

View File

@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@color/ic_launcher_background"/>
<foreground android:drawable="@drawable/ic_launcher_foreground"/>
</adaptive-icon>

Binary file not shown.

After

Width:  |  Height:  |  Size: 544 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 442 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 721 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

View File

@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- Theme applied to the Android Window while the process is starting when the OS's Dark Mode setting is on -->
<style name="LaunchTheme" parent="@android:style/Theme.Black.NoTitleBar">
<!-- Show a splash screen on the activity. Automatically removed when
the Flutter engine draws its first frame -->
<item name="android:windowBackground">@drawable/launch_background</item>
</style>
<!-- Theme applied to the Android Window as soon as the process has started.
This theme determines the color of the Android Window while your
Flutter UI initializes, as well as behind your Flutter UI while its
running.
This Theme is only used starting with V2 of Flutter's Android embedding. -->
<style name="NormalTheme" parent="@android:style/Theme.Black.NoTitleBar">
<item name="android:windowBackground">?android:colorBackground</item>
</style>
</resources>

View File

@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="ic_launcher_background">#000000</color>
</resources>

View File

@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- Theme applied to the Android Window while the process is starting when the OS's Dark Mode setting is off -->
<style name="LaunchTheme" parent="@android:style/Theme.Light.NoTitleBar">
<!-- Show a splash screen on the activity. Automatically removed when
the Flutter engine draws its first frame -->
<item name="android:windowBackground">@drawable/launch_background</item>
</style>
<!-- Theme applied to the Android Window as soon as the process has started.
This theme determines the color of the Android Window while your
Flutter UI initializes, as well as behind your Flutter UI while its
running.
This Theme is only used starting with V2 of Flutter's Android embedding. -->
<style name="NormalTheme" parent="@android:style/Theme.Light.NoTitleBar">
<item name="android:windowBackground">?android:colorBackground</item>
</style>
</resources>

View File

@@ -0,0 +1,7 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<!-- The INTERNET permission is required for development. Specifically,
the Flutter tool needs it to communicate with the running application
to allow setting breakpoints, to provide hot reload, etc.
-->
<uses-permission android:name="android.permission.INTERNET"/>
</manifest>

24
android/build.gradle.kts Normal file
View File

@@ -0,0 +1,24 @@
allprojects {
repositories {
google()
mavenCentral()
}
}
val newBuildDir: Directory =
rootProject.layout.buildDirectory
.dir("../../build")
.get()
rootProject.layout.buildDirectory.value(newBuildDir)
subprojects {
val newSubprojectBuildDir: Directory = newBuildDir.dir(project.name)
project.layout.buildDirectory.value(newSubprojectBuildDir)
}
subprojects {
project.evaluationDependsOn(":app")
}
tasks.register<Delete>("clean") {
delete(rootProject.layout.buildDirectory)
}

View File

@@ -0,0 +1,2 @@
org.gradle.jvmargs=-Xmx8G -XX:MaxMetaspaceSize=4G -XX:ReservedCodeCacheSize=512m -XX:+HeapDumpOnOutOfMemoryError
android.useAndroidX=true

View File

@@ -0,0 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14-all.zip

View File

@@ -0,0 +1,26 @@
pluginManagement {
val flutterSdkPath =
run {
val properties = java.util.Properties()
file("local.properties").inputStream().use { properties.load(it) }
val flutterSdkPath = properties.getProperty("flutter.sdk")
require(flutterSdkPath != null) { "flutter.sdk not set in local.properties" }
flutterSdkPath
}
includeBuild("$flutterSdkPath/packages/flutter_tools/gradle")
repositories {
google()
mavenCentral()
gradlePluginPortal()
}
}
plugins {
id("dev.flutter.flutter-plugin-loader") version "1.0.0"
id("com.android.application") version "8.11.1" apply false
id("org.jetbrains.kotlin.android") version "2.2.20" apply false
}
include(":app")

BIN
assets/icon/app_icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 421 KiB

3
assets/images/.gitkeep Normal file
View File

@@ -0,0 +1,3 @@
# Placeholder
Este arquivo é um placeholder para o diretório de assets.
Coloque aqui suas imagens e logos.

9
devices.txt Normal file
View File

@@ -0,0 +1,9 @@
Found 4 connected devices:
sdk gphone64 x86 64 (mobile) ??? emulator-5554 ??? android-x64 ??? Android 16 (API 36) (emulator)
Windows (desktop) ??? windows ??? windows-x64 ??? Microsoft Windows [vers??o 10.0.26200.7462]
Chrome (web) ??? chrome ??? web-javascript ??? Google Chrome 143.0.7499.148
Edge (web) ??? edge ??? web-javascript ??? Microsoft Edge 143.0.3650.80
Run "flutter emulators" to list and start any available device emulators.
If you expected another device to be detected, please run "flutter doctor" to diagnose potential issues. You may also try increasing the time to wait for connected devices with the "--device-timeout" flag. Visit https://flutter.dev/setup/ for troubleshooting tips.

3
devtools_options.yaml Normal file
View File

@@ -0,0 +1,3 @@
description: This file stores settings for Dart & Flutter DevTools.
documentation: https://docs.flutter.dev/tools/devtools/extensions#configure-extension-enablement-states
extensions:

12
emulators.txt Normal file
View File

@@ -0,0 +1,12 @@
1 available emulator:
Id ??? Name ??? Manufacturer ??? Platform
Medium_Phone_API_36.1 ??? Medium Phone API 36.1 ??? Generic ??? android
To run an emulator, run 'flutter emulators --launch <emulator id>'.
To create a new emulator, run 'flutter emulators --create [--name xyz]'.
You can find more information on managing emulators at the links below:
https://developer.android.com/studio/run/managing-avds
https://developer.android.com/studio/command-line/avdmanager

BIN
emulators_list.txt Normal file

Binary file not shown.

BIN
final_report.txt Normal file

Binary file not shown.

8
final_report_ascii.txt Normal file
View File

@@ -0,0 +1,8 @@
Analyzing barber-app...
info - Unnecessary use of multiple underscores - lib\features\finances\presentation\pages\finances_page.dart:59:31 - unnecessary_underscores
info - Unnecessary use of multiple underscores - lib\features\haircuts\presentation\pages\haircuts_page.dart:59:31 - unnecessary_underscores
info - 'value' is deprecated and shouldn't be used. Use component accessors like .r or .g, or toARGB32 for an explicit conversion - lib\features\settings\presentation\pages\settings_page.dart:139:39 - deprecated_member_use
info - 'value' is deprecated and shouldn't be used. Use component accessors like .r or .g, or toARGB32 for an explicit conversion - lib\features\settings\presentation\pages\settings_page.dart:139:54 - deprecated_member_use
info - 'value' is deprecated and shouldn't be used. Use component accessors like .r or .g, or toARGB32 for an explicit conversion - lib\features\settings\presentation\pages\settings_page.dart:147:72 - deprecated_member_use

View File

@@ -0,0 +1,7 @@
flutter_launcher_icons:
android: "launcher_icon"
ios: true
image_path: "assets/icon/app_icon.png"
min_sdk_android: 21
adaptive_icon_background: "#000000"
adaptive_icon_foreground: "assets/icon/app_icon.png"

34
ios/.gitignore vendored Normal file
View File

@@ -0,0 +1,34 @@
**/dgph
*.mode1v3
*.mode2v3
*.moved-aside
*.pbxuser
*.perspectivev3
**/*sync/
.sconsign.dblite
.tags*
**/.vagrant/
**/DerivedData/
Icon?
**/Pods/
**/.symlinks/
profile
xcuserdata
**/.generated/
Flutter/App.framework
Flutter/Flutter.framework
Flutter/Flutter.podspec
Flutter/Generated.xcconfig
Flutter/ephemeral/
Flutter/app.flx
Flutter/app.zip
Flutter/flutter_assets/
Flutter/flutter_export_environment.sh
ServiceDefinitions.json
Runner/GeneratedPluginRegistrant.*
# Exceptions to above rules.
!default.mode1v3
!default.mode2v3
!default.pbxuser
!default.perspectivev3

View File

@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleExecutable</key>
<string>App</string>
<key>CFBundleIdentifier</key>
<string>io.flutter.flutter.app</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>App</string>
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1.0</string>
<key>MinimumOSVersion</key>
<string>13.0</string>
</dict>
</plist>

View File

@@ -0,0 +1 @@
#include "Generated.xcconfig"

View File

@@ -0,0 +1 @@
#include "Generated.xcconfig"

View File

@@ -0,0 +1,616 @@
// !$*UTF8*$!
{
archiveVersion = 1;
classes = {
};
objectVersion = 54;
objects = {
/* Begin PBXBuildFile section */
1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; };
331C808B294A63AB00263BE5 /* RunnerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 331C807B294A618700263BE5 /* RunnerTests.swift */; };
3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; };
74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; };
97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; };
97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; };
/* End PBXBuildFile section */
/* Begin PBXContainerItemProxy section */
331C8085294A63A400263BE5 /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 97C146E61CF9000F007C117D /* Project object */;
proxyType = 1;
remoteGlobalIDString = 97C146ED1CF9000F007C117D;
remoteInfo = Runner;
};
/* End PBXContainerItemProxy section */
/* Begin PBXCopyFilesBuildPhase section */
9705A1C41CF9048500538489 /* Embed Frameworks */ = {
isa = PBXCopyFilesBuildPhase;
buildActionMask = 2147483647;
dstPath = "";
dstSubfolderSpec = 10;
files = (
);
name = "Embed Frameworks";
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXCopyFilesBuildPhase section */
/* Begin PBXFileReference section */
1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = "<group>"; };
1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = "<group>"; };
331C807B294A618700263BE5 /* RunnerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RunnerTests.swift; sourceTree = "<group>"; };
331C8081294A63A400263BE5 /* RunnerTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = RunnerTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = "<group>"; };
74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = "<group>"; };
74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = "<group>"; };
9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = "<group>"; };
9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = "<group>"; };
97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; };
97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
/* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */
97C146EB1CF9000F007C117D /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXFrameworksBuildPhase section */
/* Begin PBXGroup section */
331C8082294A63A400263BE5 /* RunnerTests */ = {
isa = PBXGroup;
children = (
331C807B294A618700263BE5 /* RunnerTests.swift */,
);
path = RunnerTests;
sourceTree = "<group>";
};
9740EEB11CF90186004384FC /* Flutter */ = {
isa = PBXGroup;
children = (
3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */,
9740EEB21CF90195004384FC /* Debug.xcconfig */,
7AFA3C8E1D35360C0083082E /* Release.xcconfig */,
9740EEB31CF90195004384FC /* Generated.xcconfig */,
);
name = Flutter;
sourceTree = "<group>";
};
97C146E51CF9000F007C117D = {
isa = PBXGroup;
children = (
9740EEB11CF90186004384FC /* Flutter */,
97C146F01CF9000F007C117D /* Runner */,
97C146EF1CF9000F007C117D /* Products */,
331C8082294A63A400263BE5 /* RunnerTests */,
);
sourceTree = "<group>";
};
97C146EF1CF9000F007C117D /* Products */ = {
isa = PBXGroup;
children = (
97C146EE1CF9000F007C117D /* Runner.app */,
331C8081294A63A400263BE5 /* RunnerTests.xctest */,
);
name = Products;
sourceTree = "<group>";
};
97C146F01CF9000F007C117D /* Runner */ = {
isa = PBXGroup;
children = (
97C146FA1CF9000F007C117D /* Main.storyboard */,
97C146FD1CF9000F007C117D /* Assets.xcassets */,
97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */,
97C147021CF9000F007C117D /* Info.plist */,
1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */,
1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */,
74858FAE1ED2DC5600515810 /* AppDelegate.swift */,
74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */,
);
path = Runner;
sourceTree = "<group>";
};
/* End PBXGroup section */
/* Begin PBXNativeTarget section */
331C8080294A63A400263BE5 /* RunnerTests */ = {
isa = PBXNativeTarget;
buildConfigurationList = 331C8087294A63A400263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */;
buildPhases = (
331C807D294A63A400263BE5 /* Sources */,
331C807F294A63A400263BE5 /* Resources */,
);
buildRules = (
);
dependencies = (
331C8086294A63A400263BE5 /* PBXTargetDependency */,
);
name = RunnerTests;
productName = RunnerTests;
productReference = 331C8081294A63A400263BE5 /* RunnerTests.xctest */;
productType = "com.apple.product-type.bundle.unit-test";
};
97C146ED1CF9000F007C117D /* Runner */ = {
isa = PBXNativeTarget;
buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */;
buildPhases = (
9740EEB61CF901F6004384FC /* Run Script */,
97C146EA1CF9000F007C117D /* Sources */,
97C146EB1CF9000F007C117D /* Frameworks */,
97C146EC1CF9000F007C117D /* Resources */,
9705A1C41CF9048500538489 /* Embed Frameworks */,
3B06AD1E1E4923F5004D2608 /* Thin Binary */,
);
buildRules = (
);
dependencies = (
);
name = Runner;
productName = Runner;
productReference = 97C146EE1CF9000F007C117D /* Runner.app */;
productType = "com.apple.product-type.application";
};
/* End PBXNativeTarget section */
/* Begin PBXProject section */
97C146E61CF9000F007C117D /* Project object */ = {
isa = PBXProject;
attributes = {
BuildIndependentTargetsInParallel = YES;
LastUpgradeCheck = 1510;
ORGANIZATIONNAME = "";
TargetAttributes = {
331C8080294A63A400263BE5 = {
CreatedOnToolsVersion = 14.0;
TestTargetID = 97C146ED1CF9000F007C117D;
};
97C146ED1CF9000F007C117D = {
CreatedOnToolsVersion = 7.3.1;
LastSwiftMigration = 1100;
};
};
};
buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */;
compatibilityVersion = "Xcode 9.3";
developmentRegion = en;
hasScannedForEncodings = 0;
knownRegions = (
en,
Base,
);
mainGroup = 97C146E51CF9000F007C117D;
productRefGroup = 97C146EF1CF9000F007C117D /* Products */;
projectDirPath = "";
projectRoot = "";
targets = (
97C146ED1CF9000F007C117D /* Runner */,
331C8080294A63A400263BE5 /* RunnerTests */,
);
};
/* End PBXProject section */
/* Begin PBXResourcesBuildPhase section */
331C807F294A63A400263BE5 /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
97C146EC1CF9000F007C117D /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */,
3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */,
97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */,
97C146FC1CF9000F007C117D /* Main.storyboard in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXResourcesBuildPhase section */
/* Begin PBXShellScriptBuildPhase section */
3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
isa = PBXShellScriptBuildPhase;
alwaysOutOfDate = 1;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
"${TARGET_BUILD_DIR}/${INFOPLIST_PATH}",
);
name = "Thin Binary";
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin";
};
9740EEB61CF901F6004384FC /* Run Script */ = {
isa = PBXShellScriptBuildPhase;
alwaysOutOfDate = 1;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
);
name = "Run Script";
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build";
};
/* End PBXShellScriptBuildPhase section */
/* Begin PBXSourcesBuildPhase section */
331C807D294A63A400263BE5 /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
331C808B294A63AB00263BE5 /* RunnerTests.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
97C146EA1CF9000F007C117D /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */,
1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXSourcesBuildPhase section */
/* Begin PBXTargetDependency section */
331C8086294A63A400263BE5 /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
target = 97C146ED1CF9000F007C117D /* Runner */;
targetProxy = 331C8085294A63A400263BE5 /* PBXContainerItemProxy */;
};
/* End PBXTargetDependency section */
/* Begin PBXVariantGroup section */
97C146FA1CF9000F007C117D /* Main.storyboard */ = {
isa = PBXVariantGroup;
children = (
97C146FB1CF9000F007C117D /* Base */,
);
name = Main.storyboard;
sourceTree = "<group>";
};
97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = {
isa = PBXVariantGroup;
children = (
97C147001CF9000F007C117D /* Base */,
);
name = LaunchScreen.storyboard;
sourceTree = "<group>";
};
/* End PBXVariantGroup section */
/* Begin XCBuildConfiguration section */
249021D3217E4FDB00AE95B9 /* Profile */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
CLANG_ANALYZER_NONNULL = YES;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_COMMA = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
COPY_PHASE_STRIP = NO;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
ENABLE_NS_ASSERTIONS = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_USER_SCRIPT_SANDBOXING = NO;
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_NO_COMMON_BLOCKS = YES;
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = iphoneos;
SUPPORTED_PLATFORMS = iphoneos;
TARGETED_DEVICE_FAMILY = "1,2";
VALIDATE_PRODUCT = YES;
};
name = Profile;
};
249021D4217E4FDB00AE95B9 /* Profile */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_ENABLE_MODULES = YES;
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
ENABLE_BITCODE = NO;
INFOPLIST_FILE = Runner/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = com.barberapp.barberApp;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
SWIFT_VERSION = 5.0;
VERSIONING_SYSTEM = "apple-generic";
};
name = Profile;
};
331C8088294A63A400263BE5 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
BUNDLE_LOADER = "$(TEST_HOST)";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
GENERATE_INFOPLIST_FILE = YES;
MARKETING_VERSION = 1.0;
PRODUCT_BUNDLE_IDENTIFIER = com.barberapp.barberApp.RunnerTests;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_VERSION = 5.0;
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner";
};
name = Debug;
};
331C8089294A63A400263BE5 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
BUNDLE_LOADER = "$(TEST_HOST)";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
GENERATE_INFOPLIST_FILE = YES;
MARKETING_VERSION = 1.0;
PRODUCT_BUNDLE_IDENTIFIER = com.barberapp.barberApp.RunnerTests;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 5.0;
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner";
};
name = Release;
};
331C808A294A63A400263BE5 /* Profile */ = {
isa = XCBuildConfiguration;
buildSettings = {
BUNDLE_LOADER = "$(TEST_HOST)";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
GENERATE_INFOPLIST_FILE = YES;
MARKETING_VERSION = 1.0;
PRODUCT_BUNDLE_IDENTIFIER = com.barberapp.barberApp.RunnerTests;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 5.0;
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner";
};
name = Profile;
};
97C147031CF9000F007C117D /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = AppIcon;
CLANG_ANALYZER_NONNULL = YES;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_COMMA = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
COPY_PHASE_STRIP = NO;
DEBUG_INFORMATION_FORMAT = dwarf;
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_TESTABILITY = YES;
ENABLE_USER_SCRIPT_SANDBOXING = NO;
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_DYNAMIC_NO_PIC = NO;
GCC_NO_COMMON_BLOCKS = YES;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PREPROCESSOR_DEFINITIONS = (
"DEBUG=1",
"$(inherited)",
);
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
MTL_ENABLE_DEBUG_INFO = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Debug;
};
97C147041CF9000F007C117D /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = AppIcon;
CLANG_ANALYZER_NONNULL = YES;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_COMMA = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
COPY_PHASE_STRIP = NO;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
ENABLE_NS_ASSERTIONS = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_USER_SCRIPT_SANDBOXING = NO;
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_NO_COMMON_BLOCKS = YES;
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = iphoneos;
SUPPORTED_PLATFORMS = iphoneos;
SWIFT_COMPILATION_MODE = wholemodule;
SWIFT_OPTIMIZATION_LEVEL = "-O";
TARGETED_DEVICE_FAMILY = "1,2";
VALIDATE_PRODUCT = YES;
};
name = Release;
};
97C147061CF9000F007C117D /* Debug */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_ENABLE_MODULES = YES;
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
ENABLE_BITCODE = NO;
INFOPLIST_FILE = Runner/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = com.barberapp.barberApp;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_VERSION = 5.0;
VERSIONING_SYSTEM = "apple-generic";
};
name = Debug;
};
97C147071CF9000F007C117D /* Release */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_ENABLE_MODULES = YES;
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
ENABLE_BITCODE = NO;
INFOPLIST_FILE = Runner/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = com.barberapp.barberApp;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
SWIFT_VERSION = 5.0;
VERSIONING_SYSTEM = "apple-generic";
};
name = Release;
};
/* End XCBuildConfiguration section */
/* Begin XCConfigurationList section */
331C8087294A63A400263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */ = {
isa = XCConfigurationList;
buildConfigurations = (
331C8088294A63A400263BE5 /* Debug */,
331C8089294A63A400263BE5 /* Release */,
331C808A294A63A400263BE5 /* Profile */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = {
isa = XCConfigurationList;
buildConfigurations = (
97C147031CF9000F007C117D /* Debug */,
97C147041CF9000F007C117D /* Release */,
249021D3217E4FDB00AE95B9 /* Profile */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = {
isa = XCConfigurationList;
buildConfigurations = (
97C147061CF9000F007C117D /* Debug */,
97C147071CF9000F007C117D /* Release */,
249021D4217E4FDB00AE95B9 /* Profile */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */
};
rootObject = 97C146E61CF9000F007C117D /* Project object */;
}

View File

@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<Workspace
version = "1.0">
<FileRef
location = "self:">
</FileRef>
</Workspace>

View File

@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>

View File

@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>PreviewsEnabled</key>
<false/>
</dict>
</plist>

View File

@@ -0,0 +1,101 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1510"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "97C146ED1CF9000F007C117D"
BuildableName = "Runner.app"
BlueprintName = "Runner"
ReferencedContainer = "container:Runner.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
customLLDBInitFile = "$(SRCROOT)/Flutter/ephemeral/flutter_lldbinit"
shouldUseLaunchSchemeArgsEnv = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "97C146ED1CF9000F007C117D"
BuildableName = "Runner.app"
BlueprintName = "Runner"
ReferencedContainer = "container:Runner.xcodeproj">
</BuildableReference>
</MacroExpansion>
<Testables>
<TestableReference
skipped = "NO"
parallelizable = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "331C8080294A63A400263BE5"
BuildableName = "RunnerTests.xctest"
BlueprintName = "RunnerTests"
ReferencedContainer = "container:Runner.xcodeproj">
</BuildableReference>
</TestableReference>
</Testables>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
customLLDBInitFile = "$(SRCROOT)/Flutter/ephemeral/flutter_lldbinit"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
enableGPUValidationMode = "1"
allowLocationSimulation = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "97C146ED1CF9000F007C117D"
BuildableName = "Runner.app"
BlueprintName = "Runner"
ReferencedContainer = "container:Runner.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</LaunchAction>
<ProfileAction
buildConfiguration = "Profile"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "97C146ED1CF9000F007C117D"
BuildableName = "Runner.app"
BlueprintName = "Runner"
ReferencedContainer = "container:Runner.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>

View File

@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<Workspace
version = "1.0">
<FileRef
location = "group:Runner.xcodeproj">
</FileRef>
</Workspace>

View File

@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>

View File

@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>PreviewsEnabled</key>
<false/>
</dict>
</plist>

View File

@@ -0,0 +1,13 @@
import Flutter
import UIKit
@main
@objc class AppDelegate: FlutterAppDelegate {
override func application(
_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
) -> Bool {
GeneratedPluginRegistrant.register(with: self)
return super.application(application, didFinishLaunchingWithOptions: launchOptions)
}
}

View File

@@ -0,0 +1,122 @@
{
"images" : [
{
"size" : "20x20",
"idiom" : "iphone",
"filename" : "Icon-App-20x20@2x.png",
"scale" : "2x"
},
{
"size" : "20x20",
"idiom" : "iphone",
"filename" : "Icon-App-20x20@3x.png",
"scale" : "3x"
},
{
"size" : "29x29",
"idiom" : "iphone",
"filename" : "Icon-App-29x29@1x.png",
"scale" : "1x"
},
{
"size" : "29x29",
"idiom" : "iphone",
"filename" : "Icon-App-29x29@2x.png",
"scale" : "2x"
},
{
"size" : "29x29",
"idiom" : "iphone",
"filename" : "Icon-App-29x29@3x.png",
"scale" : "3x"
},
{
"size" : "40x40",
"idiom" : "iphone",
"filename" : "Icon-App-40x40@2x.png",
"scale" : "2x"
},
{
"size" : "40x40",
"idiom" : "iphone",
"filename" : "Icon-App-40x40@3x.png",
"scale" : "3x"
},
{
"size" : "60x60",
"idiom" : "iphone",
"filename" : "Icon-App-60x60@2x.png",
"scale" : "2x"
},
{
"size" : "60x60",
"idiom" : "iphone",
"filename" : "Icon-App-60x60@3x.png",
"scale" : "3x"
},
{
"size" : "20x20",
"idiom" : "ipad",
"filename" : "Icon-App-20x20@1x.png",
"scale" : "1x"
},
{
"size" : "20x20",
"idiom" : "ipad",
"filename" : "Icon-App-20x20@2x.png",
"scale" : "2x"
},
{
"size" : "29x29",
"idiom" : "ipad",
"filename" : "Icon-App-29x29@1x.png",
"scale" : "1x"
},
{
"size" : "29x29",
"idiom" : "ipad",
"filename" : "Icon-App-29x29@2x.png",
"scale" : "2x"
},
{
"size" : "40x40",
"idiom" : "ipad",
"filename" : "Icon-App-40x40@1x.png",
"scale" : "1x"
},
{
"size" : "40x40",
"idiom" : "ipad",
"filename" : "Icon-App-40x40@2x.png",
"scale" : "2x"
},
{
"size" : "76x76",
"idiom" : "ipad",
"filename" : "Icon-App-76x76@1x.png",
"scale" : "1x"
},
{
"size" : "76x76",
"idiom" : "ipad",
"filename" : "Icon-App-76x76@2x.png",
"scale" : "2x"
},
{
"size" : "83.5x83.5",
"idiom" : "ipad",
"filename" : "Icon-App-83.5x83.5@2x.png",
"scale" : "2x"
},
{
"size" : "1024x1024",
"idiom" : "ios-marketing",
"filename" : "Icon-App-1024x1024@1x.png",
"scale" : "1x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 754 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 732 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

View File

@@ -0,0 +1,23 @@
{
"images" : [
{
"idiom" : "universal",
"filename" : "LaunchImage.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"filename" : "LaunchImage@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"filename" : "LaunchImage@3x.png",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 68 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 68 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 68 B

View File

@@ -0,0 +1,5 @@
# Launch Screen Assets
You can customize the launch screen with your own desired assets by replacing the image files in this directory.
You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images.

View File

@@ -0,0 +1,37 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="12121" systemVersion="16G29" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" colorMatched="YES" initialViewController="01J-lp-oVM">
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="12089"/>
</dependencies>
<scenes>
<!--View Controller-->
<scene sceneID="EHf-IW-A2E">
<objects>
<viewController id="01J-lp-oVM" sceneMemberID="viewController">
<layoutGuides>
<viewControllerLayoutGuide type="top" id="Ydg-fD-yQy"/>
<viewControllerLayoutGuide type="bottom" id="xbc-2k-c8Z"/>
</layoutGuides>
<view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3">
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<imageView opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" image="LaunchImage" translatesAutoresizingMaskIntoConstraints="NO" id="YRO-k0-Ey4">
</imageView>
</subviews>
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstItem="YRO-k0-Ey4" firstAttribute="centerX" secondItem="Ze5-6b-2t3" secondAttribute="centerX" id="1a2-6s-vTC"/>
<constraint firstItem="YRO-k0-Ey4" firstAttribute="centerY" secondItem="Ze5-6b-2t3" secondAttribute="centerY" id="4X2-HB-R7a"/>
</constraints>
</view>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="53" y="375"/>
</scene>
</scenes>
<resources>
<image name="LaunchImage" width="168" height="185"/>
</resources>
</document>

View File

@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="10117" systemVersion="15F34" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" initialViewController="BYZ-38-t0r">
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="10085"/>
</dependencies>
<scenes>
<!--Flutter View Controller-->
<scene sceneID="tne-QT-ifu">
<objects>
<viewController id="BYZ-38-t0r" customClass="FlutterViewController" sceneMemberID="viewController">
<layoutGuides>
<viewControllerLayoutGuide type="top" id="y3c-jy-aDJ"/>
<viewControllerLayoutGuide type="bottom" id="wfy-db-euE"/>
</layoutGuides>
<view key="view" contentMode="scaleToFill" id="8bC-Xf-vdC">
<rect key="frame" x="0.0" y="0.0" width="600" height="600"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
</view>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="dkx-z0-nzr" sceneMemberID="firstResponder"/>
</objects>
</scene>
</scenes>
</document>

49
ios/Runner/Info.plist Normal file
View File

@@ -0,0 +1,49 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>$(DEVELOPMENT_LANGUAGE)</string>
<key>CFBundleDisplayName</key>
<string>Barber App</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>barber_app</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>$(FLUTTER_BUILD_NAME)</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>$(FLUTTER_BUILD_NUMBER)</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>UILaunchStoryboardName</key>
<string>LaunchScreen</string>
<key>UIMainStoryboardFile</key>
<string>Main</string>
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>UISupportedInterfaceOrientations~ipad</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationPortraitUpsideDown</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>CADisableMinimumFrameDurationOnPhone</key>
<true/>
<key>UIApplicationSupportsIndirectInputEvents</key>
<true/>
</dict>
</plist>

View File

@@ -0,0 +1 @@
#import "GeneratedPluginRegistrant.h"

View File

@@ -0,0 +1,12 @@
import Flutter
import UIKit
import XCTest
class RunnerTests: XCTestCase {
func testExample() {
// If you add code to the Runner application, consider adding tests here.
// See https://developer.apple.com/documentation/xctest for more information about using XCTest.
}
}

BIN
issues.txt Normal file

Binary file not shown.

View File

@@ -0,0 +1,94 @@
// Textos em Português-BR
class AppStrings {
// App
static const String appName = 'Barber App';
// Login
static const String login = 'Entrar';
static const String email = 'E-mail';
static const String password = 'Senha';
static const String confirmPassword = 'Confirmar Senha';
static const String forgotPassword = 'Esqueci minha senha';
static const String createAccount = 'Criar Conta';
static const String alreadyHaveAccount = 'Já tenho uma conta';
static const String barberName = 'Nome do Barbeiro';
static const String barberShopName = 'Nome da Barbearia';
// Navegação
static const String home = 'Início';
static const String haircuts = 'Cortes';
static const String products = 'Produtos';
static const String finances = 'Finanças';
static const String settings = 'Configurações';
// Cortes
static const String newHaircut = 'Novo Corte';
static const String clientName = 'Nome do Cliente';
static const String serviceType = 'Tipo de Serviço';
static const String price = 'Valor';
static const String notes = 'Observações';
static const String date = 'Data';
static const String time = 'Hora';
static const String todayHaircuts = 'Cortes Hoje';
static const String weekHaircuts = 'Cortes da Semana';
static const String monthHaircuts = 'Cortes do Mês';
// Produtos
static const String newProduct = 'Novo Produto';
static const String productName = 'Nome do Produto';
static const String category = 'Categoria';
static const String quantity = 'Quantidade';
static const String purchasePrice = 'Preço de Compra';
static const String salePrice = 'Preço de Venda';
static const String minStock = 'Estoque Mínimo';
static const String lowStock = 'Estoque Baixo';
// Categorias de Produtos
static const String categoryPastes = 'Pastas e Pomadas';
static const String categoryBeverages = 'Bebidas (Frigobar)';
static const String categoryAccessories = 'Acessórios';
static const String categoryOther = 'Outros';
// Finanças
static const String revenue = 'Receitas';
static const String expenses = 'Despesas';
static const String balance = 'Saldo';
static const String accountsReceivable = 'A Receber';
static const String accountsPayable = 'A Pagar';
static const String newExpense = 'Nova Despesa';
static const String newRevenue = 'Nova Receita';
static const String description = 'Descrição';
static const String dueDate = 'Data de Vencimento';
static const String paid = 'Pago';
static const String pending = 'Pendente';
static const String markAsPaid = 'Marcar como Pago';
// Configurações
static const String changeLogo = 'Alterar Logo';
static const String changeColors = 'Alterar Cores';
static const String primaryColor = 'Cor Principal';
static const String logout = 'Sair';
static const String profile = 'Perfil';
// Ações
static const String save = 'Salvar';
static const String cancel = 'Cancelar';
static const String delete = 'Excluir';
static const String edit = 'Editar';
static const String confirm = 'Confirmar';
static const String add = 'Adicionar';
static const String search = 'Buscar';
static const String filter = 'Filtrar';
// Mensagens
static const String success = 'Sucesso!';
static const String error = 'Erro!';
static const String confirmDelete = 'Tem certeza que deseja excluir?';
static const String savedSuccessfully = 'Salvo com sucesso!';
static const String deletedSuccessfully = 'Excluído com sucesso!';
static const String fillAllFields = 'Preencha todos os campos obrigatórios';
static const String invalidEmail = 'E-mail inválido';
static const String weakPassword = 'Senha muito fraca (mínimo 6 caracteres)';
static const String passwordsDontMatch = 'As senhas não conferem';
static const String loginError = 'Erro ao fazer login. Verifique suas credenciais.';
}

View File

@@ -0,0 +1,97 @@
import 'package:hive_flutter/hive_flutter.dart';
import 'package:barber_app/features/auth/data/models/user_model.dart';
import 'package:barber_app/features/haircuts/data/models/haircut_model.dart';
import 'package:barber_app/features/products/data/models/product_model.dart';
import 'package:barber_app/features/finances/data/models/transaction_model.dart';
import 'package:barber_app/features/services/data/models/service_model.dart';
import 'package:barber_app/features/settings/data/models/settings_model.dart';
class DatabaseService {
static const String usersBox = 'users';
static const String haircutsBox = 'haircuts';
static const String productsBox = 'products';
static const String transactionsBox = 'transactions';
static const String settingsBox = 'settings';
static const String servicesBox = 'services';
static const String currentUserBox = 'currentUser';
static bool _initialized = false;
static Future<void> init() async {
if (_initialized) return;
await Hive.initFlutter();
// Registra os adapters apenas se não foram registrados
if (!Hive.isAdapterRegistered(0)) {
Hive.registerAdapter(UserModelAdapter());
}
if (!Hive.isAdapterRegistered(1)) {
Hive.registerAdapter(HaircutModelAdapter());
}
if (!Hive.isAdapterRegistered(2)) {
Hive.registerAdapter(ProductModelAdapter());
}
if (!Hive.isAdapterRegistered(3)) {
Hive.registerAdapter(TransactionTypeAdapter());
}
if (!Hive.isAdapterRegistered(4)) {
Hive.registerAdapter(TransactionModelAdapter());
}
if (!Hive.isAdapterRegistered(5)) {
Hive.registerAdapter(SettingsModelAdapter());
}
if (!Hive.isAdapterRegistered(6)) {
Hive.registerAdapter(ServiceModelAdapter());
}
// Abre as boxes
await Hive.openBox<UserModel>(usersBox);
await Hive.openBox<HaircutModel>(haircutsBox);
await Hive.openBox<ProductModel>(productsBox);
await Hive.openBox<TransactionModel>(transactionsBox);
await Hive.openBox<SettingsModel>(settingsBox);
await Hive.openBox<ServiceModel>(servicesBox);
await Hive.openBox(currentUserBox);
_initialized = true;
}
// User Box
static Box<UserModel> get usersBoxInstance => Hive.box<UserModel>(usersBox);
// Haircuts Box
static Box<HaircutModel> get haircutsBoxInstance => Hive.box<HaircutModel>(haircutsBox);
// Products Box
static Box<ProductModel> get productsBoxInstance => Hive.box<ProductModel>(productsBox);
// Transactions Box
static Box<TransactionModel> get transactionsBoxInstance => Hive.box<TransactionModel>(transactionsBox);
// Settings Box
static Box<SettingsModel> get settingsBoxInstance => Hive.box<SettingsModel>(settingsBox);
// Services Box
static Box<ServiceModel> get servicesBoxInstance => Hive.box<ServiceModel>(servicesBox);
// Current User
static Box get currentUserBoxInstance => Hive.box(currentUserBox);
// Métodos de sessão
static Future<void> setCurrentUserId(String? userId) async {
if (userId == null) {
await currentUserBoxInstance.delete('currentUserId');
} else {
await currentUserBoxInstance.put('currentUserId', userId);
}
}
static String? getCurrentUserId() {
return currentUserBoxInstance.get('currentUserId');
}
static bool isLoggedIn() {
return getCurrentUserId() != null;
}
}

View File

@@ -0,0 +1,115 @@
import 'package:flutter/material.dart';
import 'package:google_fonts/google_fonts.dart';
class AppColors {
// Cores Base - Premium Cyber Gold
static Color primaryColor = const Color(0xFFD4AF37);
static const Color background = Color(0xFF080808); // Ultra Dark
static const Color surface = Color(0xFF121212);
static const Color surfaceLight = Color(0xFF1C1C1C);
// Cores Semânticas
static const Color success = Color(0xFF00C853);
static const Color error = Color(0xFFFF1744);
static const Color warning = Color(0xFFFFAB00);
static const Color info = Color(0xFF2979FF);
// Texto
static const Color textPrimary = Colors.white;
static const Color textSecondary = Color(0xFF8E8E93);
static void updatePrimaryColor(Color color) {
primaryColor = color;
}
static List<BoxShadow> get premiumShadow => [
BoxShadow(
color: Colors.black.withAlpha(50),
blurRadius: 30,
offset: const Offset(0, 15),
),
];
static LinearGradient get goldGradient => LinearGradient(
colors: [primaryColor, primaryColor.withAlpha(200)],
begin: Alignment.topLeft,
end: Alignment.bottomRight,
);
}
class AppTheme {
static ThemeData get darkTheme {
return ThemeData(
useMaterial3: true,
brightness: Brightness.dark,
scaffoldBackgroundColor: AppColors.background,
primaryColor: AppColors.primaryColor,
colorScheme: ColorScheme.dark(
primary: AppColors.primaryColor,
surface: AppColors.surface,
error: AppColors.error,
onPrimary: Colors.black,
),
textTheme: GoogleFonts.outfitTextTheme(ThemeData.dark().textTheme)
.copyWith(
displayLarge: GoogleFonts.outfit(
color: AppColors.textPrimary,
fontWeight: FontWeight.w900,
fontSize: 34,
letterSpacing: -1,
),
headlineMedium: GoogleFonts.outfit(
color: AppColors.textPrimary,
fontWeight: FontWeight.w800,
letterSpacing: -0.5,
),
bodyLarge: GoogleFonts.inter(
color: AppColors.textPrimary,
fontSize: 16,
fontWeight: FontWeight.w500,
),
),
appBarTheme: AppBarTheme(
backgroundColor: Colors.transparent,
elevation: 0,
centerTitle: false,
titleTextStyle: GoogleFonts.outfit(
color: AppColors.textPrimary,
fontSize: 22,
fontWeight: FontWeight.w900,
),
),
cardTheme: CardThemeData(
color: AppColors.surface,
elevation: 0,
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(28),
side: BorderSide(color: Colors.white.withAlpha(10), width: 1),
),
),
elevatedButtonTheme: ElevatedButtonThemeData(
style: ElevatedButton.styleFrom(
backgroundColor: AppColors.primaryColor,
foregroundColor: Colors.black,
elevation: 10,
shadowColor: AppColors.primaryColor.withAlpha(100),
padding: const EdgeInsets.symmetric(vertical: 20, horizontal: 30),
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(24),
),
textStyle: GoogleFonts.outfit(
fontWeight: FontWeight.w900,
fontSize: 16,
),
),
),
);
}
static ThemeData get lightTheme =>
darkTheme; // For simplicity, focusing on Dark Mode Elite
}

View File

@@ -0,0 +1,15 @@
import 'dart:convert';
import 'package:crypto/crypto.dart';
class PasswordUtils {
// Hash simples para senha (para produção real, usar bcrypt)
static String hashPassword(String password) {
final bytes = utf8.encode(password);
final digest = sha256.convert(bytes);
return digest.toString();
}
static bool verifyPassword(String password, String hash) {
return hashPassword(password) == hash;
}
}

View File

@@ -0,0 +1,51 @@
import 'package:hive/hive.dart';
part 'user_model.g.dart';
@HiveType(typeId: 0)
class UserModel extends HiveObject {
@HiveField(0)
final String id;
@HiveField(1)
final String email;
@HiveField(2)
final String passwordHash;
@HiveField(3)
final String barberName;
@HiveField(4)
final String barberShopName;
@HiveField(5)
final DateTime createdAt;
UserModel({
required this.id,
required this.email,
required this.passwordHash,
required this.barberName,
required this.barberShopName,
required this.createdAt,
});
UserModel copyWith({
String? id,
String? email,
String? passwordHash,
String? barberName,
String? barberShopName,
DateTime? createdAt,
}) {
return UserModel(
id: id ?? this.id,
email: email ?? this.email,
passwordHash: passwordHash ?? this.passwordHash,
barberName: barberName ?? this.barberName,
barberShopName: barberShopName ?? this.barberShopName,
createdAt: createdAt ?? this.createdAt,
);
}
}

Some files were not shown because too many files have changed in this diff Show More