Ensure project is properly named across all files.
This commit is contained in:
parent
5ec246228e
commit
bc3b3a4109
@ -1,4 +1,4 @@
|
|||||||
# flutter_expense_tracker
|
# Recurring Expense Tracker
|
||||||
|
|
||||||
Recurring expense tracker app for Android.
|
Recurring expense tracker app for Android.
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@ plugins {
|
|||||||
}
|
}
|
||||||
|
|
||||||
android {
|
android {
|
||||||
namespace = "com.hyperling.flutter_expense_tracker"
|
namespace = "com.hyperling.expense_tracker"
|
||||||
compileSdk = flutter.compileSdkVersion
|
compileSdk = flutter.compileSdkVersion
|
||||||
ndkVersion = flutter.ndkVersion
|
ndkVersion = flutter.ndkVersion
|
||||||
|
|
||||||
@ -21,7 +21,7 @@ android {
|
|||||||
|
|
||||||
defaultConfig {
|
defaultConfig {
|
||||||
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
|
// 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.
|
// You can update the following values to match your application needs.
|
||||||
// For more information, see: https://flutter.dev/to/review-gradle-config.
|
// For more information, see: https://flutter.dev/to/review-gradle-config.
|
||||||
minSdk = flutter.minSdkVersion
|
minSdk = flutter.minSdkVersion
|
||||||
|
@ -1,5 +0,0 @@
|
|||||||
package com.example.flutter_empty
|
|
||||||
|
|
||||||
import io.flutter.embedding.android.FlutterActivity
|
|
||||||
|
|
||||||
class MainActivity: FlutterActivity()
|
|
@ -1,4 +1,4 @@
|
|||||||
package com.hyperling.flutter_expense_tracker
|
package com.hyperling.expense_tracker
|
||||||
|
|
||||||
import io.flutter.embedding.android.FlutterActivity
|
import io.flutter.embedding.android.FlutterActivity
|
||||||
|
|
@ -1,5 +1,5 @@
|
|||||||
// Local
|
// Local
|
||||||
import 'package:flutter_expense_tracker/models/item_type.dart';
|
import '/models/item_type.dart';
|
||||||
|
|
||||||
import '/models/tracked_item.dart';
|
import '/models/tracked_item.dart';
|
||||||
import '/models/frequency.dart';
|
import '/models/frequency.dart';
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
// Local
|
// Local
|
||||||
import 'package:flutter_expense_tracker/models/item_type.dart';
|
import '/models/item_type.dart';
|
||||||
|
|
||||||
import '/models/frequency.dart';
|
import '/models/frequency.dart';
|
||||||
|
|
||||||
@ -37,17 +37,19 @@ abstract class TrackedItem {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Map<String, dynamic> toMap() {
|
Map<String, dynamic> toMap() {
|
||||||
return frequency == null ? {
|
return frequency == null
|
||||||
'id': id,
|
? {
|
||||||
'name': name,
|
'id': id,
|
||||||
'amount': amount,
|
'name': name,
|
||||||
'description': description,
|
'amount': amount,
|
||||||
} : {
|
'description': description,
|
||||||
'id': id,
|
}
|
||||||
'name': name,
|
: {
|
||||||
'amount': amount,
|
'id': id,
|
||||||
'frequency': frequency!.title,
|
'name': name,
|
||||||
'description': description,
|
'amount': amount,
|
||||||
};
|
'frequency': frequency!.title,
|
||||||
|
'description': description,
|
||||||
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
// Flutter
|
// Flutter
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_expense_tracker/models/item_type.dart';
|
import '/models/item_type.dart';
|
||||||
import 'dart:io';
|
import 'dart:io';
|
||||||
|
|
||||||
// Local
|
// Local
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
// Flutter
|
// Flutter
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_expense_tracker/models/item_type.dart';
|
import '/models/item_type.dart';
|
||||||
|
|
||||||
// Local
|
// Local
|
||||||
import '/db.dart';
|
import '/db.dart';
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
// Flutter
|
// Flutter
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_expense_tracker/models/asset.dart';
|
import '/models/asset.dart';
|
||||||
import 'package:flutter_expense_tracker/models/income.dart';
|
import '/models/income.dart';
|
||||||
|
|
||||||
// Local
|
// Local
|
||||||
import '/models/tracked_item.dart';
|
import '/models/tracked_item.dart';
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
name: flutter_expense_tracker
|
name: expense_tracker
|
||||||
description: Track recurring expenses against income and liquid assets.
|
description: Track recurring expenses against income and liquid assets.
|
||||||
publish_to: 'none'
|
publish_to: 'none'
|
||||||
version: 0.1.0
|
version: 0.1.0
|
||||||
|
@ -8,12 +8,12 @@
|
|||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_test/flutter_test.dart';
|
import 'package:flutter_test/flutter_test.dart';
|
||||||
|
|
||||||
import 'package:flutter_expense_tracker/main.dart';
|
import 'package:expense_tracker/main.dart';
|
||||||
|
|
||||||
void main() {
|
void main() {
|
||||||
testWidgets('Counter increments smoke test', (WidgetTester tester) async {
|
testWidgets('Counter increments smoke test', (WidgetTester tester) async {
|
||||||
// Build our app and trigger a frame.
|
// Build our app and trigger a frame.
|
||||||
await tester.pumpWidget(const MyApp());
|
await tester.pumpWidget(const MainApp());
|
||||||
|
|
||||||
// Verify that our counter starts at 0.
|
// Verify that our counter starts at 0.
|
||||||
expect(find.text('0'), findsOneWidget);
|
expect(find.text('0'), findsOneWidget);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user