@@ -155,7 +155,7 @@ class PuzzleViewLayout extends StatelessWidget {
155
155
),
156
156
ResponsiveGap (large: 32 ),
157
157
SudokuInputView (),
158
- SizedBox (height: 32 ),
158
+ SizedBox (height: 8 ),
159
159
InputEraseViewForLargeLayout (),
160
160
],
161
161
),
@@ -227,30 +227,44 @@ class InputEraseViewForLargeLayout extends StatelessWidget {
227
227
@override
228
228
Widget build (BuildContext context) {
229
229
final l10n = context.l10n;
230
+ final theme = Theme .of (context);
231
+
232
+ const gradient = LinearGradient (
233
+ colors: [
234
+ SudokuColors .darkPurple,
235
+ SudokuColors .darkPink,
236
+ ],
237
+ begin: Alignment .bottomLeft,
238
+ end: Alignment .topRight,
239
+ );
230
240
231
241
return GestureDetector (
232
242
onTap: () => context.read <PuzzleBloc >().add (const SudokuInputErased ()),
233
243
child: SizedBox (
234
- width: SudokuInputSize .large * 3 ,
235
- height: 56 ,
244
+ width: SudokuInputSize .large - 16 ,
245
+ height: SudokuInputSize .large - 16 ,
246
+ // height: 56,
236
247
child: DecoratedBox (
237
248
decoration: BoxDecoration (
238
- borderRadius: BorderRadius .circular (14 ),
239
- gradient: const LinearGradient (
240
- colors: [
241
- SudokuColors .darkPurple,
242
- SudokuColors .darkPink,
243
- ],
244
- begin: Alignment .bottomLeft,
245
- end: Alignment .topRight,
249
+ borderRadius: BorderRadius .circular (12 ),
250
+ border: Border .all (
251
+ color: theme.dividerColor,
252
+ width: 1.4 ,
246
253
),
247
254
),
248
255
child: Center (
249
- child: Text (
250
- l10n.eraseInputButtonText,
251
- textAlign: TextAlign .center,
252
- style: SudokuTextStyle .button.copyWith (
253
- color: Colors .white,
256
+ child: ShaderMask (
257
+ blendMode: BlendMode .srcIn,
258
+ shaderCallback: (bounds) => gradient.createShader (
259
+ Rect .fromLTWH (0 , 0 , bounds.width, bounds.height),
260
+ ),
261
+ child: Text (
262
+ l10n.eraseInputButtonText,
263
+ textAlign: TextAlign .center,
264
+ style: SudokuTextStyle .button.copyWith (
265
+ fontWeight: SudokuFontWeight .semiBold,
266
+ fontSize: 26 ,
267
+ ),
254
268
),
255
269
),
256
270
),
0 commit comments