added flutter icons files and intl packages
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user