Skip to content

Commit

Permalink
updated password list
Browse files Browse the repository at this point in the history
  • Loading branch information
drriguz committed Feb 21, 2025
1 parent bc37340 commit 8685775
Show file tree
Hide file tree
Showing 17 changed files with 276 additions and 103 deletions.
Binary file added assets/fonts/AgileSans-Regular.otf
Binary file not shown.
3 changes: 0 additions & 3 deletions lib/main.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
import 'dart:io';

import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'package:logging/logging.dart';
Expand Down
10 changes: 0 additions & 10 deletions lib/src/database/database.dart
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,6 @@ class AppDb extends _$AppDb {
createTime: now,
lastUpdateTime: now,
));
await into(passwords).insert(PasswordEntity(
id: 'test',
type: 1,
categoryId: 1,
title: "test",
value: "test",
createTime: now,
lastUpdateTime: now,
isDeleted: 0,
));
}
},
onCreate: (Migrator m) async {
Expand Down
57 changes: 56 additions & 1 deletion lib/src/database/database.g.dart

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

1 change: 1 addition & 0 deletions lib/src/database/tables.drift
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ CREATE TABLE passwords (
value TEXT NOT NULL,
expire_time TEXT,
remark TEXT,
is_favorite INTEGER NOT NULL DEFAULT 0,
category_id INTEGER NOT NULL DEFAULT 1,
create_time TEXT NOT NULL,
last_update_time TEXT NOT NULL,
Expand Down
43 changes: 27 additions & 16 deletions lib/src/screens/components/category_group.dart
Original file line number Diff line number Diff line change
Expand Up @@ -9,25 +9,36 @@ class CategoryGroup extends StatelessWidget {

@override
Widget build(BuildContext context) {
return InkWell(
child: Row(
children: [
Icon(
MyIcons.chevron_right,
size: 12,
return Row(
children: [
InkWell(
child: Icon(
Icons.keyboard_arrow_right,
color: Colors.grey,
),
Padding(
padding: EdgeInsets.only(left: 10),
child: Text(
name,
style: TextStyle(
color: Colors.grey,
),
onTap: () {},
),
Padding(
padding: EdgeInsets.only(left: 10),
child: Text(
name,
style: TextStyle(
color: Colors.grey,
),
),
],
),
onTap: () {},
),
Expanded(child: Container()),
Padding(
padding: EdgeInsets.only(right: 30),
child: InkWell(
onTap: () {},
child: Icon(
Icons.add,
color: Colors.grey,
),
),
)
],
);
}
}
Loading

0 comments on commit 8685775

Please sign in to comment.