新增笔记功能 图标更新
This commit is contained in:
@@ -12,6 +12,7 @@ import '../../utils/amount_input_formatter.dart';
|
||||
import '../../utils/amount_util.dart';
|
||||
import '../../utils/toast.dart';
|
||||
import '../../widgets/state_views.dart';
|
||||
import '../note/note_list_page.dart';
|
||||
|
||||
/// 「我的」页面
|
||||
///
|
||||
@@ -50,6 +51,8 @@ class MinePage extends ConsumerWidget {
|
||||
_accountCard(context, ref, accountAsync),
|
||||
const SizedBox(height: 14),
|
||||
_budgetCard(context, ref, budgetAsync),
|
||||
const SizedBox(height: 14),
|
||||
_notesEntry(context),
|
||||
const SizedBox(height: 24),
|
||||
_logoutButton(context),
|
||||
const SizedBox(height: 90),
|
||||
@@ -366,6 +369,49 @@ class MinePage extends ConsumerWidget {
|
||||
);
|
||||
}
|
||||
|
||||
// ---------------- 笔记入口 ----------------
|
||||
Widget _notesEntry(BuildContext context) {
|
||||
return GestureDetector(
|
||||
onTap: () => Navigator.of(context).push(
|
||||
MaterialPageRoute(builder: (_) => const NoteListPage()),
|
||||
),
|
||||
child: Container(
|
||||
padding: const EdgeInsets.fromLTRB(18, 16, 14, 16),
|
||||
decoration: BoxDecoration(
|
||||
color: Colors.white,
|
||||
borderRadius: BorderRadius.circular(16),
|
||||
),
|
||||
child: Row(
|
||||
children: [
|
||||
const Text('📝', style: TextStyle(fontSize: 24)),
|
||||
const SizedBox(width: 14),
|
||||
const Expanded(
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Text(
|
||||
'我的笔记',
|
||||
style: TextStyle(
|
||||
fontSize: 15,
|
||||
fontWeight: FontWeight.w600,
|
||||
color: Color(0xFF5D4037),
|
||||
),
|
||||
),
|
||||
SizedBox(height: 3),
|
||||
Text(
|
||||
'管理 Markdown 文档,随时查看和记录',
|
||||
style: TextStyle(fontSize: 12.5, color: Color(0xFF8D6E63)),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
const Icon(Icons.chevron_right, color: Color(0xFFBCAAA4)),
|
||||
],
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
// ---------------- 修改余额 ----------------
|
||||
Future<void> _editBalance(BuildContext context, WidgetRef ref, AccountInfo account) async {
|
||||
final input = await _showAmountDialog(
|
||||
|
||||
Reference in New Issue
Block a user