pickers now reset on opening

not sure if this looks too great
This commit is contained in:
Felix 2019-08-27 11:50:07 +01:00
parent c6f6917226
commit 204cd74544

View file

@ -327,6 +327,8 @@ class ReceiptPage2State extends State<ReceiptPage2> {
width: MediaQuery.of(context).size.width * 0.6, width: MediaQuery.of(context).size.width * 0.6,
child: RaisedButton( child: RaisedButton(
onPressed: () { onPressed: () {
transaction.recurring = _sampleRecurringOptions[0];
setState(() {});
showModalBottomSheet( showModalBottomSheet(
context: context, context: context,
builder: (BuildContext builder) { builder: (BuildContext builder) {
@ -395,6 +397,8 @@ class ReceiptPage2State extends State<ReceiptPage2> {
message: "Category of transaction", message: "Category of transaction",
child: RaisedButton( child: RaisedButton(
onPressed: () { onPressed: () {
transaction.category = _categories[0];
setState(() {});
showModalBottomSheet( showModalBottomSheet(
context: context, context: context,
builder: (BuildContext builder) { builder: (BuildContext builder) {