style(app): остальные экраны под новый визуальный язык и форматирование
Доходы, ребалансировка, налоги, импорт, цели, здоровье данных, правила, транзакции, категории, cashflow, pending: новые виджеты и токены темы, dart format. Тесты подстроены под новые модели.
This commit is contained in:
@@ -18,12 +18,14 @@ class LinkInstrumentDialog extends ConsumerStatefulWidget {
|
||||
final String initialQuery;
|
||||
|
||||
@override
|
||||
ConsumerState<LinkInstrumentDialog> createState() => _LinkInstrumentDialogState();
|
||||
ConsumerState<LinkInstrumentDialog> createState() =>
|
||||
_LinkInstrumentDialogState();
|
||||
}
|
||||
|
||||
class _LinkInstrumentDialogState extends ConsumerState<LinkInstrumentDialog> {
|
||||
late final TextEditingController _controller =
|
||||
TextEditingController(text: widget.initialQuery);
|
||||
late final TextEditingController _controller = TextEditingController(
|
||||
text: widget.initialQuery,
|
||||
);
|
||||
String _query = '';
|
||||
Timer? _debounce;
|
||||
|
||||
@@ -75,7 +77,9 @@ class _LinkInstrumentDialogState extends ConsumerState<LinkInstrumentDialog> {
|
||||
error: (e, _) => Center(child: Text('$e')),
|
||||
data: (rows) {
|
||||
if (_query.trim().length < 2) {
|
||||
return const Center(child: Text('Введите минимум 2 символа'));
|
||||
return const Center(
|
||||
child: Text('Введите минимум 2 символа'),
|
||||
);
|
||||
}
|
||||
if (rows.isEmpty) {
|
||||
return const Center(child: Text('Ничего не найдено'));
|
||||
@@ -108,10 +112,12 @@ class _LinkInstrumentDialogState extends ConsumerState<LinkInstrumentDialog> {
|
||||
].join(' · ');
|
||||
return ListTile(
|
||||
dense: true,
|
||||
title: Text([
|
||||
if (instrument.ticker != null) instrument.ticker!,
|
||||
instrument.name,
|
||||
].join(' · ')),
|
||||
title: Text(
|
||||
[
|
||||
if (instrument.ticker != null) instrument.ticker!,
|
||||
instrument.name,
|
||||
].join(' · '),
|
||||
),
|
||||
subtitle: Text(subtitle),
|
||||
onTap: () => Navigator.of(context).pop(instrument.id),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user