Compare commits
No commits in common. "e5e59ef7a587f0784f7b4b1336e0a1553e1c31d8" and "6675f916350236e083741ed25ce88ae76ac2b835" have entirely different histories.
e5e59ef7a5
...
6675f91635
5 changed files with 21 additions and 10 deletions
|
@ -51,7 +51,7 @@ android {
|
|||
applicationId "cafe.caras.prasule"
|
||||
// You can update the following values to match your application needs.
|
||||
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.
|
||||
minSdkVersion 21
|
||||
minSdkVersion flutter.minSdkVersion
|
||||
targetSdkVersion 33
|
||||
versionCode flutterVersionCode.toInteger()
|
||||
versionName flutterVersionName
|
||||
|
|
|
@ -132,8 +132,7 @@ class Wallet {
|
|||
: recurringEntries[recurringEntries.indexOf(ent)].lastRunDate.day,
|
||||
); // add the variable again to check if we aren't missing any entries
|
||||
logger.i(
|
||||
"Last recurred date is now on ${DateFormat.yMMMMd().format(m)} (${n.isAfter(m)})",
|
||||
);
|
||||
"Last recurred date is now on ${DateFormat.yMMMMd().format(m)} (${n.isAfter(m)})");
|
||||
}
|
||||
WalletManager.saveWallet(this); // save wallet
|
||||
}
|
||||
|
|
|
@ -65,6 +65,23 @@ class ExpensesLineChart extends StatelessWidget {
|
|||
}
|
||||
}
|
||||
|
||||
final List<double> incomeData;
|
||||
List<double> get incomeDataSorted {
|
||||
var list = List<double>.from(incomeData);
|
||||
list.sort((a, b) => a.compareTo(b));
|
||||
return list;
|
||||
}
|
||||
|
||||
double get maxY {
|
||||
if (incomeData.isEmpty) return expenseDataSorted.last;
|
||||
if (expenseData.isEmpty) return incomeDataSorted.last;
|
||||
if (expenseDataSorted.last > incomeDataSorted.last) {
|
||||
return expenseDataSorted.last;
|
||||
} else {
|
||||
return incomeDataSorted.last;
|
||||
}
|
||||
}
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return LineChart(
|
||||
|
@ -522,7 +539,6 @@ class Indicator extends StatelessWidget {
|
|||
/// Text shown next to the indicator circle
|
||||
final String text;
|
||||
|
||||
/// Style for the text
|
||||
final TextStyle textStyle;
|
||||
|
||||
@override
|
||||
|
|
|
@ -192,9 +192,7 @@ class _CreateSingleEntryViewState extends State<CreateSingleEntryView> {
|
|||
onPressed: () {
|
||||
if (newEntry.data.name.isEmpty) {
|
||||
showMessage(
|
||||
AppLocalizations.of(context).errorEmptyName,
|
||||
context,
|
||||
);
|
||||
AppLocalizations.of(context).errorEmptyName, context);
|
||||
return;
|
||||
}
|
||||
if (widget.editEntry != null) {
|
||||
|
|
|
@ -315,9 +315,7 @@ class _CreateRecurringEntryViewState extends State<CreateRecurringEntryView> {
|
|||
onPressed: () {
|
||||
if (newEntry.data.name.isEmpty) {
|
||||
showMessage(
|
||||
AppLocalizations.of(context).errorEmptyName,
|
||||
context,
|
||||
);
|
||||
AppLocalizations.of(context).errorEmptyName, context);
|
||||
return;
|
||||
}
|
||||
if (widget.editEntry != null) {
|
||||
|
|
Loading…
Reference in a new issue