diff --git a/.idea/.gitignore b/.idea/.gitignore deleted file mode 100644 index 26d3352..0000000 --- a/.idea/.gitignore +++ /dev/null @@ -1,3 +0,0 @@ -# Default ignored files -/shelf/ -/workspace.xml diff --git a/.idea/flutter-base.iml b/.idea/flutter-base.iml deleted file mode 100644 index 63f30ae..0000000 --- a/.idea/flutter-base.iml +++ /dev/null @@ -1,71 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/.idea/libraries/Dart_SDK.xml b/.idea/libraries/Dart_SDK.xml deleted file mode 100644 index 8b6af92..0000000 --- a/.idea/libraries/Dart_SDK.xml +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml deleted file mode 100644 index 5a60ae4..0000000 --- a/.idea/modules.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml deleted file mode 100644 index 35eb1dd..0000000 --- a/.idea/vcs.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/README.md b/README.md index c40c4be..93f6c8a 100644 --- a/README.md +++ b/README.md @@ -171,7 +171,11 @@ For more information you can check the [docs](https://dartcode.org/docs/launch-c - [intl](https://pub.dev/packages/intl) and [intl_utils](https://pub.dev/packages/intl_utils) for localization. - [flutter_svg](https://pub.dev/packages/flutter_svg) Svg Image loader. - +- Auto generate translations files with [intl_utils](https://pub.dev/packages/intl_utils). + +- ```text + dart run intl_utils:generate + ``` ## Code Quality Standards In order to meet the required code quality standards, this project is following diff --git a/app/.gitignore b/app/.gitignore index 2fef982..e5bd2d0 100644 --- a/app/.gitignore +++ b/app/.gitignore @@ -70,6 +70,7 @@ unlinked_spec.ds **/android/**/GeneratedPluginRegistrant.java **/android/key.properties *.jks +/android/gradle.properties # iOS/XCode related **/ios/**/*.mode1v3 @@ -121,4 +122,23 @@ app.*.symbols !**/ios/**/default.perspectivev3 !/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages !/dev/ci/**/Gemfile.lock -/env*.json \ No newline at end of file +/env*.json + +# Environment and configuration files (contain sensitive data) +env/.env +env/.settings +env/env_*.json +.env +.env.* +*.env + +# Firebase/Google config files (may contain sensitive keys) +**/google-services.json +**/GoogleService-Info.plist +firebase.json +.firebaserc +firebase-debug.log + +# Local development files +local.properties +*.properties \ No newline at end of file diff --git a/app/android/build.properties b/app/android/build.properties index 45bf95e..10b0a37 100644 --- a/app/android/build.properties +++ b/app/android/build.properties @@ -1,6 +1,6 @@ flutter.versionName=1.0.0 flutter.appId=base flutter.versionCode=1 -flutter.compileSdkVersion=34 -flutter.minSdkVersion=21 -flutter.targetSdkVersion=33 +flutter.compileSdkVersion=36 +flutter.minSdkVersion=24 +flutter.targetSdkVersion=36 diff --git a/app/lib/main/app.dart b/app/lib/main/app.dart index 3e3f732..4d162e1 100644 --- a/app/lib/main/app.dart +++ b/app/lib/main/app.dart @@ -17,7 +17,7 @@ import 'init.dart'; class App extends StatelessWidget { GoRouter get _goRouter => Routers.authRouter; - const App({Key? key}) : super(key: key); + const App({super.key}); @override Widget build(BuildContext context) { diff --git a/app/lib/main/env/main_dev.dart b/app/lib/main/env/main_dev.dart index 397f473..130904f 100644 --- a/app/lib/main/env/main_dev.dart +++ b/app/lib/main/env/main_dev.dart @@ -1,4 +1,3 @@ -import 'package:firebase_core/firebase_core.dart'; import 'package:flutter/material.dart'; import 'package:app/main/env/env_config.dart'; import 'package:app/main/init.dart'; diff --git a/app/lib/main/env/main_qa.dart b/app/lib/main/env/main_qa.dart index 50c4dcc..47fc147 100644 --- a/app/lib/main/env/main_qa.dart +++ b/app/lib/main/env/main_qa.dart @@ -1,4 +1,3 @@ -import 'package:firebase_core/firebase_core.dart'; import 'package:flutter/material.dart'; import 'package:app/main/env/env_config.dart'; import 'package:app/main/init.dart'; diff --git a/app/lib/presentation/resources/custom_network_image.dart b/app/lib/presentation/resources/custom_network_image.dart index fdbb72c..2d91361 100644 --- a/app/lib/presentation/resources/custom_network_image.dart +++ b/app/lib/presentation/resources/custom_network_image.dart @@ -18,7 +18,7 @@ class CustomNetworkImage extends StatelessWidget { static const double _shadowOpacity = 0.2; const CustomNetworkImage({ - Key? key, + super.key, this.imageUrl, this.shadow, this.width, @@ -29,7 +29,7 @@ class CustomNetworkImage extends StatelessWidget { this.loaderImage, this.svgIconColor, this.imageUrlError, - }) : super(key: key); + }); bool isSvg(String? url) { if (url == null) { @@ -45,7 +45,7 @@ class CustomNetworkImage extends StatelessWidget { decoration: BoxDecoration(boxShadow: [ if ((shadow ?? false)) BoxShadow( - color: Colors.black.withOpacity(_shadowOpacity), + color: Colors.black.withValues(alpha: _shadowOpacity), spreadRadius: 0, blurRadius: _blurRadius, offset: const Offset(5, 5), @@ -55,14 +55,14 @@ class CustomNetworkImage extends StatelessWidget { imageUrl ?? "", width: width, height: height, - color: svgIconColor, + colorFilter: color != null ? ColorFilter.mode(svgIconColor!, BlendMode.srcIn) : null, ), ) : Container( decoration: BoxDecoration(boxShadow: [ if ((shadow ?? false)) BoxShadow( - color: Colors.black.withOpacity(_shadowOpacity), + color: Colors.black.withValues(alpha: _shadowOpacity), spreadRadius: 0, blurRadius: _blurRadius, offset: const Offset(5, 5), diff --git a/app/lib/presentation/resources/images.dart b/app/lib/presentation/resources/images.dart index 29bbe9b..f963dfa 100644 --- a/app/lib/presentation/resources/images.dart +++ b/app/lib/presentation/resources/images.dart @@ -99,7 +99,6 @@ class _SvgImage { Alignment alignment = Alignment.center, String? semanticLabel, String? package, - @visibleForTesting bool isWeb = false, }) { return SvgPicture.asset( assetPath, @@ -107,7 +106,7 @@ class _SvgImage { width: width, height: height, fit: fit, - color: color, + colorFilter: color != null ? ColorFilter.mode(color, BlendMode.srcIn) : null, alignment: alignment, semanticsLabel: semanticLabel, package: package, diff --git a/app/lib/presentation/themes/local_theme.dart b/app/lib/presentation/themes/local_theme.dart index b0a7a9b..3af8a6b 100644 --- a/app/lib/presentation/themes/local_theme.dart +++ b/app/lib/presentation/themes/local_theme.dart @@ -25,8 +25,9 @@ abstract class LocalTheme { pickerTextStyle: bodyS, dateTimePickerTextStyle: bodyS, ), - colors.background, + colors.surface, colors.secondaryContainer, + CupertinoColors.systemBlue, true, ); diff --git a/app/lib/presentation/themes/resources/app_theme_data.dart b/app/lib/presentation/themes/resources/app_theme_data.dart index 6fcc063..1cda14f 100644 --- a/app/lib/presentation/themes/resources/app_theme_data.dart +++ b/app/lib/presentation/themes/resources/app_theme_data.dart @@ -28,12 +28,10 @@ class AppThemeData { onError: palette.error.v100, errorContainer: palette.error.v90, onErrorContainer: palette.error.v10, - background: palette.neutral.v99, - onBackground: palette.neutral.v10, surface: palette.neutral.v99, onSurface: palette.neutral.v10, - surfaceVariant: palette.neutralVariant.v90, onSurfaceVariant: palette.neutralVariant.v30, + surfaceContainerHighest: palette.neutralVariant.v90, outline: palette.neutralVariant.v50, outlineVariant: palette.neutralVariant.v80, shadow: palette.neutral.v0, @@ -44,50 +42,38 @@ class AppThemeData { } abstract class ThemeColors { - /** - * 40: primary - * 100: onPrimary - * 90: primaryContainer - * 10: onPrimaryContainer - * **/ + /// 40: primary + /// 100: onPrimary + /// 90: primaryContainer + /// 10: onPrimaryContainer abstract final MaterialColor primary; - /** - * 40: secondary - * 100: onSecondary - * 90: secondaryContainer - * 10: onSecondaryContainer - * **/ + /// 40: secondary + /// 100: onSecondary + /// 90: secondaryContainer + /// 10: onSecondaryContainer abstract final MaterialColor secondary; - /** - * 40: tertiary - * 100: onTertiary - * 90: tertiaryContainer - * 10: onTertiaryContainer - * **/ + /// 40: tertiary + /// 100: onTertiary + /// 90: tertiaryContainer + /// 10: onTertiaryContainer abstract final MaterialColor tertiary; - /** - * 40: error - * 100: onError - * 90: errorContainer - * 10: onErrorContainer - * **/ + /// 40: error + /// 100: onError + /// 90: errorContainer + /// 10: onErrorContainer abstract final MaterialColor error; - /** - * 0: shadow - * 99: background / surface - * 10: onBackground / onSurface - * **/ + /// 0: shadow + /// 99: background / surface + /// 10: onBackground / onSurface abstract final MaterialColor neutral; - /** - * 90: surfaceVariant - * 30: onSurfaceVariant - * 50: outline - * 80: outlineVariant - * **/ + /// 90: surfaceVariant + /// 30: onSurfaceVariant + /// 50: outline + /// 80: outlineVariant abstract final MaterialColor neutralVariant; } diff --git a/app/lib/presentation/themes/resources/dark_theme_colors.dart b/app/lib/presentation/themes/resources/dark_theme_colors.dart index 6cec17a..6fefe9c 100644 --- a/app/lib/presentation/themes/resources/dark_theme_colors.dart +++ b/app/lib/presentation/themes/resources/dark_theme_colors.dart @@ -3,12 +3,10 @@ import 'package:app/presentation/themes/resources/app_theme_data.dart'; /// Change the colors for the dark theme class DarkThemeColors implements ThemeColors { - /** - * 40: primary - * 100: onPrimary - * 90: primaryContainer - * 10: onPrimaryContainer - * **/ + /// 10: onPrimaryContainer + /// 40: primary + /// 90: primaryContainer + /// 100: onPrimary @override // TODO: implement primary MaterialColor get primary => const MaterialColor(40, { @@ -27,12 +25,10 @@ class DarkThemeColors implements ThemeColors { 100: Color(0xFF6750A4), }); - /** - * 40: secondary - * 100: onSecondary - * 90: secondaryContainer - * 10: onSecondaryContainer - * **/ + /// 10: onSecondaryContainer + /// 40: secondary + /// 90: secondaryContainer + /// 100: onSecondary @override // TODO: implement secondary MaterialColor get secondary => const MaterialColor(40, { @@ -51,12 +47,10 @@ class DarkThemeColors implements ThemeColors { 100: Color(0xFF1D192B), }); - /** - * 40: tertiary - * 100: onTertiary - * 90: tertiaryContainer - * 10: onTertiaryContainer - * **/ + /// 10: onTertiaryContainer + /// 40: tertiary + /// 90: tertiaryContainer + /// 100: onTertiary @override // TODO: implement tertiary MaterialColor get tertiary => const MaterialColor(40, { @@ -75,12 +69,10 @@ class DarkThemeColors implements ThemeColors { 100: Color(0xFFF0524D), }); - /** - * 40: error - * 100: onError - * 90: errorContainer - * 10: onErrorContainer - * **/ + /// 10: onErrorContainer + /// 40: error + /// 90: errorContainer + /// 100: onError @override // TODO: implement error MaterialColor get error => const MaterialColor(40, { @@ -99,11 +91,9 @@ class DarkThemeColors implements ThemeColors { 100: Color(0xFFFFFFFF), }); - /** - * 0: shadow - * 99: background / surface - * 10: onBackground / onSurface - * **/ + /// 0: shadow + /// 10: onBackground / onSurface + /// 99: background / surface @override // TODO: implement neutral MaterialColor get neutral => const MaterialColor(40, { @@ -122,12 +112,10 @@ class DarkThemeColors implements ThemeColors { 100: Color(0xFF410E0B), }); - /** - * 90: surfaceVariant - * 30: onSurfaceVariant - * 50: outline - * 80: outlineVariant - * **/ + /// 30: onSurfaceVariant + /// 50: outline + /// 80: outlineVariant + /// 90: surfaceVariant @override // TODO: implement neutralVariant MaterialColor get neutralVariant => const MaterialColor(40, { diff --git a/app/lib/presentation/themes/resources/light_theme_colors.dart b/app/lib/presentation/themes/resources/light_theme_colors.dart index bb34641..42671a4 100644 --- a/app/lib/presentation/themes/resources/light_theme_colors.dart +++ b/app/lib/presentation/themes/resources/light_theme_colors.dart @@ -1,37 +1,33 @@ -import 'package:flutter/material.dart'; import 'package:app/presentation/themes/resources/app_theme_data.dart'; +import 'package:flutter/material.dart'; class LightThemeColors implements ThemeColors { - /** - * 40: primary - * 100: onPrimary - * 90: primaryContainer - * 10: onPrimaryContainer - * **/ + /// 10: onPrimaryContainer + /// 40: primary + /// 90: primaryContainer + /// 100: onPrimary @override // TODO: implement primary MaterialColor get primary => const MaterialColor(40, { 0: Color(0xFF000000), - 10: Color(0xFF21005D), + 10: Color(0xFF21005D), // Default Bottom navigation bar labels 20: Color(0xFFF0524D), 30: Color(0xFFF0524D), - 40: Color(0xFF6750A4), + 40: Color(0xFF6750A4), // Default Primary Buttons background 50: Color(0xFFF0524D), 60: Color(0xFFF0524D), 70: Color(0xFFF0524D), 80: Color(0xFFF0524D), - 90: Color(0xFFEADDFF), + 90: Color(0xFFEADDFF), // Default Bottom navigation bar background or variant button 95: Color(0xFFF0524D), 99: Color(0xFFEADDFF), 100: Color(0xFFFFFFFF), }); - /** - * 40: secondary - * 100: onSecondary - * 90: secondaryContainer - * 10: onSecondaryContainer - * **/ + /// 10: onSecondaryContainer + /// 40: secondary + /// 90: secondaryContainer + /// 100: onSecondary @override // TODO: implement secondary MaterialColor get secondary => const MaterialColor(40, { @@ -44,18 +40,16 @@ class LightThemeColors implements ThemeColors { 60: Color(0xFFF0524D), 70: Color(0xFFF0524D), 80: Color(0xFFF0524D), - 90: Color(0xFFE8DEF8), + 90: Color(0xFFE8DEF8), // Default Bottom navigation labels color 95: Color(0xFFF0524D), 99: Color(0xFFE8DEF8), 100: Color(0xFFFFFFFF), }); - /** - * 40: tertiary - * 100: onTertiary - * 90: tertiaryContainer - * 10: onTertiaryContainer - * **/ + /// 10: onTertiaryContainer + /// 40: tertiary + /// 90: tertiaryContainer + /// 100: onTertiary @override // TODO: implement tertiary MaterialColor get tertiary => const MaterialColor(40, { @@ -74,12 +68,10 @@ class LightThemeColors implements ThemeColors { 100: Color(0xFFFFFFFF), }); - /** - * 40: error - * 100: onError - * 90: errorContainer - * 10: onErrorContainer - * **/ + /// 10: onErrorContainer + /// 40: error + /// 90: errorContainer + /// 100: onError @override // TODO: implement error MaterialColor get error => const MaterialColor(40, { @@ -87,7 +79,7 @@ class LightThemeColors implements ThemeColors { 10: Color(0xFF410E0B), 20: Color(0xFFF0524D), 30: Color(0xFFF0524D), - 40: Color(0xFFB3261E), + 40: Color(0xFFB3261E), // Default Error text color & border color 50: Color(0xFFF0524D), 60: Color(0xFFF0524D), 70: Color(0xFFF0524D), @@ -98,16 +90,14 @@ class LightThemeColors implements ThemeColors { 100: Color(0xFFFFFFFF), }); - /** - * 0: shadow - * 99: background / surface - * 10: onBackground / onSurface - * **/ + /// 0: shadow + /// 10: onBackground / onSurface + /// 99: background / surface @override // TODO: implement neutral MaterialColor get neutral => const MaterialColor(40, { - 0: Color(0xFFFFFFFF), - 10: Color(0xFFFFFFFF), + 0: Color(0xFFFFFFFF), // Default Shadow + 10: Color(0xFFFFFFFF), // Default Text color 20: Color(0xFFFFFFFF), 30: Color(0xFFFFFFFF), 40: Color(0xFFFFFFFF), @@ -117,23 +107,21 @@ class LightThemeColors implements ThemeColors { 80: Color(0xFFFFFFFF), 90: Color(0xFFFFFFFF), 95: Color(0xFFFFFFFF), - 99: Color(0xFFFFFFFF), + 99: Color(0xFFFFFFFF), // Default scaffold background 100: Color(0xFFFFFFFF), }); - /** - * 90: surfaceVariant - * 30: onSurfaceVariant - * 50: outline - * 80: outlineVariant - * **/ + /// 30: onSurfaceVariant + /// 50: outline + /// 80: outlineVariant + /// 90: surfaceVariant @override // TODO: implement neutralVariant MaterialColor get neutralVariant => const MaterialColor(40, { 0: Color(0xFF000000), 10: Color(0xFF49454F), 20: Color(0xFFF0524D), - 30: Color(0xFFF0524D), + 30: Color(0xFFF0524D), // Labels in TextFormFields 40: Color(0xFFF0524D), 50: Color(0xFFFFFFFF), 60: Color(0xFFF0524D), diff --git a/app/lib/presentation/ui/custom/app_theme_switch.dart b/app/lib/presentation/ui/custom/app_theme_switch.dart index 63e046a..0cc5b3b 100644 --- a/app/lib/presentation/ui/custom/app_theme_switch.dart +++ b/app/lib/presentation/ui/custom/app_theme_switch.dart @@ -4,7 +4,7 @@ import 'package:domain/models/theme_type.dart'; import 'package:flutter_bloc/flutter_bloc.dart'; class AppThemeSwitch extends StatelessWidget { - const AppThemeSwitch({Key? key}) : super(key: key); + const AppThemeSwitch({super.key}); @override Widget build(BuildContext context) { diff --git a/app/lib/presentation/ui/custom/failure_widget.dart b/app/lib/presentation/ui/custom/failure_widget.dart index 71c32e5..f853e02 100644 --- a/app/lib/presentation/ui/custom/failure_widget.dart +++ b/app/lib/presentation/ui/custom/failure_widget.dart @@ -8,8 +8,7 @@ class FailureWidget extends StatelessWidget { final Failure? failure; final VoidCallback onRetry; - const FailureWidget({Key? key, required this.failure, required this.onRetry}) - : super(key: key); + const FailureWidget({super.key, required this.failure, required this.onRetry}); @override Widget build(BuildContext context) { @@ -24,8 +23,7 @@ class FailureWidget extends StatelessWidget { class ConnectionErrorWidget extends StatelessWidget { final VoidCallback onRetry; - const ConnectionErrorWidget({Key? key, required this.onRetry}) - : super(key: key); + const ConnectionErrorWidget({super.key, required this.onRetry}); @override Widget build(BuildContext context) { @@ -51,8 +49,7 @@ class ConnectionErrorWidget extends StatelessWidget { class UnexpectedErrorWidget extends StatelessWidget { final VoidCallback onRetry; - const UnexpectedErrorWidget({Key? key, required this.onRetry}) - : super(key: key); + const UnexpectedErrorWidget({super.key, required this.onRetry}); @override Widget build(BuildContext context) { diff --git a/app/lib/presentation/ui/custom/loading_screen.dart b/app/lib/presentation/ui/custom/loading_screen.dart index 06ac537..fd2ebd3 100644 --- a/app/lib/presentation/ui/custom/loading_screen.dart +++ b/app/lib/presentation/ui/custom/loading_screen.dart @@ -5,10 +5,10 @@ class LoadingScreen extends StatelessWidget { final Color? color; const LoadingScreen({ - Key? key, + super.key, required this.isLoading, this.color, - }) : super(key: key); + }); @override Widget build(BuildContext context) { diff --git a/app/lib/presentation/ui/pages/home/home_page.dart b/app/lib/presentation/ui/pages/home/home_page.dart index 03bf8a6..b147341 100644 --- a/app/lib/presentation/ui/pages/home/home_page.dart +++ b/app/lib/presentation/ui/pages/home/home_page.dart @@ -2,12 +2,12 @@ import 'package:app/main/init.dart'; import 'package:flutter/widgets.dart'; import 'package:app/presentation/ui/pages/home/home_view.dart'; import 'package:flutter_bloc/flutter_bloc.dart'; -import 'package:example_domain/services/ProductService.dart'; +import 'package:example_domain/services/product_service.dart'; class HomePage extends StatelessWidget { ProductService get _productsService => getIt(); - const HomePage({Key? key}) : super(key: key); + const HomePage({super.key}); @override Widget build(BuildContext context) { diff --git a/app/lib/presentation/ui/pages/home/home_view.dart b/app/lib/presentation/ui/pages/home/home_view.dart index c563370..5b84852 100644 --- a/app/lib/presentation/ui/pages/home/home_view.dart +++ b/app/lib/presentation/ui/pages/home/home_view.dart @@ -2,7 +2,7 @@ import 'package:app/main/init.dart'; import 'package:common/core/failure/failure.dart'; import 'package:common/core/resource.dart'; import 'package:example_domain/models/product.dart'; -import 'package:domain/services/AuthService.dart'; +import 'package:domain/services/auth_service.dart'; import 'package:example_presentation/ui/product/products_list_widget.dart'; import 'package:example_presentation/ui/product/products_loading.dart'; import 'package:flutter/material.dart'; @@ -15,7 +15,7 @@ import 'package:flutter_bloc/flutter_bloc.dart'; class HomeView extends StatelessWidget { AuthService get _authService => getIt(); - const HomeView({Key? key}) : super(key: key); + const HomeView({super.key}); @override Widget build(BuildContext context) { diff --git a/app/lib/presentation/ui/pages/login/login_page.dart b/app/lib/presentation/ui/pages/login/login_page.dart index 8eb2545..0f0336c 100644 --- a/app/lib/presentation/ui/pages/login/login_page.dart +++ b/app/lib/presentation/ui/pages/login/login_page.dart @@ -1,10 +1,8 @@ import 'package:app/main/init.dart'; import 'package:app/presentation/themes/app_themes.dart'; -import 'package:app/presentation/themes/local_theme.dart'; -import 'package:app/presentation/themes/resources/app_theme_data.dart'; import 'package:common/core/resource.dart'; import 'package:domain/bloc/auth/auth_cubit.dart'; -import 'package:domain/services/AuthService.dart'; +import 'package:domain/services/auth_service.dart'; import 'package:flutter/material.dart'; import 'package:app/presentation/ui/custom/app_theme_switch.dart'; import 'package:app/presentation/ui/custom/loading_screen.dart'; @@ -13,7 +11,7 @@ import 'package:flutter_bloc/flutter_bloc.dart'; class LoginPage extends StatelessWidget { AuthService get _authService => getIt(); - const LoginPage({Key? key}) : super(key: key); + const LoginPage({super.key}); @override Widget build(BuildContext context) { @@ -21,7 +19,7 @@ class LoginPage extends StatelessWidget { children: [ Scaffold( appBar: AppBar(), - backgroundColor: context.theme.colorScheme.background, + backgroundColor: context.theme.colorScheme.surface, body: Padding( padding: const EdgeInsets.all(16), child: Column( @@ -52,7 +50,7 @@ class LoginPage extends StatelessWidget { } class _Loading extends StatelessWidget { - const _Loading({Key? key}) : super(key: key); + const _Loading(); @override Widget build(BuildContext context) { diff --git a/app/lib/presentation/ui/pages/sign_up/sign_up_page.dart b/app/lib/presentation/ui/pages/sign_up/sign_up_page.dart index f92ca5c..232ee46 100644 --- a/app/lib/presentation/ui/pages/sign_up/sign_up_page.dart +++ b/app/lib/presentation/ui/pages/sign_up/sign_up_page.dart @@ -1,7 +1,7 @@ import 'package:flutter/material.dart'; class SignUpPage extends StatelessWidget { - const SignUpPage({Key? key}) : super(key: key); + const SignUpPage({super.key}); @override Widget build(BuildContext context) { diff --git a/app/lib/presentation/ui/pages/sign_up/sign_up_view.dart b/app/lib/presentation/ui/pages/sign_up/sign_up_view.dart index 45e1554..ddd94b2 100644 --- a/app/lib/presentation/ui/pages/sign_up/sign_up_view.dart +++ b/app/lib/presentation/ui/pages/sign_up/sign_up_view.dart @@ -1,7 +1,7 @@ import 'package:flutter/material.dart'; class SignUpView extends StatelessWidget { - const SignUpView({Key? key}) : super(key: key); + const SignUpView({super.key}); @override Widget build(BuildContext context) { diff --git a/app/lib/presentation/ui/pages/splash/splash_page.dart b/app/lib/presentation/ui/pages/splash/splash_page.dart index 858df69..a43fc5a 100644 --- a/app/lib/presentation/ui/pages/splash/splash_page.dart +++ b/app/lib/presentation/ui/pages/splash/splash_page.dart @@ -1,9 +1,9 @@ import 'package:app/main/init.dart'; -import 'package:domain/services/AuthService.dart'; +import 'package:domain/services/auth_service.dart'; import 'package:flutter/material.dart'; class SplashPage extends StatefulWidget { - const SplashPage({Key? key}) : super(key: key); + const SplashPage({super.key}); @override State createState() => _SplashPageState(); diff --git a/app/pubspec.yaml b/app/pubspec.yaml index 0f7943f..a6ff6c6 100644 --- a/app/pubspec.yaml +++ b/app/pubspec.yaml @@ -25,7 +25,7 @@ dependencies: sdk: flutter flutter_svg: ^2.0.5 shared_preferences: ^2.5.3 - intl: ^0.19.0 + intl: ^0.20.2 intl_utils: ^2.8.7 cupertino_icons: ^1.0.5 dio: ^5.1.2 diff --git a/example/example_data/lib/data_sources/remote/concrete/product_data_source_impl.dart b/example/example_data/lib/data_sources/remote/concrete/product_data_source_impl.dart index a6267d7..8724477 100644 --- a/example/example_data/lib/data_sources/remote/concrete/product_data_source_impl.dart +++ b/example/example_data/lib/data_sources/remote/concrete/product_data_source_impl.dart @@ -19,7 +19,7 @@ class ProductDataSourceImpl extends ProductDataSource { .map((e) => ProductEntity.fromMap(e)) .toList(); return TSuccess(products); - } on DioError catch (e) { + } on DioException catch (e) { return TError(e.toFailure()); } catch (e) { return TError(UnexpectedFailure(e.toString())); diff --git a/example/example_domain/lib/bloc/BaseBlocState.dart b/example/example_domain/lib/bloc/base_bloc_state.dart similarity index 100% rename from example/example_domain/lib/bloc/BaseBlocState.dart rename to example/example_domain/lib/bloc/base_bloc_state.dart diff --git a/example/example_domain/lib/bloc/get_products/get_products_cubit.dart b/example/example_domain/lib/bloc/get_products/get_products_cubit.dart index 8cbb1b4..5bf341d 100644 --- a/example/example_domain/lib/bloc/get_products/get_products_cubit.dart +++ b/example/example_domain/lib/bloc/get_products/get_products_cubit.dart @@ -1,7 +1,7 @@ import 'package:common/core/failure/failure.dart'; import 'package:common/core/mixins/cancelable_cubit_mixin.dart'; import 'package:common/core/resource.dart'; -import 'package:example_domain/bloc/BaseBlocState.dart'; +import 'package:example_domain/bloc/base_bloc_state.dart'; import 'package:example_domain/models/product.dart'; class GetProductsCubit extends BaseBlocState, Failure> diff --git a/example/example_domain/lib/init.dart b/example/example_domain/lib/init.dart index 7d731e6..7f00e89 100644 --- a/example/example_domain/lib/init.dart +++ b/example/example_domain/lib/init.dart @@ -1,4 +1,4 @@ -import 'package:example_domain/services/ProductService.dart'; +import 'package:example_domain/services/product_service.dart'; import 'package:get_it/get_it.dart'; import 'bloc/get_products/get_products_cubit.dart'; diff --git a/example/example_domain/lib/services/ProductService.dart b/example/example_domain/lib/services/product_service.dart similarity index 100% rename from example/example_domain/lib/services/ProductService.dart rename to example/example_domain/lib/services/product_service.dart diff --git a/example/example_domain/pubspec.yaml b/example/example_domain/pubspec.yaml index 8b61164..4468978 100644 --- a/example/example_domain/pubspec.yaml +++ b/example/example_domain/pubspec.yaml @@ -13,7 +13,7 @@ dependencies: common: path: ../../modules/common flutter_bloc: ^8.1.2 - + get_it: ^7.6.0 dev_dependencies: flutter_test: sdk: flutter diff --git a/example/example_presentation/lib/ui/product/product_widget.dart b/example/example_presentation/lib/ui/product/product_widget.dart index e1d9ea1..1a52d98 100644 --- a/example/example_presentation/lib/ui/product/product_widget.dart +++ b/example/example_presentation/lib/ui/product/product_widget.dart @@ -4,7 +4,7 @@ import 'package:example_domain/models/product.dart'; class ProductWidget extends StatelessWidget { final Product product; - const ProductWidget({Key? key, required this.product}) : super(key: key); + const ProductWidget({super.key, required this.product}); @override Widget build(BuildContext context) { diff --git a/example/example_presentation/lib/ui/product/products_list_widget.dart b/example/example_presentation/lib/ui/product/products_list_widget.dart index 0997340..704b105 100644 --- a/example/example_presentation/lib/ui/product/products_list_widget.dart +++ b/example/example_presentation/lib/ui/product/products_list_widget.dart @@ -5,7 +5,7 @@ import 'package:example_domain/models/product.dart'; class ProductsListWidget extends StatelessWidget { final List products; - const ProductsListWidget({Key? key, required this.products}) : super(key: key); + const ProductsListWidget({super.key, required this.products}); @override Widget build(BuildContext context) { diff --git a/example/example_presentation/lib/ui/product/products_loading.dart b/example/example_presentation/lib/ui/product/products_loading.dart index 22b6511..5e16010 100644 --- a/example/example_presentation/lib/ui/product/products_loading.dart +++ b/example/example_presentation/lib/ui/product/products_loading.dart @@ -1,7 +1,7 @@ import 'package:flutter/material.dart'; class ProductsLoading extends StatelessWidget { - const ProductsLoading({Key? key}) : super(key: key); + const ProductsLoading({super.key}); @override Widget build(BuildContext context) { diff --git a/example/example_presentation/pubspec.yaml b/example/example_presentation/pubspec.yaml index e88bb4c..3032222 100644 --- a/example/example_presentation/pubspec.yaml +++ b/example/example_presentation/pubspec.yaml @@ -1,6 +1,7 @@ name: example_presentation description: "A new Flutter package project." version: 0.0.1 +publish_to: none homepage: environment: @@ -12,8 +13,6 @@ dependencies: sdk: flutter example_domain: path: ../example_domain - example_data: - path: ../example_data dev_dependencies: flutter_test: diff --git a/modules/common/.flutter-plugins-dependencies b/modules/common/.flutter-plugins-dependencies deleted file mode 100644 index 65e0b09..0000000 --- a/modules/common/.flutter-plugins-dependencies +++ /dev/null @@ -1 +0,0 @@ -{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"package_info_plus","path":"/Users/fabianvalencia/.pub-cache/hosted/pub.dev/package_info_plus-4.2.0/","native_build":true,"dependencies":[]},{"name":"permission_handler_apple","path":"/Users/fabianvalencia/.pub-cache/hosted/pub.dev/permission_handler_apple-9.1.4/","native_build":true,"dependencies":[]}],"android":[{"name":"package_info_plus","path":"/Users/fabianvalencia/.pub-cache/hosted/pub.dev/package_info_plus-4.2.0/","native_build":true,"dependencies":[]},{"name":"permission_handler_android","path":"/Users/fabianvalencia/.pub-cache/hosted/pub.dev/permission_handler_android-10.3.6/","native_build":true,"dependencies":[]}],"macos":[{"name":"package_info_plus","path":"/Users/fabianvalencia/.pub-cache/hosted/pub.dev/package_info_plus-4.2.0/","native_build":true,"dependencies":[]}],"linux":[{"name":"package_info_plus","path":"/Users/fabianvalencia/.pub-cache/hosted/pub.dev/package_info_plus-4.2.0/","native_build":false,"dependencies":[]}],"windows":[{"name":"package_info_plus","path":"/Users/fabianvalencia/.pub-cache/hosted/pub.dev/package_info_plus-4.2.0/","native_build":false,"dependencies":[]},{"name":"permission_handler_windows","path":"/Users/fabianvalencia/.pub-cache/hosted/pub.dev/permission_handler_windows-0.1.3/","native_build":true,"dependencies":[]}],"web":[{"name":"package_info_plus","path":"/Users/fabianvalencia/.pub-cache/hosted/pub.dev/package_info_plus-4.2.0/","dependencies":[]}]},"dependencyGraph":[{"name":"package_info_plus","dependencies":[]},{"name":"permission_handler","dependencies":["permission_handler_android","permission_handler_apple","permission_handler_windows"]},{"name":"permission_handler_android","dependencies":[]},{"name":"permission_handler_apple","dependencies":[]},{"name":"permission_handler_windows","dependencies":[]}],"date_created":"2024-05-02 16:35:44.210631","version":"3.19.3"} \ No newline at end of file diff --git a/modules/common/.gitignore b/modules/common/.gitignore index 96486fd..7820742 100644 --- a/modules/common/.gitignore +++ b/modules/common/.gitignore @@ -28,3 +28,5 @@ migrate_working_dir/ .dart_tool/ .packages build/ +.flutter-plugins-dependencies +/.flutter-plugins diff --git a/modules/common/lib/analytics/setup_analytics.dart b/modules/common/lib/analytics/setup_analytics.dart index 1689793..d6a440d 100644 --- a/modules/common/lib/analytics/setup_analytics.dart +++ b/modules/common/lib/analytics/setup_analytics.dart @@ -1,7 +1,8 @@ +import 'dart:developer' as developer; class SetupAnalytics { static void initialize() { // Initialize analytics services here - print("Analytics services initialized."); + developer.log('Analytics services initialized.', name: 'analytics'); } } diff --git a/modules/common/lib/core/failure/failure_mapper.dart b/modules/common/lib/core/failure/failure_mapper.dart index fdc659b..71001f2 100644 --- a/modules/common/lib/core/failure/failure_mapper.dart +++ b/modules/common/lib/core/failure/failure_mapper.dart @@ -2,19 +2,19 @@ import 'package:dio/dio.dart'; import 'failure.dart'; -extension FailureMapper on DioError { +extension FailureMapper on DioException { Failure toFailure() { switch (type) { - case DioErrorType.connectionTimeout: - case DioErrorType.sendTimeout: - case DioErrorType.receiveTimeout: + case DioExceptionType.connectionTimeout: + case DioExceptionType.sendTimeout: + case DioExceptionType.receiveTimeout: return SocketTimeOutFailure(message); - case DioErrorType.badResponse: + case DioExceptionType.badResponse: return HttpFailure(response?.statusCode, name: message); - case DioErrorType.cancel: - case DioErrorType.unknown: - case DioErrorType.badCertificate: - case DioErrorType.connectionError: + case DioExceptionType.cancel: + case DioExceptionType.unknown: + case DioExceptionType.badCertificate: + case DioExceptionType.connectionError: return UnexpectedFailure(message); } } diff --git a/modules/common/lib/core/resource.dart b/modules/common/lib/core/resource.dart index 4076df5..3fede0b 100644 --- a/modules/common/lib/core/resource.dart +++ b/modules/common/lib/core/resource.dart @@ -1,5 +1,3 @@ -import 'package:common/core/failure/failure.dart'; - sealed class Resource {} class Loading extends Resource {} diff --git a/modules/common/lib/devices/permissions/abstract/permission_manager.dart b/modules/common/lib/devices/permissions/abstract/permission_manager.dart index 573b3fb..24e1b5d 100644 --- a/modules/common/lib/devices/permissions/abstract/permission_manager.dart +++ b/modules/common/lib/devices/permissions/abstract/permission_manager.dart @@ -7,15 +7,15 @@ abstract class PermissionManager { } enum AppPermissionStatus { - GRANTED, - DENIED, + granted, + denied, /// iOs - RESTRICTED, + restricted, /// Android/iOS - DENIED_PERMANTLY, + deniedPermanently, /// i.e when location permission is granted only when the app is in use - LIMITED + limited } diff --git a/modules/common/lib/devices/permissions/concrete/_permission_manager_base.dart b/modules/common/lib/devices/permissions/concrete/_permission_manager_base.dart index a4eb1cf..e8a4853 100644 --- a/modules/common/lib/devices/permissions/concrete/_permission_manager_base.dart +++ b/modules/common/lib/devices/permissions/concrete/_permission_manager_base.dart @@ -23,13 +23,13 @@ class PermissionManagerBase extends PermissionManager { extension FromStatus on PermissionStatus { static const Map _permissionStatus = { - PermissionStatus.granted: AppPermissionStatus.GRANTED, - PermissionStatus.denied: AppPermissionStatus.DENIED, - PermissionStatus.restricted: AppPermissionStatus.RESTRICTED, - PermissionStatus.permanentlyDenied: AppPermissionStatus.DENIED_PERMANTLY, - PermissionStatus.limited: AppPermissionStatus.LIMITED, + PermissionStatus.granted: AppPermissionStatus.granted, + PermissionStatus.denied: AppPermissionStatus.denied, + PermissionStatus.restricted: AppPermissionStatus.restricted, + PermissionStatus.permanentlyDenied: AppPermissionStatus.deniedPermanently, + PermissionStatus.limited: AppPermissionStatus.limited, }; AppPermissionStatus toAppPermission() => - _permissionStatus[this] ?? AppPermissionStatus.DENIED; + _permissionStatus[this] ?? AppPermissionStatus.denied; } diff --git a/modules/common/lib/devices/permissions/concrete/web/_permissions_web.dart b/modules/common/lib/devices/permissions/concrete/web/_permissions_web.dart index 8070615..7d74c8e 100644 --- a/modules/common/lib/devices/permissions/concrete/web/_permissions_web.dart +++ b/modules/common/lib/devices/permissions/concrete/web/_permissions_web.dart @@ -6,29 +6,29 @@ class AppPermissions extends PermissionManager { Future requestCameraPermission() async { final permission = await html.window.navigator.permissions?.query({"name": "camera"}); - if (_permissionStatus(permission) != AppPermissionStatus.GRANTED) { + if (_permissionStatus(permission) != AppPermissionStatus.granted) { await html.window.navigator.getUserMedia(video: true); final check = await html.window.navigator.permissions ?.query({"request": "", "name": "camera"}); return _permissionStatus(check); } - return AppPermissionStatus.GRANTED; + return AppPermissionStatus.granted; } @override Future requestGalleryPermission() async { - return AppPermissionStatus.GRANTED; + return AppPermissionStatus.granted; } @override Future requestNotificationPermission() async { //TODO... - return AppPermissionStatus.DENIED; + return AppPermissionStatus.denied; } AppPermissionStatus _permissionStatus(html.PermissionStatus? permission) { return (permission?.state ?? "denied") == "granted" - ? AppPermissionStatus.GRANTED - : AppPermissionStatus.DENIED; + ? AppPermissionStatus.granted + : AppPermissionStatus.denied; } } diff --git a/modules/common/lib/devices/platform/abstract/app_platform.dart b/modules/common/lib/devices/platform/abstract/app_platform.dart index d432a73..92fdacf 100644 --- a/modules/common/lib/devices/platform/abstract/app_platform.dart +++ b/modules/common/lib/devices/platform/abstract/app_platform.dart @@ -16,13 +16,13 @@ abstract class AppPlatform { get isAndroid => false; PlatformType get currentPlatform { - if (isWeb) return PlatformType.Web; + if (isWeb) return PlatformType.web; if (isIOS) return PlatformType.iOS; - if (isAndroid) return PlatformType.Android; - if (isMacOS) return PlatformType.MacOS; - if (isFuchsia) return PlatformType.Fuchsia; - if (isLinux) return PlatformType.Linux; - if (isWindows) return PlatformType.Windows; - return PlatformType.Unknown; + if (isAndroid) return PlatformType.android; + if (isMacOS) return PlatformType.macOS; + if (isFuchsia) return PlatformType.fuchsia; + if (isLinux) return PlatformType.linux; + if (isWindows) return PlatformType.windows; + return PlatformType.unknown; } } diff --git a/modules/common/lib/devices/platform/abstract/platform_info.dart b/modules/common/lib/devices/platform/abstract/platform_info.dart index 0fedb14..bfb5e6a 100644 --- a/modules/common/lib/devices/platform/abstract/platform_info.dart +++ b/modules/common/lib/devices/platform/abstract/platform_info.dart @@ -16,7 +16,7 @@ abstract class PlatformInfo { String get getCurrentPlatformType; } -enum PlatformType { Web, iOS, Android, MacOS, Fuchsia, Linux, Windows, Unknown } +enum PlatformType { web, iOS, android, macOS, fuchsia, linux, windows, unknown } extension PlatformTypeString on PlatformType { String get name => toString().split('.').last; diff --git a/modules/common/pubspec.yaml b/modules/common/pubspec.yaml index 8696246..0b3ad3f 100644 --- a/modules/common/pubspec.yaml +++ b/modules/common/pubspec.yaml @@ -9,7 +9,7 @@ environment: dependencies: flutter: sdk: flutter - intl: ^0.19.0 + intl: ^0.20.2 intl_utils: ^2.8.6 cupertino_icons: ^1.0.5 async: ^2.11.0 diff --git a/modules/data/.flutter-plugins-dependencies b/modules/data/.flutter-plugins-dependencies deleted file mode 100644 index 96ccafd..0000000 --- a/modules/data/.flutter-plugins-dependencies +++ /dev/null @@ -1 +0,0 @@ -{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"package_info_plus","path":"/Users/usuario/.pub-cache/hosted/pub.dev/package_info_plus-4.1.0/","native_build":true,"dependencies":[]},{"name":"permission_handler_apple","path":"/Users/usuario/.pub-cache/hosted/pub.dev/permission_handler_apple-9.1.4/","native_build":true,"dependencies":[]},{"name":"shared_preferences_foundation","path":"/Users/usuario/.pub-cache/hosted/pub.dev/shared_preferences_foundation-2.3.3/","shared_darwin_source":true,"native_build":true,"dependencies":[]}],"android":[{"name":"package_info_plus","path":"/Users/usuario/.pub-cache/hosted/pub.dev/package_info_plus-4.1.0/","native_build":true,"dependencies":[]},{"name":"permission_handler_android","path":"/Users/usuario/.pub-cache/hosted/pub.dev/permission_handler_android-10.3.3/","native_build":true,"dependencies":[]},{"name":"shared_preferences_android","path":"/Users/usuario/.pub-cache/hosted/pub.dev/shared_preferences_android-2.2.0/","native_build":true,"dependencies":[]}],"macos":[{"name":"package_info_plus","path":"/Users/usuario/.pub-cache/hosted/pub.dev/package_info_plus-4.1.0/","native_build":true,"dependencies":[]},{"name":"shared_preferences_foundation","path":"/Users/usuario/.pub-cache/hosted/pub.dev/shared_preferences_foundation-2.3.3/","shared_darwin_source":true,"native_build":true,"dependencies":[]}],"linux":[{"name":"package_info_plus","path":"/Users/usuario/.pub-cache/hosted/pub.dev/package_info_plus-4.1.0/","native_build":false,"dependencies":[]},{"name":"path_provider_linux","path":"/Users/usuario/.pub-cache/hosted/pub.dev/path_provider_linux-2.2.0/","native_build":false,"dependencies":[]},{"name":"shared_preferences_linux","path":"/Users/usuario/.pub-cache/hosted/pub.dev/shared_preferences_linux-2.3.0/","native_build":false,"dependencies":["path_provider_linux"]}],"windows":[{"name":"package_info_plus","path":"/Users/usuario/.pub-cache/hosted/pub.dev/package_info_plus-4.1.0/","native_build":false,"dependencies":[]},{"name":"path_provider_windows","path":"/Users/usuario/.pub-cache/hosted/pub.dev/path_provider_windows-2.2.0/","native_build":false,"dependencies":[]},{"name":"permission_handler_windows","path":"/Users/usuario/.pub-cache/hosted/pub.dev/permission_handler_windows-0.1.3/","native_build":true,"dependencies":[]},{"name":"shared_preferences_windows","path":"/Users/usuario/.pub-cache/hosted/pub.dev/shared_preferences_windows-2.3.0/","native_build":false,"dependencies":["path_provider_windows"]}],"web":[{"name":"package_info_plus","path":"/Users/usuario/.pub-cache/hosted/pub.dev/package_info_plus-4.1.0/","dependencies":[]},{"name":"shared_preferences_web","path":"/Users/usuario/.pub-cache/hosted/pub.dev/shared_preferences_web-2.2.0/","dependencies":[]}]},"dependencyGraph":[{"name":"package_info_plus","dependencies":[]},{"name":"path_provider_linux","dependencies":[]},{"name":"path_provider_windows","dependencies":[]},{"name":"permission_handler","dependencies":["permission_handler_android","permission_handler_apple","permission_handler_windows"]},{"name":"permission_handler_android","dependencies":[]},{"name":"permission_handler_apple","dependencies":[]},{"name":"permission_handler_windows","dependencies":[]},{"name":"shared_preferences","dependencies":["shared_preferences_android","shared_preferences_foundation","shared_preferences_linux","shared_preferences_web","shared_preferences_windows"]},{"name":"shared_preferences_android","dependencies":[]},{"name":"shared_preferences_foundation","dependencies":[]},{"name":"shared_preferences_linux","dependencies":["path_provider_linux"]},{"name":"shared_preferences_web","dependencies":[]},{"name":"shared_preferences_windows","dependencies":["path_provider_windows"]}],"date_created":"2024-06-05 15:15:43.462832","version":"3.22.1"} \ No newline at end of file diff --git a/modules/data/.gitignore b/modules/data/.gitignore index 96486fd..f969096 100644 --- a/modules/data/.gitignore +++ b/modules/data/.gitignore @@ -28,3 +28,5 @@ migrate_working_dir/ .dart_tool/ .packages build/ +.flutter-plugins-dependencies +/.flutter-plugins \ No newline at end of file diff --git a/modules/domain/.gitignore b/modules/domain/.gitignore index 96486fd..f969096 100644 --- a/modules/domain/.gitignore +++ b/modules/domain/.gitignore @@ -28,3 +28,5 @@ migrate_working_dir/ .dart_tool/ .packages build/ +.flutter-plugins-dependencies +/.flutter-plugins \ No newline at end of file diff --git a/modules/domain/lib/bloc/auth/auth_cubit.dart b/modules/domain/lib/bloc/auth/auth_cubit.dart index 95a7d3d..94d2f08 100644 --- a/modules/domain/lib/bloc/auth/auth_cubit.dart +++ b/modules/domain/lib/bloc/auth/auth_cubit.dart @@ -1,6 +1,6 @@ import 'package:common/core/failure/failure.dart'; import 'package:common/core/resource.dart'; -import 'package:domain/bloc/BaseBlocState.dart'; +import 'package:domain/bloc/base_bloc_state.dart'; import 'package:domain/bloc/auth/auth_state.dart'; class AuthCubit extends BaseBlocState { diff --git a/modules/domain/lib/bloc/BaseBlocState.dart b/modules/domain/lib/bloc/base_bloc_state.dart similarity index 100% rename from modules/domain/lib/bloc/BaseBlocState.dart rename to modules/domain/lib/bloc/base_bloc_state.dart diff --git a/modules/domain/lib/init.dart b/modules/domain/lib/init.dart index 90fbf2e..2b50a02 100644 --- a/modules/domain/lib/init.dart +++ b/modules/domain/lib/init.dart @@ -1,6 +1,6 @@ import 'package:domain/bloc/app/app_cubit.dart'; import 'package:domain/bloc/auth/auth_cubit.dart'; -import 'package:domain/services/AuthService.dart'; +import 'package:domain/services/auth_service.dart'; import 'package:get_it/get_it.dart'; class DomainInit { diff --git a/modules/domain/lib/services/AuthService.dart b/modules/domain/lib/services/auth_service.dart similarity index 100% rename from modules/domain/lib/services/AuthService.dart rename to modules/domain/lib/services/auth_service.dart diff --git a/modules/domain/test/auth_service_test.dart b/modules/domain/test/auth_service_test.dart index eb6f284..797d2b8 100644 --- a/modules/domain/test/auth_service_test.dart +++ b/modules/domain/test/auth_service_test.dart @@ -2,7 +2,7 @@ import 'package:common/core/failure/failure.dart'; import 'package:common/core/result_type.dart'; import 'package:domain/bloc/auth/auth_cubit.dart'; import 'package:domain/repositories/auth_repository.dart'; -import 'package:domain/services/AuthService.dart'; +import 'package:domain/services/auth_service.dart'; import 'package:flutter_test/flutter_test.dart'; import 'package:mocktail/mocktail.dart';