Skip to content

Commit

Permalink
fixed query by type
Browse files Browse the repository at this point in the history
  • Loading branch information
drriguz committed Feb 21, 2025
1 parent db9d751 commit 844f8df
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ final logger = Logger('Cryptowl');
void main() async {
Logger.root.level = Level.ALL;
Logger.root.onRecord.listen((record) {
// ignore: avoid_print
print('${record.level.name}: ${record.time}: ${record.message}');
});
WidgetsFlutterBinding.ensureInitialized();
Expand Down
5 changes: 4 additions & 1 deletion lib/src/screens/components/passwords.dart
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@ Future<List<PasswordBasic>> passwords(Ref ref) async {
case CATEGORY_LOGIN:
case CATEGORY_CARD:
case CATEGORY_SSH_KEY:
return repository.listByType(selectedCategory);
{
final type = -(10 + selectedCategory);
return repository.listByType(type);
}
default:
return repository.listByCategory(selectedCategory);
}
Expand Down
2 changes: 1 addition & 1 deletion lib/src/screens/components/passwords.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 844f8df

Please sign in to comment.