pickers now reset on opening
not sure if this looks too great
This commit is contained in:
parent
c6f6917226
commit
204cd74544
1 changed files with 4 additions and 0 deletions
|
@ -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) {
|
||||||
|
|
Reference in a new issue