added flutter icons files and intl packages

This commit is contained in:
AlcalaJulian
2025-11-24 12:55:20 +01:00
parent 4225f7510b
commit d381908ff1
45 changed files with 1679 additions and 18 deletions

View File

@@ -3,6 +3,7 @@ import 'package:auth/src/sign_up/signup_screen.dart';
import 'package:flutter/material.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'package:navigation/navigation.dart';
import 'package:sf_localizations/sf_localizations.dart';
class LoginScreen extends ConsumerWidget {
final NavigationContract navigationContract;
@@ -22,6 +23,7 @@ class LoginScreen extends ConsumerWidget {
children: [
Icon(Icons.check, color: Color(0xFF329e95), size: 50),
Text(
// context.translate(I18n.example) // example to use Intl package
"¡Te damos la bienvenida!",
style: TextStyle(fontSize: 30, fontWeight: FontWeight.bold),
),

View File

@@ -20,6 +20,8 @@ dependencies:
path: ../../packages/design_system
navigation:
path: ../../packages/navigation
sf_localizations:
path: ../../packages/sf_localizations
#dependencies go here
flutter_svg: ^2.2.1
get_it: ^9.0.5

View File

@@ -1,4 +1,4 @@
# melos_managed_dependency_overrides: dashboard_shell,design_system,home,notifications,profile,sf_shared,navigation
# melos_managed_dependency_overrides: dashboard_shell,design_system,home,notifications,profile,sf_shared,navigation,utils
dependency_overrides:
dashboard_shell:
path: ../dashboard_shell
@@ -14,3 +14,5 @@ dependency_overrides:
path: ../profile
sf_shared:
path: ../../packages/sf_shared
utils:
path: ../../packages/utils

View File

@@ -3,13 +3,12 @@ import 'package:dashboard_shell/src/presentation/main_shell_view_state.dart';
import 'package:design_system/design_system.dart';
import 'package:flutter/material.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'package:flutter_riverpod/legacy.dart';
import 'package:go_router/go_router.dart';
import 'package:navigation/navigation.dart';
final mainShellViewModelProvider =
StateNotifierProvider.autoDispose<MainShellViewModel, MainShellViewState>(
(ref) => MainShellViewModel(ref: ref),
NotifierProvider.autoDispose<MainShellViewModel, MainShellViewState>(
() => MainShellViewModel(),
);
class DashboardScreen extends ConsumerWidget {

View File

@@ -1,11 +1,11 @@
import 'package:dashboard_shell/src/presentation/main_shell_view_state.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'package:flutter_riverpod/legacy.dart';
class MainShellViewModel extends StateNotifier<MainShellViewState> {
MainShellViewModel({required this.ref}) : super(MainShellViewState());
final Ref ref;
class MainShellViewModel extends Notifier<MainShellViewState> {
@override
MainShellViewState build() {
return MainShellViewState();
}
void onTabChanged(int index) {
state = state.copyWith(selectedIndex: index);

View File

@@ -1,4 +1,4 @@
# melos_managed_dependency_overrides: auth,design_system,home,notifications,profile,sf_shared,navigation
# melos_managed_dependency_overrides: auth,design_system,home,notifications,profile,sf_shared,navigation,utils
dependency_overrides:
auth:
path: ../auth
@@ -14,3 +14,5 @@ dependency_overrides:
path: ../profile
sf_shared:
path: ../../packages/sf_shared
utils:
path: ../../packages/utils

View File

@@ -1,4 +1,4 @@
# melos_managed_dependency_overrides: auth,dashboard_shell,design_system,notifications,profile,sf_shared,navigation
# melos_managed_dependency_overrides: auth,dashboard_shell,design_system,notifications,profile,sf_shared,navigation,utils
dependency_overrides:
auth:
path: ../auth
@@ -14,3 +14,5 @@ dependency_overrides:
path: ../profile
sf_shared:
path: ../../packages/sf_shared
utils:
path: ../../packages/utils

View File

@@ -1,6 +1,8 @@
# melos_managed_dependency_overrides: design_system,sf_shared
# melos_managed_dependency_overrides: design_system,sf_shared,utils
dependency_overrides:
design_system:
path: ../../packages/design_system
sf_shared:
path: ../../packages/sf_shared
utils:
path: ../../packages/utils

View File

@@ -1,4 +1,4 @@
# melos_managed_dependency_overrides: design_system,notifications,sf_shared
# melos_managed_dependency_overrides: design_system,notifications,sf_shared,utils
dependency_overrides:
design_system:
path: ../../packages/design_system
@@ -6,3 +6,5 @@ dependency_overrides:
path: ../notifications
sf_shared:
path: ../../packages/sf_shared
utils:
path: ../../packages/utils