Skip to content

Commit

Permalink
[huhx] -feat: upgrade the package
Browse files Browse the repository at this point in the history
  • Loading branch information
huhx committed Nov 29, 2023
1 parent fb0f4e0 commit ec950b7
Show file tree
Hide file tree
Showing 4 changed files with 117 additions and 101 deletions.
2 changes: 1 addition & 1 deletion lib/business/search/search_provider.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ final searchProvider = StateNotifierProvider<SearchModel, String>((ref) {
});

class SearchModel extends StateNotifier<String> {
SearchModel(String query) : super(query);
SearchModel(super.query);

void update(String queryString) {
state = queryString;
Expand Down
2 changes: 1 addition & 1 deletion lib/business/user/data/session_provider.dart
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ final sessionProvider = StateNotifierProvider<SessionModel, User?>((ref) {
});

class SessionModel extends StateNotifier<User?> {
SessionModel(User? user) : super(user);
SessionModel(super.user);

String get userId => state!.userId;

Expand Down
Loading

0 comments on commit ec950b7

Please sign in to comment.