Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into feat/share/share-social
Browse files Browse the repository at this point in the history
  • Loading branch information
AyadLaouissi committed Apr 24, 2024
2 parents 238531d + e16aca4 commit aeaaa89
Show file tree
Hide file tree
Showing 10 changed files with 13 additions and 5 deletions.
7 changes: 6 additions & 1 deletion lib/crossword2/view/crossword2_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,12 @@ class Crossword2View extends StatelessWidget {
return CrosswordLayoutScope(
data: CrosswordLayoutData.fromConfiguration(
configuration: configuration,
cellSize: theme.io.wordInput.secondary.empty.size,
cellSize: Size(
theme.io.wordInput.secondary.empty.size.width +
theme.io.wordInput.secondary.padding.horizontal,
theme.io.wordInput.secondary.empty.size.height +
theme.io.wordInput.secondary.padding.vertical,
),
),
child: DefaultTransformationController(
child: CrosswordInteractiveViewer(
Expand Down
5 changes: 4 additions & 1 deletion lib/crossword2/widgets/crossword_letter.dart
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,10 @@ class CrosswordLetter extends StatelessWidget {
onTap: () => _onTap(context),
child: SizedBox.fromSize(
size: crosswordData.cellSize,
child: IoCrosswordLetter(data.character, style: style),
child: Padding(
padding: theme.io.wordInput.secondary.padding,
child: IoCrosswordLetter(data.character, style: style),
),
),
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,11 +122,11 @@ class IoCrosswordTheme {
color: letterTheme.empty.backgroundColor,
width: 1.74,
);
const size = Size.square(48);
const size = Size.square(53);
final backgroundColor = letterTheme.empty.backgroundColor;

return IoWordInputStyle(
padding: EdgeInsets.zero,
padding: const EdgeInsets.all(1.4),
empty: IoWordInputCharacterFieldStyle(
backgroundColor: backgroundColor,
border: Border.all(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ class IoCrosswordLetter extends StatelessWidget {

return DecoratedBox(
decoration: BoxDecoration(
border: style.border,
color: style.backgroundColor,
backgroundBlendMode: BlendMode.clear,
),
child: data == null
? null
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit aeaaa89

Please sign in to comment.