Compare commits
3 commits
6675f91635
...
e5e59ef7a5
Author | SHA1 | Date | |
---|---|---|---|
|
e5e59ef7a5 | ||
|
27bfadc015 | ||
|
3f2b1d723f |
5 changed files with 10 additions and 21 deletions
|
@ -51,7 +51,7 @@ android {
|
||||||
applicationId "cafe.caras.prasule"
|
applicationId "cafe.caras.prasule"
|
||||||
// You can update the following values to match your application needs.
|
// 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.
|
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.
|
||||||
minSdkVersion flutter.minSdkVersion
|
minSdkVersion 21
|
||||||
targetSdkVersion 33
|
targetSdkVersion 33
|
||||||
versionCode flutterVersionCode.toInteger()
|
versionCode flutterVersionCode.toInteger()
|
||||||
versionName flutterVersionName
|
versionName flutterVersionName
|
||||||
|
|
|
@ -132,7 +132,8 @@ class Wallet {
|
||||||
: recurringEntries[recurringEntries.indexOf(ent)].lastRunDate.day,
|
: recurringEntries[recurringEntries.indexOf(ent)].lastRunDate.day,
|
||||||
); // add the variable again to check if we aren't missing any entries
|
); // add the variable again to check if we aren't missing any entries
|
||||||
logger.i(
|
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
|
WalletManager.saveWallet(this); // save wallet
|
||||||
}
|
}
|
||||||
|
|
|
@ -65,23 +65,6 @@ 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
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return LineChart(
|
return LineChart(
|
||||||
|
@ -539,6 +522,7 @@ class Indicator extends StatelessWidget {
|
||||||
/// Text shown next to the indicator circle
|
/// Text shown next to the indicator circle
|
||||||
final String text;
|
final String text;
|
||||||
|
|
||||||
|
/// Style for the text
|
||||||
final TextStyle textStyle;
|
final TextStyle textStyle;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
|
|
|
@ -192,7 +192,9 @@ class _CreateSingleEntryViewState extends State<CreateSingleEntryView> {
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
if (newEntry.data.name.isEmpty) {
|
if (newEntry.data.name.isEmpty) {
|
||||||
showMessage(
|
showMessage(
|
||||||
AppLocalizations.of(context).errorEmptyName, context);
|
AppLocalizations.of(context).errorEmptyName,
|
||||||
|
context,
|
||||||
|
);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (widget.editEntry != null) {
|
if (widget.editEntry != null) {
|
||||||
|
|
|
@ -315,7 +315,9 @@ class _CreateRecurringEntryViewState extends State<CreateRecurringEntryView> {
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
if (newEntry.data.name.isEmpty) {
|
if (newEntry.data.name.isEmpty) {
|
||||||
showMessage(
|
showMessage(
|
||||||
AppLocalizations.of(context).errorEmptyName, context);
|
AppLocalizations.of(context).errorEmptyName,
|
||||||
|
context,
|
||||||
|
);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (widget.editEntry != null) {
|
if (widget.editEntry != null) {
|
||||||
|
|
Loading…
Reference in a new issue