Skip to content

Commit

Permalink
Remove redundant specification of text locale
Browse files Browse the repository at this point in the history
  • Loading branch information
petlyh committed Nov 24, 2024
1 parent f2f7815 commit 53bc54a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions lib/screens/sentence_details_screen.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import "package:flutter/material.dart";
import "package:flutter_riverpod/flutter_riverpod.dart";
import "package:jsdict/jp_text.dart";
import "package:jsdict/models/models.dart";
import "package:jsdict/providers/client.dart";
import "package:jsdict/widgets/copyable_furigana_text.dart";
Expand Down Expand Up @@ -59,7 +58,7 @@ class _SentenceDetails extends ConsumerWidget {
children: [
CopyableFuriganaText(
furigana: sentence.japanese,
style: const TextStyle(fontSize: 18).jp(),
style: const TextStyle(fontSize: 18),
rubyAlign: CrossAxisAlignment.start,
wrapAlign: TextAlign.start,
),
Expand Down
4 changes: 2 additions & 2 deletions lib/screens/word_details/word_details_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@ class _WordContent extends ConsumerWidget {
padding: const EdgeInsets.symmetric(vertical: 8),
child: CopyableFuriganaText(
furigana: word.word,
style: const TextStyle(fontSize: 28).jp(),
rubyStyle: const TextStyle(fontSize: 14).jp(),
style: const TextStyle(fontSize: 28),
rubyStyle: const TextStyle(fontSize: 14),
),
),
Wrap(
Expand Down

0 comments on commit 53bc54a

Please sign in to comment.