54 lines
1.1 KiB
Dart
54 lines
1.1 KiB
Dart
import 'package:flutter/material.dart';
|
|
import '../models/record.dart';
|
|
|
|
/// 预设支出分类
|
|
final List<Category> expenseCategories = [
|
|
Category(
|
|
id: 'food',
|
|
name: '餐饮',
|
|
icon: Icons.restaurant,
|
|
type: RecordType.expense,
|
|
),
|
|
Category(
|
|
id: 'shopping',
|
|
name: '购物',
|
|
icon: Icons.shopping_bag,
|
|
type: RecordType.expense,
|
|
),
|
|
Category(
|
|
id: 'transport',
|
|
name: '交通',
|
|
icon: Icons.directions_bus,
|
|
type: RecordType.expense,
|
|
),
|
|
Category(
|
|
id: 'entertainment',
|
|
name: '娱乐',
|
|
icon: Icons.sports_esports,
|
|
type: RecordType.expense,
|
|
),
|
|
// 可以继续添加更多分类...
|
|
];
|
|
|
|
/// 预设收入分类
|
|
final List<Category> incomeCategories = [
|
|
Category(
|
|
id: 'salary',
|
|
name: '工资',
|
|
icon: Icons.account_balance_wallet,
|
|
type: RecordType.income,
|
|
),
|
|
Category(
|
|
id: 'bonus',
|
|
name: '奖金',
|
|
icon: Icons.card_giftcard,
|
|
type: RecordType.income,
|
|
),
|
|
Category(
|
|
id: 'investment',
|
|
name: '投资',
|
|
icon: Icons.trending_up,
|
|
type: RecordType.income,
|
|
),
|
|
// 可以继续添加更多分类...
|
|
]; |