Ensure project is properly named across all files.

This commit is contained in:
Hyperling 2025-03-21 10:24:46 -07:00
parent 5ec246228e
commit bc3b3a4109
13 changed files with 27 additions and 30 deletions

View File

@ -1,4 +1,4 @@
# flutter_expense_tracker
# Recurring Expense Tracker
Recurring expense tracker app for Android.

View File

@ -6,7 +6,7 @@ plugins {
}
android {
namespace = "com.hyperling.flutter_expense_tracker"
namespace = "com.hyperling.expense_tracker"
compileSdk = flutter.compileSdkVersion
ndkVersion = flutter.ndkVersion
@ -21,7 +21,7 @@ android {
defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId = "com.hyperling.flutter_expense_tracker"
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

View File

@ -1,5 +0,0 @@
package com.example.flutter_empty
import io.flutter.embedding.android.FlutterActivity
class MainActivity: FlutterActivity()

View File

@ -1,4 +1,4 @@
package com.hyperling.flutter_expense_tracker
package com.hyperling.expense_tracker
import io.flutter.embedding.android.FlutterActivity

View File

@ -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';

View File

@ -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,
};
}
}

View File

@ -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

View File

@ -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';

View File

@ -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';

View File

@ -1,4 +1,4 @@
name: flutter_expense_tracker
name: expense_tracker
description: Track recurring expenses against income and liquid assets.
publish_to: 'none'
version: 0.1.0

View File

@ -8,12 +8,12 @@
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:flutter_expense_tracker/main.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 MyApp());
await tester.pumpWidget(const MainApp());
// Verify that our counter starts at 0.
expect(find.text('0'), findsOneWidget);