Skip to content

Commit

Permalink
fix novel selection
Browse files Browse the repository at this point in the history
  • Loading branch information
Notsfsssf committed Sep 3, 2023
1 parent 57f945d commit e7a7c58
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 16 deletions.
1 change: 0 additions & 1 deletion android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_MEDIA_IMAGES"/>
<uses-permission android:name="com.android.vending.BILLING" />

<queries>
Expand Down
21 changes: 7 additions & 14 deletions lib/page/novel/viewer/novel_viewer.dart
Original file line number Diff line number Diff line change
Expand Up @@ -311,20 +311,13 @@ class _NovelViewerPageState extends State<NovelViewerPage> {
return _buildSelectionMenu(
editableTextState, context);
},
child: RichText(
selectionRegistrar:
SelectionContainer.maybeOf(context),
text: TextSpan(
text: '',
style: _textStyle,
children: [
for (var span
in _novelSpansGenerator.buildSpans(
context,
_novelStore
.novelTextResponse!.novelText))
span
])),
child: Text.rich(
TextSpan(text: '', style: _textStyle, children: [
for (var span in _novelSpansGenerator.buildSpans(
context,
_novelStore.novelTextResponse!.novelText))
span
])),
),
),
Container(
Expand Down
2 changes: 1 addition & 1 deletion macos/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -121,4 +121,4 @@ SPEC CHECKSUMS:

PODFILE CHECKSUM: 9ebaf0ce3d369aaa26a9ea0e159195ed94724cf3

COCOAPODS: 1.11.3
COCOAPODS: 1.12.1

0 comments on commit e7a7c58

Please sign in to comment.