Improved json auto save & budget mobile UI
This commit is contained in:
@@ -12,25 +12,36 @@ class ImportSettings extends StatelessWidget {
|
||||
builder: (context, state) => TitledContainer(
|
||||
title: "Import",
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
FilledButton(
|
||||
FilledButton.icon(
|
||||
onPressed: () => context.read<AccountBloc>().add(const ClearData()),
|
||||
label: const Text('ClearData'),
|
||||
icon: const Icon(Icons.delete_forever),
|
||||
),
|
||||
const SizedBox(height: 5),
|
||||
FilledButton.tonalIcon(
|
||||
onPressed: () => context.read<AccountBloc>().add(const AccountImportCSV()),
|
||||
child: const Text('Import CSV')
|
||||
label: const Text('Import CSV'),
|
||||
icon: const Icon(Icons.upload_file),
|
||||
),
|
||||
const SizedBox(height: 5),
|
||||
FilledButton(
|
||||
FilledButton.tonalIcon(
|
||||
onPressed: () => context.read<AccountBloc>().add(const AccountImportJSON()),
|
||||
child: const Text('Import JSON')
|
||||
label: const Text('Import JSON'),
|
||||
icon: const Icon(Icons.upload_file),
|
||||
),
|
||||
const SizedBox(height: 5),
|
||||
FilledButton(
|
||||
FilledButton.tonalIcon(
|
||||
onPressed: () => context.read<AccountBloc>().add(const AccountExportCSV()),
|
||||
child: const Text('Export CSV')
|
||||
label: const Text('Export CSV'),
|
||||
icon: const Icon(Icons.download),
|
||||
),
|
||||
const SizedBox(height: 5),
|
||||
FilledButton(
|
||||
FilledButton.tonalIcon(
|
||||
onPressed: () => context.read<AccountBloc>().add(const AccountExportJSON()),
|
||||
child: const Text('Export JSON')
|
||||
label: const Text('Export JSON'),
|
||||
icon: const Icon(Icons.download),
|
||||
),
|
||||
],
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user