mirror of
https://github.com/nisrulz/flutter-examples.git
synced 2025-11-08 12:39:17 +00:00
updated examples and readme file
This commit is contained in:
@@ -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