feat: 重构 Reminder Notification 系统并更新应用包名

This commit is contained in:
qzl
2026-03-30 18:36:57 +08:00
parent 9fb2a6857b
commit 91bf3c3f96
90 changed files with 5133 additions and 3017 deletions
@@ -8,6 +8,7 @@ import '../../../../shared/widgets/app_loading_indicator.dart';
import '../../../../shared/widgets/toast/index.dart';
import '../../../../shared/widgets/app_button.dart';
import '../../../../shared/widgets/back_title_page_header.dart';
import '../../../../shared/widgets/shared_divider.dart';
import '../../../contacts/data/apis/friends_api.dart';
import '../../../contacts/data/apis/users_api.dart';
@@ -448,7 +449,7 @@ class _ContactsScreenState extends State<ContactsScreen> {
children: [
for (int i = 0; i < _searchResults.length; i++) ...[
_buildSearchResultItem(_searchResults[i]),
if (i < _searchResults.length - 1) _buildDivider(),
if (i < _searchResults.length - 1) SharedDivider(),
],
],
),
@@ -620,7 +621,7 @@ class _ContactsScreenState extends State<ContactsScreen> {
children: [
for (int i = 0; i < requests.length; i++) ...[
_buildPendingRequestItem(requests[i]),
if (i < requests.length - 1) _buildDivider(),
if (i < requests.length - 1) SharedDivider(),
],
],
),
@@ -679,7 +680,7 @@ class _ContactsScreenState extends State<ContactsScreen> {
children: [
for (int i = 0; i < friends.length; i++) ...[
_buildContactItem(friends[i]),
if (i < friends.length - 1) _buildDivider(),
if (i < friends.length - 1) SharedDivider(),
],
],
),
@@ -691,7 +692,8 @@ class _ContactsScreenState extends State<ContactsScreen> {
final friendInfo = friend.friend;
return GestureDetector(
onTap: () => context.push('/contacts/add?id=${friendInfo.id}'),
onTap: () =>
context.push('/contacts/${friendInfo.id}', extra: friendInfo),
child: Container(
height: 70,
padding: const EdgeInsets.symmetric(horizontal: 14),
@@ -753,15 +755,6 @@ class _ContactsScreenState extends State<ContactsScreen> {
: colorScheme.primary.withValues(alpha: opacity);
}
Widget _buildDivider() {
final colorScheme = Theme.of(context).colorScheme;
return Container(
height: 1,
margin: const EdgeInsets.symmetric(horizontal: 14),
color: colorScheme.outlineVariant,
);
}
Widget _buildAvatar(
String? avatarUrl,
String userId,