Reports
This commit is contained in:
parent
b7c7fddb94
commit
2f150a0f12
|
|
@ -141,7 +141,7 @@ class _DashboardChartState extends State<DashboardChart> {
|
|||
child: Container(
|
||||
color: isSelected ? Colors.blue : theme.cardColor,
|
||||
padding:
|
||||
EdgeInsets.only(left: 16, top: 16, right: 32, bottom: 8),
|
||||
EdgeInsets.only(left: 16, top: 8, right: 32, bottom: 8),
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: <Widget>[
|
||||
|
|
|
|||
|
|
@ -266,7 +266,7 @@ ReportResult clientReport(
|
|||
row.add(client.getReportNumber(
|
||||
value: value, currencyId: client.settings.currencyId));
|
||||
} else {
|
||||
row.add(client.getReportString(value: value));
|
||||
row.add(client.getReportString(value: '$value'));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
import 'dart:html';
|
||||
import 'dart:io' as file;
|
||||
import 'package:flutter_share/flutter_share.dart';
|
||||
import 'package:built_collection/built_collection.dart';
|
||||
|
|
@ -191,13 +192,11 @@ class ReportsScreenVM {
|
|||
'${state.uiState.reportsUIState.report}_report_$date.csv';
|
||||
|
||||
if (kIsWeb) {
|
||||
/*
|
||||
final encodedFileContents = Uri.encodeComponent(data);
|
||||
final encodedFileContents = Uri.encodeComponent(csvData);
|
||||
AnchorElement(
|
||||
href: 'data:text/plain;charset=utf-8,$encodedFileContents')
|
||||
..setAttribute('download', filename)
|
||||
..click();
|
||||
*/
|
||||
} else {
|
||||
final directory = await getExternalStorageDirectory();
|
||||
final filePath = '${directory.path}/$filename';
|
||||
|
|
|
|||
Loading…
Reference in New Issue