style(app): остальные экраны под новый визуальный язык и форматирование
Доходы, ребалансировка, налоги, импорт, цели, здоровье данных, правила, транзакции, категории, cashflow, pending: новые виджеты и токены темы, dart format. Тесты подстроены под новые модели.
This commit is contained in:
@@ -4,18 +4,21 @@ import '../../core/api/api_client.dart';
|
||||
import '../../core/cache/cached.dart';
|
||||
import 'data/goals_api.dart';
|
||||
|
||||
final goalsApiProvider = Provider<GoalsApi>((ref) => GoalsApi(ref.watch(apiProvider).dio));
|
||||
final goalsApiProvider = Provider<GoalsApi>(
|
||||
(ref) => GoalsApi(ref.watch(apiProvider).dio),
|
||||
);
|
||||
|
||||
/// See `docs/ai/offline-cache.md`.
|
||||
final goalsProvider =
|
||||
FutureProvider.autoDispose<Cached<List<Goal>>>((ref) => ref.watch(goalsApiProvider).list());
|
||||
final goalsProvider = FutureProvider.autoDispose<Cached<List<Goal>>>(
|
||||
(ref) => ref.watch(goalsApiProvider).list(),
|
||||
);
|
||||
|
||||
/// Progress is computed server-side and refetched per goal — the client never projects
|
||||
/// anything itself.
|
||||
final goalProgressProvider =
|
||||
FutureProvider.autoDispose.family<Cached<GoalProgress>, int>((ref, id) async {
|
||||
return ref.watch(goalsApiProvider).progress(id);
|
||||
});
|
||||
final goalProgressProvider = FutureProvider.autoDispose
|
||||
.family<Cached<GoalProgress>, int>((ref, id) async {
|
||||
return ref.watch(goalsApiProvider).progress(id);
|
||||
});
|
||||
|
||||
/// After any create/patch/delete the list and every progress card are refetched: the
|
||||
/// numbers are recomputed on the server, not patched in the app.
|
||||
|
||||
Reference in New Issue
Block a user