Update PIN page (#2051)

* Update PIN page * Update spacers

tuxsudo committed Feb 24, 2025 at 16:46 UTC d1de481558350d5807a4e4e60c9b6b8d36cbc79a
1 file changed +7 -7
lib/src/screens/pin_code/pin_code_widget.dart
+7 -7
@@ -136,7 +136,7 @@ class PinCodeState<T extends PinCodeWidget> extends State<T> {
136 },
137 child: Container(
138 color: Theme.of(context).colorScheme.background,
139 - padding: EdgeInsets.only(left: 40.0, right: 40.0, bottom: 40.0),
139 + padding: EdgeInsets.only(left: 40.0, right: 40.0, bottom: 60.0),
140 child: Column(
141 children: <Widget>[
142 Spacer(flex: 2),
@@ -146,7 +146,7 @@ class PinCodeState<T extends PinCodeWidget> extends State<T> {
146 fontWeight: FontWeight.w500,
147 color:
148 Theme.of(context).extension<CakeTextTheme>()!.titleColor)),
149 - Spacer(flex: 3),
149 + Spacer(flex: 8),
150 Container(
151 width: 180,
152 child: Row(
@@ -168,7 +168,7 @@ class PinCodeState<T extends PinCodeWidget> extends State<T> {
168 }),
169 ),
170 ),
171 - Spacer(flex: 2),
171 + Spacer(flex: 3),
172 if (widget.hasLengthSwitcher) ...[
173 TextButton(
174 onPressed: () {
@@ -204,8 +204,8 @@ class PinCodeState<T extends PinCodeWidget> extends State<T> {
204 childAspectRatio: _aspectRatio,
205 physics: const NeverScrollableScrollPhysics(),
206 children: List.generate(12, (index) {
207 - const double marginRight = 15;
208 - const double marginLeft = 15;
207 + const double marginRight = 8;
208 + const double marginLeft = 8;
209
210 if (index == 9) {
211 // Empty container
@@ -243,12 +243,12 @@ class PinCodeState<T extends PinCodeWidget> extends State<T> {
243 key: ValueKey('pin_code_button_${index}_key'),
244 onPressed: () => _push(index),
245 style: TextButton.styleFrom(
246 - backgroundColor: Theme.of(context).colorScheme.background,
246 + backgroundColor: Theme.of(context).cardColor,
247 shape: CircleBorder(),
248 ),
249 child: Text('$index',
250 style: TextStyle(
251 - fontSize: 30.0,
251 + fontSize: 25.0,
252 fontWeight: FontWeight.w600,
253 color: Theme.of(context).extension<CakeTextTheme>()!.titleColor)),
254 ),