Compare commits
22 Commits
62379f54b0
...
0.1.1
Author | SHA1 | Date | |
---|---|---|---|
4d0dc03c69 | |||
bdb3fc5c7a | |||
da2ae6206a | |||
f5b22c6c1c | |||
9f7773f724 | |||
dec343af09 | |||
0890e15bfb | |||
55fd4092ac | |||
247b88daa2 | |||
d604a59ad1 | |||
5bf6a0889c | |||
f3d6b8abbe | |||
8ea85586d5 | |||
d1633fd155 | |||
26718a41e0 | |||
2c241d9113 | |||
adea1eeb02 | |||
f441caebf7 | |||
48615b3438 | |||
bc3b3a4109 | |||
5ec246228e | |||
579a611bc2 |
3
.gitignore
vendored
@ -44,3 +44,6 @@ app.*.map.json
|
||||
/android/app/release
|
||||
|
||||
/android/app/.*
|
||||
|
||||
# Ignore the releases folder.
|
||||
releases/*
|
||||
|
30
.metadata
@ -4,7 +4,7 @@
|
||||
# This file should be version controlled and should not be manually edited.
|
||||
|
||||
version:
|
||||
revision: "68415ad1d920f6fe5ec284f5c2febf7c4dd5b0b3"
|
||||
revision: "c23637390482d4cf9598c3ce3f2be31aa7332daf"
|
||||
channel: "stable"
|
||||
|
||||
project_type: app
|
||||
@ -13,26 +13,26 @@ project_type: app
|
||||
migration:
|
||||
platforms:
|
||||
- platform: root
|
||||
create_revision: 68415ad1d920f6fe5ec284f5c2febf7c4dd5b0b3
|
||||
base_revision: 68415ad1d920f6fe5ec284f5c2febf7c4dd5b0b3
|
||||
create_revision: c23637390482d4cf9598c3ce3f2be31aa7332daf
|
||||
base_revision: c23637390482d4cf9598c3ce3f2be31aa7332daf
|
||||
- platform: android
|
||||
create_revision: 68415ad1d920f6fe5ec284f5c2febf7c4dd5b0b3
|
||||
base_revision: 68415ad1d920f6fe5ec284f5c2febf7c4dd5b0b3
|
||||
create_revision: c23637390482d4cf9598c3ce3f2be31aa7332daf
|
||||
base_revision: c23637390482d4cf9598c3ce3f2be31aa7332daf
|
||||
- platform: ios
|
||||
create_revision: 68415ad1d920f6fe5ec284f5c2febf7c4dd5b0b3
|
||||
base_revision: 68415ad1d920f6fe5ec284f5c2febf7c4dd5b0b3
|
||||
create_revision: c23637390482d4cf9598c3ce3f2be31aa7332daf
|
||||
base_revision: c23637390482d4cf9598c3ce3f2be31aa7332daf
|
||||
- platform: linux
|
||||
create_revision: 68415ad1d920f6fe5ec284f5c2febf7c4dd5b0b3
|
||||
base_revision: 68415ad1d920f6fe5ec284f5c2febf7c4dd5b0b3
|
||||
create_revision: c23637390482d4cf9598c3ce3f2be31aa7332daf
|
||||
base_revision: c23637390482d4cf9598c3ce3f2be31aa7332daf
|
||||
- platform: macos
|
||||
create_revision: 68415ad1d920f6fe5ec284f5c2febf7c4dd5b0b3
|
||||
base_revision: 68415ad1d920f6fe5ec284f5c2febf7c4dd5b0b3
|
||||
create_revision: c23637390482d4cf9598c3ce3f2be31aa7332daf
|
||||
base_revision: c23637390482d4cf9598c3ce3f2be31aa7332daf
|
||||
- platform: web
|
||||
create_revision: 68415ad1d920f6fe5ec284f5c2febf7c4dd5b0b3
|
||||
base_revision: 68415ad1d920f6fe5ec284f5c2febf7c4dd5b0b3
|
||||
create_revision: c23637390482d4cf9598c3ce3f2be31aa7332daf
|
||||
base_revision: c23637390482d4cf9598c3ce3f2be31aa7332daf
|
||||
- platform: windows
|
||||
create_revision: 68415ad1d920f6fe5ec284f5c2febf7c4dd5b0b3
|
||||
base_revision: 68415ad1d920f6fe5ec284f5c2febf7c4dd5b0b3
|
||||
create_revision: c23637390482d4cf9598c3ce3f2be31aa7332daf
|
||||
base_revision: c23637390482d4cf9598c3ce3f2be31aa7332daf
|
||||
|
||||
# User provided section
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
# flutter_expense_tracker
|
||||
# Recurring Expense Tracker
|
||||
|
||||
Recurring expense tracker app for Android.
|
||||
Recurring expense tracker app for Linux and Android.
|
||||
|
||||
Add a debit as daily, weekly, monthly, etc, then see how it affects your liquid
|
||||
assets based on your reported income over different time projections.
|
||||
Add an expense as daily, weekly, monthly, etc, then see how it affects your
|
||||
liquid assets based on your reported income over different time projections.
|
||||
|
44
android/app/build.gradle.kts
Normal file
@ -0,0 +1,44 @@
|
||||
plugins {
|
||||
id("com.android.application")
|
||||
id("kotlin-android")
|
||||
// The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins.
|
||||
id("dev.flutter.flutter-gradle-plugin")
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "com.hyperling.expense_tracker"
|
||||
compileSdk = flutter.compileSdkVersion
|
||||
ndkVersion = flutter.ndkVersion
|
||||
|
||||
compileOptions {
|
||||
sourceCompatibility = JavaVersion.VERSION_11
|
||||
targetCompatibility = JavaVersion.VERSION_11
|
||||
}
|
||||
|
||||
kotlinOptions {
|
||||
jvmTarget = JavaVersion.VERSION_11.toString()
|
||||
}
|
||||
|
||||
defaultConfig {
|
||||
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
|
||||
applicationId = "com.hyperling.expense_tracker"
|
||||
// You can update the following values to match your application needs.
|
||||
// For more information, see: https://flutter.dev/to/review-gradle-config.
|
||||
minSdk = flutter.minSdkVersion
|
||||
targetSdk = flutter.targetSdkVersion
|
||||
versionCode = flutter.versionCode
|
||||
versionName = flutter.versionName
|
||||
}
|
||||
|
||||
buildTypes {
|
||||
release {
|
||||
// TODO: Add your own signing config for the release build.
|
||||
// Signing with the debug keys for now, so `flutter run --release` works.
|
||||
signingConfig = signingConfigs.getByName("debug")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
flutter {
|
||||
source = "../.."
|
||||
}
|
@ -1,8 +1,9 @@
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<application
|
||||
android:label="Recurring Expense Tracker"
|
||||
android:label="Expenses"
|
||||
android:name="${applicationName}"
|
||||
android:icon="@mipmap/ic_launcher">
|
||||
android:icon="@mipmap/icon_v003"
|
||||
android:roundIcon="@mipmap/icon_v003_round">
|
||||
<activity
|
||||
android:name=".MainActivity"
|
||||
android:exported="true"
|
||||
@ -41,5 +42,10 @@
|
||||
<action android:name="android.intent.action.PROCESS_TEXT"/>
|
||||
<data android:mimeType="text/plain"/>
|
||||
</intent>
|
||||
<!-- Allow opening of web URLs -->
|
||||
<intent>
|
||||
<action android:name="android.intent.action.VIEW" />
|
||||
<data android:scheme="https" />
|
||||
</intent>
|
||||
</queries>
|
||||
</manifest>
|
||||
|
@ -1,5 +0,0 @@
|
||||
package com.example.flutter_empty
|
||||
|
||||
import io.flutter.embedding.android.FlutterActivity
|
||||
|
||||
class MainActivity: FlutterActivity()
|
@ -0,0 +1,5 @@
|
||||
package com.hyperling.expense_tracker
|
||||
|
||||
import io.flutter.embedding.android.FlutterActivity
|
||||
|
||||
class MainActivity : FlutterActivity()
|
BIN
android/app/src/main/res/mipmap-hdpi/icon_v003.png
Normal file
After Width: | Height: | Size: 28 KiB |
BIN
android/app/src/main/res/mipmap-hdpi/icon_v003_round.png
Normal file
After Width: | Height: | Size: 35 KiB |
21
android/build.gradle.kts
Normal file
@ -0,0 +1,21 @@
|
||||
allprojects {
|
||||
repositories {
|
||||
google()
|
||||
mavenCentral()
|
||||
}
|
||||
}
|
||||
|
||||
val newBuildDir: Directory = rootProject.layout.buildDirectory.dir("../../build").get()
|
||||
rootProject.layout.buildDirectory.value(newBuildDir)
|
||||
|
||||
subprojects {
|
||||
val newSubprojectBuildDir: Directory = newBuildDir.dir(project.name)
|
||||
project.layout.buildDirectory.value(newSubprojectBuildDir)
|
||||
}
|
||||
subprojects {
|
||||
project.evaluationDependsOn(":app")
|
||||
}
|
||||
|
||||
tasks.register<Delete>("clean") {
|
||||
delete(rootProject.layout.buildDirectory)
|
||||
}
|
25
android/settings.gradle.kts
Normal file
@ -0,0 +1,25 @@
|
||||
pluginManagement {
|
||||
val flutterSdkPath = run {
|
||||
val properties = java.util.Properties()
|
||||
file("local.properties").inputStream().use { properties.load(it) }
|
||||
val flutterSdkPath = properties.getProperty("flutter.sdk")
|
||||
require(flutterSdkPath != null) { "flutter.sdk not set in local.properties" }
|
||||
flutterSdkPath
|
||||
}
|
||||
|
||||
includeBuild("$flutterSdkPath/packages/flutter_tools/gradle")
|
||||
|
||||
repositories {
|
||||
google()
|
||||
mavenCentral()
|
||||
gradlePluginPortal()
|
||||
}
|
||||
}
|
||||
|
||||
plugins {
|
||||
id("dev.flutter.flutter-plugin-loader") version "1.0.0"
|
||||
id("com.android.application") version "8.7.0" apply false
|
||||
id("org.jetbrains.kotlin.android") version "1.8.22" apply false
|
||||
}
|
||||
|
||||
include(":app")
|
46
create_release_files.sh
Executable file
@ -0,0 +1,46 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
DIR="$(dirname -- "${BASH_SOURCE[0]}")"
|
||||
RELEASE_DIR=$DIR/releases
|
||||
|
||||
|
||||
echo "*** Prepare for Builds ***"
|
||||
cd $DIR
|
||||
pwd
|
||||
mkdir -pv $RELEASE_DIR
|
||||
|
||||
echo "*** Get Version ***"
|
||||
grep 'version:' pubspec.yaml | while read v_text v_number; do
|
||||
# Skip any newlines found while grepping.
|
||||
if [[ -z $v_number ]]; then
|
||||
continue
|
||||
fi
|
||||
|
||||
echo "Creating assets for version '$v_number'."
|
||||
|
||||
# Set Up Variables
|
||||
ANDROID_APK="build/app/outputs/flutter-apk/app-release.apk"
|
||||
APK_RENAME="$RELEASE_DIR/ExpenseTracker_$v_number.apk"
|
||||
LINUX_BUNDLE="build/linux/x64/release/bundle"
|
||||
BUNDLE_RENAME="LinuxBundle_$v_number"
|
||||
|
||||
# Build Android App
|
||||
echo -e "\n*** Android APK ***"
|
||||
rm -v "$APK_RENAME"
|
||||
flutter build apk
|
||||
mv -v $ANDROID_APK "$APK_RENAME"
|
||||
ls -sh "$APK_RENAME"
|
||||
|
||||
# Build Linux Project
|
||||
echo -e "\n*** Linux Bundle ***"
|
||||
rm -rv "$RELEASE_DIR/$BUNDLE_RENAME"*
|
||||
flutter build linux
|
||||
mv -v $LINUX_BUNDLE "$RELEASE_DIR/$BUNDLE_RENAME"
|
||||
cd $RELEASE_DIR
|
||||
zip -r $BUNDLE_RENAME.zip $BUNDLE_RENAME
|
||||
rm -rv $BUNDLE_RENAME
|
||||
ls -sh $BUNDLE_RENAME.zip
|
||||
|
||||
# Only one version should be found, but just in case, only use the top one!
|
||||
break
|
||||
done
|
@ -26,7 +26,7 @@ class DatabaseHelper {
|
||||
|
||||
Future<Database> _initDatabase() async {
|
||||
Directory documentsDirectory = await getApplicationDocumentsDirectory();
|
||||
String path = join(documentsDirectory.path, "com_hyperling_expense.db");
|
||||
String path = join(documentsDirectory.path, "ExpenseTracker.sqlite.db");
|
||||
return await openDatabase(
|
||||
path,
|
||||
version: 2,
|
||||
|
@ -27,7 +27,7 @@ void main() {
|
||||
if (testing) {
|
||||
() async {
|
||||
Directory documentsDirectory = await getApplicationDocumentsDirectory();
|
||||
String path = join(documentsDirectory.path, 'com_hyperling_expense.db');
|
||||
String path = join(documentsDirectory.path, 'ExpenseTracker.sqlite.db');
|
||||
await deleteDatabase(path);
|
||||
}();
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
// Local
|
||||
import 'package:flutter_expense_tracker/models/item_type.dart';
|
||||
import '/models/item_type.dart';
|
||||
|
||||
import '/models/tracked_item.dart';
|
||||
import '/models/frequency.dart';
|
||||
|
@ -1,5 +1,5 @@
|
||||
// Local
|
||||
import 'package:flutter_expense_tracker/models/item_type.dart';
|
||||
import '/models/item_type.dart';
|
||||
|
||||
import '/models/frequency.dart';
|
||||
|
||||
@ -37,17 +37,19 @@ abstract class TrackedItem {
|
||||
}
|
||||
|
||||
Map<String, dynamic> toMap() {
|
||||
return frequency == null ? {
|
||||
'id': id,
|
||||
'name': name,
|
||||
'amount': amount,
|
||||
'description': description,
|
||||
} : {
|
||||
'id': id,
|
||||
'name': name,
|
||||
'amount': amount,
|
||||
'frequency': frequency!.title,
|
||||
'description': description,
|
||||
};
|
||||
return frequency == null
|
||||
? {
|
||||
'id': id,
|
||||
'name': name,
|
||||
'amount': amount,
|
||||
'description': description,
|
||||
}
|
||||
: {
|
||||
'id': id,
|
||||
'name': name,
|
||||
'amount': amount,
|
||||
'frequency': frequency!.title,
|
||||
'description': description,
|
||||
};
|
||||
}
|
||||
}
|
||||
|
@ -1,4 +1,21 @@
|
||||
// Flutter
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:url_launcher/url_launcher_string.dart';
|
||||
|
||||
_launchSite(String url) async {
|
||||
try {
|
||||
if (await canLaunchUrlString(url)) {
|
||||
await launchUrlString(
|
||||
url,
|
||||
mode: LaunchMode.externalApplication,
|
||||
);
|
||||
} else {
|
||||
throw "System does not think it can launch '$url'.";
|
||||
}
|
||||
} on Exception catch (e) {
|
||||
throw e.toString();
|
||||
}
|
||||
}
|
||||
|
||||
class HelpPage extends StatelessWidget {
|
||||
const HelpPage({
|
||||
@ -21,9 +38,24 @@ class HelpPage extends StatelessWidget {
|
||||
),
|
||||
child: Column(
|
||||
children: [
|
||||
Text("This app is meant to be a simple budgeting tool,"
|
||||
" allowing you to view your income and expenses at a high level"
|
||||
" without micro managing specific budget items or adding receipts."),
|
||||
Text(
|
||||
"\t\t This app is meant to be a simple budgeting tool,"
|
||||
" allowing you to view your income and expenses at a high"
|
||||
" level without micro managing specific budget items or"
|
||||
" adding receipts.",
|
||||
),
|
||||
Text(
|
||||
"\n\t\t Tracked items can be swiped left to right for ,"
|
||||
" Deletion or right to left for Editing. Items are sorted"
|
||||
" from highest to lowest so that the biggest impacts are"
|
||||
" always in view.",
|
||||
),
|
||||
Text(
|
||||
"\n\t\t To subscribe to app updates, install the Obtanium"
|
||||
" app, then use the URL from the Source Code button below."
|
||||
" Otherwise the app needs installed manually by downloading"
|
||||
" APKs from the Source Code /releases/ page.",
|
||||
),
|
||||
//Text("Another paragraph.")
|
||||
],
|
||||
),
|
||||
@ -41,9 +73,13 @@ class HelpPage extends StatelessWidget {
|
||||
color: theme.colorScheme.onPrimary,
|
||||
),
|
||||
child: TextButton.icon(
|
||||
onPressed: () {},
|
||||
onPressed: () {
|
||||
_launchSite(
|
||||
"https://git.hyperling.com/me/flutter-expense-tracker",
|
||||
);
|
||||
},
|
||||
icon: Icon(Icons.code),
|
||||
label: Text("Code Repository"),
|
||||
label: Text("Source Code"),
|
||||
),
|
||||
),
|
||||
),
|
||||
@ -57,7 +93,11 @@ class HelpPage extends StatelessWidget {
|
||||
color: theme.colorScheme.onPrimary,
|
||||
),
|
||||
child: TextButton.icon(
|
||||
onPressed: () {},
|
||||
onPressed: () {
|
||||
_launchSite(
|
||||
"https://hyperling.com",
|
||||
);
|
||||
},
|
||||
icon: Icon(Icons.web_asset),
|
||||
label: Text("Personal Website"),
|
||||
),
|
||||
|
@ -1,6 +1,6 @@
|
||||
// Flutter
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_expense_tracker/models/item_type.dart';
|
||||
import '/models/item_type.dart';
|
||||
import 'dart:io';
|
||||
|
||||
// Local
|
||||
@ -136,10 +136,11 @@ class _HomePageState extends State<HomePage> {
|
||||
child: Center(child: page),
|
||||
);
|
||||
|
||||
Widget? drawer, body;
|
||||
Widget? drawer;
|
||||
Widget body;
|
||||
if (Platform.isAndroid || Platform.isIOS) {
|
||||
drawer = navigation;
|
||||
body = main;
|
||||
body = SafeArea(child: main);
|
||||
} else {
|
||||
drawer = null;
|
||||
body = Row(
|
||||
@ -158,6 +159,9 @@ class _HomePageState extends State<HomePage> {
|
||||
drawer: drawer,
|
||||
body: body,
|
||||
floatingActionButton: floatingButton,
|
||||
extendBody: false,
|
||||
extendBodyBehindAppBar: false,
|
||||
resizeToAvoidBottomInset: true,
|
||||
);
|
||||
});
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
// Flutter
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_expense_tracker/models/item_type.dart';
|
||||
import '/models/item_type.dart';
|
||||
|
||||
// Local
|
||||
import '/db.dart';
|
||||
@ -153,6 +153,9 @@ class SummaryCardForTotals extends StatelessWidget {
|
||||
|
||||
/* Load page variables based on calculated totals. */
|
||||
switch (itemType) {
|
||||
case null:
|
||||
break;
|
||||
|
||||
case ItemType.asset:
|
||||
_assetTotal = monthlyTotal;
|
||||
break;
|
||||
@ -169,7 +172,7 @@ class SummaryCardForTotals extends StatelessWidget {
|
||||
|
||||
default:
|
||||
throw UnimplementedError(
|
||||
"Item type ${itemType!.title} not handled in SummaryCardForTotals!",
|
||||
"Item type ${itemType.title} not handled in SummaryCardForTotals!",
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -13,6 +13,10 @@ class SettingsPage extends StatelessWidget {
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Placeholder();
|
||||
return Center(
|
||||
child: Text(
|
||||
"No settings yet. :)",
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
// Flutter
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_expense_tracker/models/asset.dart';
|
||||
import 'package:flutter_expense_tracker/models/income.dart';
|
||||
import '/models/asset.dart';
|
||||
import '/models/income.dart';
|
||||
|
||||
// Local
|
||||
import '/models/tracked_item.dart';
|
||||
|
@ -6,6 +6,10 @@
|
||||
|
||||
#include "generated_plugin_registrant.h"
|
||||
|
||||
#include <url_launcher_linux/url_launcher_plugin.h>
|
||||
|
||||
void fl_register_plugins(FlPluginRegistry* registry) {
|
||||
g_autoptr(FlPluginRegistrar) url_launcher_linux_registrar =
|
||||
fl_plugin_registry_get_registrar_for_plugin(registry, "UrlLauncherPlugin");
|
||||
url_launcher_plugin_register_with_registrar(url_launcher_linux_registrar);
|
||||
}
|
||||
|
@ -3,6 +3,7 @@
|
||||
#
|
||||
|
||||
list(APPEND FLUTTER_PLUGIN_LIST
|
||||
url_launcher_linux
|
||||
)
|
||||
|
||||
list(APPEND FLUTTER_FFI_PLUGIN_LIST
|
||||
|
@ -7,8 +7,10 @@ import Foundation
|
||||
|
||||
import path_provider_foundation
|
||||
import sqflite_darwin
|
||||
import url_launcher_macos
|
||||
|
||||
func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
|
||||
PathProviderPlugin.register(with: registry.registrar(forPlugin: "PathProviderPlugin"))
|
||||
SqflitePlugin.register(with: registry.registrar(forPlugin: "SqflitePlugin"))
|
||||
UrlLauncherPlugin.register(with: registry.registrar(forPlugin: "UrlLauncherPlugin"))
|
||||
}
|
||||
|
BIN
media/icon_v001.png
Normal file
After Width: | Height: | Size: 35 KiB |
BIN
media/icon_v001.xcf
Normal file
BIN
media/icon_v001_round.png
Normal file
After Width: | Height: | Size: 42 KiB |
BIN
media/icon_v002.png
Normal file
After Width: | Height: | Size: 45 KiB |
BIN
media/icon_v002.xcf
Normal file
BIN
media/icon_v002_round.png
Normal file
After Width: | Height: | Size: 48 KiB |
BIN
media/icon_v003.png
Normal file
After Width: | Height: | Size: 28 KiB |
BIN
media/icon_v003.xcf
Normal file
BIN
media/icon_v003_round.png
Normal file
After Width: | Height: | Size: 35 KiB |
113
pubspec.lock
@ -53,10 +53,10 @@ packages:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: ffi
|
||||
sha256: "16ed7b077ef01ad6170a3d0c57caa4a112a38d7a2ed5602e0aca9ca6f3d98da6"
|
||||
sha256: "289279317b4b16eb2bb7e271abccd4bf84ec9bdcbe999e278a94b804f5630418"
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "2.1.3"
|
||||
version: "2.1.4"
|
||||
flutter:
|
||||
dependency: "direct main"
|
||||
description: flutter
|
||||
@ -75,6 +75,11 @@ packages:
|
||||
description: flutter
|
||||
source: sdk
|
||||
version: "0.0.0"
|
||||
flutter_web_plugins:
|
||||
dependency: transitive
|
||||
description: flutter
|
||||
source: sdk
|
||||
version: "0.0.0"
|
||||
leak_tracker:
|
||||
dependency: transitive
|
||||
description:
|
||||
@ -151,10 +156,10 @@ packages:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: path_provider_android
|
||||
sha256: "4adf4fd5423ec60a29506c76581bc05854c55e3a0b72d35bb28d661c9686edf2"
|
||||
sha256: "0ca7359dad67fd7063cb2892ab0c0737b2daafd807cf1acecd62374c8fae6c12"
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "2.2.15"
|
||||
version: "2.2.16"
|
||||
path_provider_foundation:
|
||||
dependency: transitive
|
||||
description:
|
||||
@ -220,42 +225,42 @@ packages:
|
||||
dependency: "direct main"
|
||||
description:
|
||||
name: sqflite
|
||||
sha256: "2d7299468485dca85efeeadf5d38986909c5eb0cd71fd3db2c2f000e6c9454bb"
|
||||
sha256: e2297b1da52f127bc7a3da11439985d9b536f75070f3325e62ada69a5c585d03
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "2.4.1"
|
||||
version: "2.4.2"
|
||||
sqflite_android:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: sqflite_android
|
||||
sha256: "78f489aab276260cdd26676d2169446c7ecd3484bbd5fead4ca14f3ed4dd9ee3"
|
||||
sha256: "2b3070c5fa881839f8b402ee4a39c1b4d561704d4ebbbcfb808a119bc2a1701b"
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "2.4.0"
|
||||
version: "2.4.1"
|
||||
sqflite_common:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: sqflite_common
|
||||
sha256: "761b9740ecbd4d3e66b8916d784e581861fd3c3553eda85e167bc49fdb68f709"
|
||||
sha256: "84731e8bfd8303a3389903e01fb2141b6e59b5973cacbb0929021df08dddbe8b"
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "2.5.4+6"
|
||||
version: "2.5.5"
|
||||
sqflite_common_ffi:
|
||||
dependency: "direct main"
|
||||
description:
|
||||
name: sqflite_common_ffi
|
||||
sha256: "883dd810b2b49e6e8c3b980df1829ef550a94e3f87deab5d864917d27ca6bf36"
|
||||
sha256: "1f3ef3888d3bfbb47785cc1dda0dc7dd7ebd8c1955d32a9e8e9dae1e38d1c4c1"
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "2.3.4+4"
|
||||
version: "2.3.5"
|
||||
sqflite_darwin:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: sqflite_darwin
|
||||
sha256: "22adfd9a2c7d634041e96d6241e6e1c8138ca6817018afc5d443fef91dcefa9c"
|
||||
sha256: "279832e5cde3fe99e8571879498c9211f3ca6391b0d818df4e17d9fff5c6ccb3"
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "2.4.1+1"
|
||||
version: "2.4.2"
|
||||
sqflite_platform_interface:
|
||||
dependency: transitive
|
||||
description:
|
||||
@ -268,10 +273,10 @@ packages:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: sqlite3
|
||||
sha256: "35d3726fe18ab1463403a5cc8d97dbc81f2a0b08082e8173851363fcc97b6627"
|
||||
sha256: "310af39c40dd0bb2058538333c9d9840a2725ae0b9f77e4fd09ad6696aa8f66e"
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "2.7.2"
|
||||
version: "2.7.5"
|
||||
stack_trace:
|
||||
dependency: transitive
|
||||
description:
|
||||
@ -300,10 +305,10 @@ packages:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: synchronized
|
||||
sha256: "69fe30f3a8b04a0be0c15ae6490fc859a78ef4c43ae2dd5e8a623d45bfcf9225"
|
||||
sha256: "0669c70faae6270521ee4f05bffd2919892d42d1276e6c495be80174b6bc0ef6"
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "3.3.0+3"
|
||||
version: "3.3.1"
|
||||
term_glyph:
|
||||
dependency: transitive
|
||||
description:
|
||||
@ -328,6 +333,70 @@ packages:
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "1.4.0"
|
||||
url_launcher:
|
||||
dependency: "direct main"
|
||||
description:
|
||||
name: url_launcher
|
||||
sha256: "9d06212b1362abc2f0f0d78e6f09f726608c74e3b9462e8368bb03314aa8d603"
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "6.3.1"
|
||||
url_launcher_android:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: url_launcher_android
|
||||
sha256: "1d0eae19bd7606ef60fe69ef3b312a437a16549476c42321d5dc1506c9ca3bf4"
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "6.3.15"
|
||||
url_launcher_ios:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: url_launcher_ios
|
||||
sha256: "16a513b6c12bb419304e72ea0ae2ab4fed569920d1c7cb850263fe3acc824626"
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "6.3.2"
|
||||
url_launcher_linux:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: url_launcher_linux
|
||||
sha256: "4e9ba368772369e3e08f231d2301b4ef72b9ff87c31192ef471b380ef29a4935"
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "3.2.1"
|
||||
url_launcher_macos:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: url_launcher_macos
|
||||
sha256: "17ba2000b847f334f16626a574c702b196723af2a289e7a93ffcb79acff855c2"
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "3.2.2"
|
||||
url_launcher_platform_interface:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: url_launcher_platform_interface
|
||||
sha256: "552f8a1e663569be95a8190206a38187b531910283c3e982193e4f2733f01029"
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "2.3.2"
|
||||
url_launcher_web:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: url_launcher_web
|
||||
sha256: "3ba963161bd0fe395917ba881d320b9c4f6dd3c4a233da62ab18a5025c85f1e9"
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "2.4.0"
|
||||
url_launcher_windows:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: url_launcher_windows
|
||||
sha256: "3284b6d2ac454cf34f114e1d3319866fdd1e19cdc329999057e44ffe936cfa77"
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "3.1.4"
|
||||
vector_math:
|
||||
dependency: transitive
|
||||
description:
|
||||
@ -348,10 +417,10 @@ packages:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: web
|
||||
sha256: cd3543bd5798f6ad290ea73d210f423502e71900302dde696f8bff84bf89a1cb
|
||||
sha256: "868d88a33d8a87b18ffc05f9f030ba328ffefba92d6c127917a2ba740f9cfe4a"
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "1.1.0"
|
||||
version: "1.1.1"
|
||||
xdg_directories:
|
||||
dependency: transitive
|
||||
description:
|
||||
@ -361,5 +430,5 @@ packages:
|
||||
source: hosted
|
||||
version: "1.1.0"
|
||||
sdks:
|
||||
dart: ">=3.7.0-0 <4.0.0"
|
||||
flutter: ">=3.24.0"
|
||||
dart: ">=3.7.0 <4.0.0"
|
||||
flutter: ">=3.27.0"
|
||||
|
@ -1,7 +1,7 @@
|
||||
name: flutter_expense_tracker
|
||||
name: expense_tracker
|
||||
description: Track recurring expenses against income and liquid assets.
|
||||
publish_to: 'none'
|
||||
version: 0.1.0
|
||||
version: 0.1.1
|
||||
|
||||
environment:
|
||||
sdk: ^3.6.1
|
||||
@ -13,6 +13,7 @@ dependencies:
|
||||
path_provider: ^2.1.5
|
||||
sqflite: ^2.4.1
|
||||
sqflite_common_ffi: ^2.3.4+4
|
||||
url_launcher: ^6.3.1
|
||||
|
||||
dev_dependencies:
|
||||
flutter_test:
|
||||
|
30
test/widget_test.dart
Normal file
@ -0,0 +1,30 @@
|
||||
// This is a basic Flutter widget test.
|
||||
//
|
||||
// To perform an interaction with a widget in your test, use the WidgetTester
|
||||
// utility in the flutter_test package. For example, you can send tap and scroll
|
||||
// gestures. You can also use WidgetTester to find child widgets in the widget
|
||||
// tree, read text, and verify that the values of widget properties are correct.
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
|
||||
import 'package:expense_tracker/main.dart';
|
||||
|
||||
void main() {
|
||||
testWidgets('Counter increments smoke test', (WidgetTester tester) async {
|
||||
// Build our app and trigger a frame.
|
||||
await tester.pumpWidget(const MainApp());
|
||||
|
||||
// Verify that our counter starts at 0.
|
||||
expect(find.text('0'), findsOneWidget);
|
||||
expect(find.text('1'), findsNothing);
|
||||
|
||||
// Tap the '+' icon and trigger a frame.
|
||||
await tester.tap(find.byIcon(Icons.add));
|
||||
await tester.pump();
|
||||
|
||||
// Verify that our counter has incremented.
|
||||
expect(find.text('0'), findsNothing);
|
||||
expect(find.text('1'), findsOneWidget);
|
||||
});
|
||||
}
|
@ -6,6 +6,9 @@
|
||||
|
||||
#include "generated_plugin_registrant.h"
|
||||
|
||||
#include <url_launcher_windows/url_launcher_windows.h>
|
||||
|
||||
void RegisterPlugins(flutter::PluginRegistry* registry) {
|
||||
UrlLauncherWindowsRegisterWithRegistrar(
|
||||
registry->GetRegistrarForPlugin("UrlLauncherWindows"));
|
||||
}
|
||||
|
@ -3,6 +3,7 @@
|
||||
#
|
||||
|
||||
list(APPEND FLUTTER_PLUGIN_LIST
|
||||
url_launcher_windows
|
||||
)
|
||||
|
||||
list(APPEND FLUTTER_FFI_PLUGIN_LIST
|
||||
|