1
0
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:
Nishant Srivastava
2019-10-13 02:38:58 +02:00
parent a0eb6be9a2
commit 9e7a62b80a
5 changed files with 5 additions and 2 deletions

View File

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 97 KiB

View File

@@ -74,7 +74,6 @@ class _NewTransactionState extends State<NewTransaction> {
controller: _amountController,
keyboardType: TextInputType.number,
onSubmitted: (_) => _submitData(),
// onChanged: (val) => amountInput = val,
),
Container(
height: 70,

View File

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