i need to fix these pickers

This commit is contained in:
Felix 2019-08-20 14:13:01 +01:00
parent 49038e9adc
commit 28cd64aaee
1 changed files with 8 additions and 4 deletions

View File

@ -305,12 +305,14 @@ class ReceiptPage2State extends State<ReceiptPage2> {
height: MediaQuery.of(context).copyWith().size.height / 3, height: MediaQuery.of(context).copyWith().size.height / 3,
child: CupertinoPicker( child: CupertinoPicker(
backgroundColor: Colors.white, backgroundColor: Colors.white,
children: _sampleRecurringOptions.map((thisOption) => Text(thisOption)).toList(), children: _sampleRecurringOptions.map((thisOption) => Text(thisOption, style: TextStyle(fontSize: 30))).toList(),
onSelectedItemChanged: ((newValue) { onSelectedItemChanged: ((newValue) {
transaction.recurring = _sampleRecurringOptions[newValue]; transaction.recurring = _sampleRecurringOptions[newValue];
setState(() {}); setState(() {});
}), }),
itemExtent: 40, magnification: 1.1,
useMagnifier: true,
itemExtent: 36,
), ),
); );
}); });
@ -361,12 +363,14 @@ class ReceiptPage2State extends State<ReceiptPage2> {
height: MediaQuery.of(context).copyWith().size.height / 3, height: MediaQuery.of(context).copyWith().size.height / 3,
child: CupertinoPicker( child: CupertinoPicker(
backgroundColor: Colors.white, backgroundColor: Colors.white,
children: _categories.map((thisOption) => Text(thisOption)).toList(), children: _categories.map((thisOption) => Text(thisOption, style: TextStyle(fontSize: 30),)).toList(),
onSelectedItemChanged: ((newValue) { onSelectedItemChanged: ((newValue) {
transaction.category = _categories[newValue]; transaction.category = _categories[newValue];
setState(() {}); setState(() {});
}), }),
itemExtent: 40, magnification: 1.1,
useMagnifier: true,
itemExtent: 36,
), ),
); );
}); });