diff --git a/README.md b/README.md index fdaf9db..681e026 100644 --- a/README.md +++ b/README.md @@ -47,6 +47,7 @@ Lookup Links: [[Setup Flutter](https://flutter.io/setup/)] [[Widgets Catalog](ht 1. [Tip Calculator](/tip_calculator) [![download](img/ic_download.png)](https://kinolien.github.com/gitzip/?download=https://github.com/nisrulz/flutter-examples/tree/master/tip_calculator) 2. [Expense Planner](/expense_planner) [![download](img/ic_download.png)](https://kinolien.github.com/gitzip/?download=https://github.com/nisrulz/flutter-examples/tree/master/expense_planner) +2. [Notes App](/using_firebase_db) [![download](img/ic_download.png)](https://kinolien.github.com/gitzip/?download=https://github.com/nisrulz/flutter-examples/tree/master/using_firebase_db) # Get packages for all flutter projects diff --git a/expense_planner/README.md b/expense_planner/README.md index 33c5ce0..8da9633 100644 --- a/expense_planner/README.md +++ b/expense_planner/README.md @@ -2,6 +2,8 @@ A simple app with a beautiful UI for managing daily expenses. + + ## Getting Started This project is a starting point for a Flutter application. diff --git a/expense_planner/demo_img.png b/expense_planner/demo_img.png new file mode 100644 index 0000000..25e4e0c Binary files /dev/null and b/expense_planner/demo_img.png differ diff --git a/expense_planner/lib/widgets/new_transaction.dart b/expense_planner/lib/widgets/new_transaction.dart index 45419bf..ab90e2c 100644 --- a/expense_planner/lib/widgets/new_transaction.dart +++ b/expense_planner/lib/widgets/new_transaction.dart @@ -74,7 +74,6 @@ class _NewTransactionState extends State { controller: _amountController, keyboardType: TextInputType.number, onSubmitted: (_) => _submitData(), - // onChanged: (val) => amountInput = val, ), Container( height: 70, diff --git a/expense_planner/lib/widgets/user_transactions.dart b/expense_planner/lib/widgets/user_transactions.dart index 6ddc1dc..d6be591 100644 --- a/expense_planner/lib/widgets/user_transactions.dart +++ b/expense_planner/lib/widgets/user_transactions.dart @@ -10,6 +10,7 @@ class UserTransactions extends StatefulWidget { } class _UserTransactionsState extends State { + Function deleteTx; final List _userTransactions = [ Transaction( id: 't1', @@ -43,7 +44,7 @@ class _UserTransactionsState extends State { return Column( children: [ NewTransaction(_addNewTransaction), - TransactionList(_userTransactions), + TransactionList(_userTransactions, deleteTx()), ], ); }