Skip to content

Commit 94affc1

Browse files
committed
style: fix linter directives ordering and offset named constants
1 parent 0a4f819 commit 94affc1

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

lib/src/widgets/clock.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ class Clock extends StatelessWidget {
7777
Shadow(offset: Offset(1.5, -1.5), color: Colors.black),
7878
Shadow(offset: Offset(-1.5, 1.5), color: Colors.black),
7979
Shadow(offset: Offset(1.5, 1.5), color: Colors.black),
80-
Shadow(offset: Offset(0, 0), blurRadius: 6.0, color: Colors.black),
80+
Shadow(offset: Offset.zero, blurRadius: 6.0, color: Colors.black),
8181
];
8282

8383
return LayoutBuilder(

lib/src/widgets/game_layout.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ import 'package:lichess_mobile/src/model/settings/board_preferences.dart';
1111
import 'package:lichess_mobile/src/styles/styles.dart';
1212
import 'package:lichess_mobile/src/utils/screen.dart';
1313
import 'package:lichess_mobile/src/widgets/board.dart';
14+
import 'package:lichess_mobile/src/widgets/clock.dart';
1415
import 'package:lichess_mobile/src/widgets/move_list.dart';
1516
import 'package:lichess_mobile/src/widgets/pockets.dart';
16-
import 'package:lichess_mobile/src/widgets/clock.dart';
1717

1818
/// In crazyhouse, when displaying pockets above/below the board, add this much additional side padding to make the board smaller and avoid overflows.
1919
const _kAdditionalBoardSidePaddingForPockets = 70.0;
@@ -541,7 +541,7 @@ class _GameLayoutState extends ConsumerState<GameLayout> {
541541
Shadow(offset: Offset(1.5, -1.5), color: Colors.black),
542542
Shadow(offset: Offset(-1.5, 1.5), color: Colors.black),
543543
Shadow(offset: Offset(1.5, 1.5), color: Colors.black),
544-
Shadow(offset: Offset(0, 0), blurRadius: 6.0, color: Colors.black),
544+
Shadow(offset: Offset.zero, blurRadius: 6.0, color: Colors.black),
545545
];
546546

547547
const hudTextStyle = TextStyle(

0 commit comments

Comments
 (0)