mirror of
https://github.com/nisrulz/flutter-examples.git
synced 2025-07-04 09:38:28 +08:00
updated examples and readme file
This commit is contained in:
@ -47,6 +47,7 @@ Lookup Links: [[Setup Flutter](https://flutter.io/setup/)] [[Widgets Catalog](ht
|
||||
|
||||
1. [Tip Calculator](/tip_calculator) [](https://kinolien.github.com/gitzip/?download=https://github.com/nisrulz/flutter-examples/tree/master/tip_calculator)
|
||||
2. [Expense Planner](/expense_planner) [](https://kinolien.github.com/gitzip/?download=https://github.com/nisrulz/flutter-examples/tree/master/expense_planner)
|
||||
2. [Notes App](/using_firebase_db) [](https://kinolien.github.com/gitzip/?download=https://github.com/nisrulz/flutter-examples/tree/master/using_firebase_db)
|
||||
|
||||
# Get packages for all flutter projects
|
||||
|
||||
|
@ -2,6 +2,8 @@
|
||||
|
||||
A simple app with a beautiful UI for managing daily expenses.
|
||||
|
||||
<img src="demo_img.png" height="600em" />
|
||||
|
||||
## Getting Started
|
||||
|
||||
This project is a starting point for a Flutter application.
|
||||
|
BIN
expense_planner/demo_img.png
Normal file
BIN
expense_planner/demo_img.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 97 KiB |
@ -74,7 +74,6 @@ class _NewTransactionState extends State<NewTransaction> {
|
||||
controller: _amountController,
|
||||
keyboardType: TextInputType.number,
|
||||
onSubmitted: (_) => _submitData(),
|
||||
// onChanged: (val) => amountInput = val,
|
||||
),
|
||||
Container(
|
||||
height: 70,
|
||||
|
@ -10,6 +10,7 @@ class UserTransactions extends StatefulWidget {
|
||||
}
|
||||
|
||||
class _UserTransactionsState extends State<UserTransactions> {
|
||||
Function deleteTx;
|
||||
final List<Transaction> _userTransactions = [
|
||||
Transaction(
|
||||
id: 't1',
|
||||
@ -43,7 +44,7 @@ class _UserTransactionsState extends State<UserTransactions> {
|
||||
return Column(
|
||||
children: <Widget>[
|
||||
NewTransaction(_addNewTransaction),
|
||||
TransactionList(_userTransactions),
|
||||
TransactionList(_userTransactions, deleteTx()),
|
||||
],
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user