계정 정보 다이얼로그 추가 및 전체 목록 페치 개선
This commit is contained in:
@@ -127,7 +127,9 @@ class _DashboardPageState extends State<DashboardPage> {
|
||||
Align(
|
||||
alignment: Alignment.centerRight,
|
||||
child: ShadButton(
|
||||
onPressed: _controller.refresh,
|
||||
onPressed: _controller.isLoading
|
||||
? null
|
||||
: _controller.refresh,
|
||||
child: const Text('다시 시도'),
|
||||
),
|
||||
),
|
||||
@@ -138,12 +140,15 @@ class _DashboardPageState extends State<DashboardPage> {
|
||||
);
|
||||
}
|
||||
|
||||
final kpiMap = {for (final item in summary.kpis) item.key: item};
|
||||
final kpiMap = summary.kpis.fold<Map<String, DashboardKpi>>({}, (map, kpi) {
|
||||
map[kpi.key] = kpi;
|
||||
return map;
|
||||
});
|
||||
|
||||
return SingleChildScrollView(
|
||||
padding: const EdgeInsets.only(right: 12, bottom: 24),
|
||||
padding: const EdgeInsets.only(bottom: 48),
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.stretch,
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
if (_controller.errorMessage != null)
|
||||
Padding(
|
||||
|
||||
Reference in New Issue
Block a user