From 28cd64aaee257dea9edfb2840ee5349798e56c6d Mon Sep 17 00:00:00 2001 From: Felix Date: Tue, 20 Aug 2019 14:13:01 +0100 Subject: [PATCH] i need to fix these pickers --- lib/pages/receipt_page_2.dart | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/lib/pages/receipt_page_2.dart b/lib/pages/receipt_page_2.dart index cb7960d..c5124fa 100644 --- a/lib/pages/receipt_page_2.dart +++ b/lib/pages/receipt_page_2.dart @@ -305,12 +305,14 @@ class ReceiptPage2State extends State { height: MediaQuery.of(context).copyWith().size.height / 3, child: CupertinoPicker( backgroundColor: Colors.white, - children: _sampleRecurringOptions.map((thisOption) => Text(thisOption)).toList(), + children: _sampleRecurringOptions.map((thisOption) => Text(thisOption, style: TextStyle(fontSize: 30))).toList(), onSelectedItemChanged: ((newValue) { transaction.recurring = _sampleRecurringOptions[newValue]; setState(() {}); }), - itemExtent: 40, + magnification: 1.1, + useMagnifier: true, + itemExtent: 36, ), ); }); @@ -361,12 +363,14 @@ class ReceiptPage2State extends State { height: MediaQuery.of(context).copyWith().size.height / 3, child: CupertinoPicker( backgroundColor: Colors.white, - children: _categories.map((thisOption) => Text(thisOption)).toList(), + children: _categories.map((thisOption) => Text(thisOption, style: TextStyle(fontSize: 30),)).toList(), onSelectedItemChanged: ((newValue) { transaction.category = _categories[newValue]; setState(() {}); }), - itemExtent: 40, + magnification: 1.1, + useMagnifier: true, + itemExtent: 36, ), ); });