Skip to content

Commit 3705081

Browse files
authored
Merge pull request JideGuru#41 from parthpanchal123/fix-booksection-overflow
Fix book-section overflow error
2 parents 2145386 + ee3cb72 commit 3705081

File tree

3 files changed

+28
-31
lines changed

3 files changed

+28
-31
lines changed

lib/components/description_text.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class _DescriptionTextWidgetState extends State<DescriptionTextWidget> {
3333
return Container(
3434
child: secondHalf.isEmpty
3535
? Text(
36-
'${flag ? (firstHalf + '...') : (firstHalf + secondHalf)}'
36+
'${flag ? (firstHalf) : (firstHalf + secondHalf)}'
3737
.replaceAll(r'\n', '\n')
3838
.replaceAll(r'\r', '')
3939
.replaceAll(r"\'", "'"),

lib/views/details/details.dart

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,6 @@ class _DetailsState extends State<Details> {
109109

110110
_buildImageTitleSection(DetailsProvider detailsProvider) {
111111
return Container(
112-
height: 200.0,
113112
child: Row(
114113
mainAxisSize: MainAxisSize.max,
115114
crossAxisAlignment: CrossAxisAlignment.start,
@@ -232,7 +231,8 @@ class _DetailsState extends State<Details> {
232231
Map dl = dlList[0];
233232
String path = dl['path'];
234233

235-
List locators = await LocatorDB().getLocator(widget.entry.id.t.toString());
234+
List locators =
235+
await LocatorDB().getLocator(widget.entry.id.t.toString());
236236

237237
EpubViewer.setConfig(
238238
identifier: 'androidBook',
@@ -241,12 +241,9 @@ class _DetailsState extends State<Details> {
241241
enableTts: false,
242242
allowSharing: true,
243243
);
244-
EpubViewer.open(
245-
path,
246-
lastLocation: locators.isNotEmpty
247-
? EpubLocator.fromJson(locators[0])
248-
: null
249-
);
244+
EpubViewer.open(path,
245+
lastLocation:
246+
locators.isNotEmpty ? EpubLocator.fromJson(locators[0]) : null);
250247
EpubViewer.locatorStream.listen((event) async {
251248
// Get locator here
252249
Map json = jsonDecode(event);

pubspec.lock

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ packages:
77
name: async
88
url: "https://pub.dartlang.org"
99
source: hosted
10-
version: "2.5.0-nullsafety"
10+
version: "2.4.2"
1111
boolean_selector:
1212
dependency: transitive
1313
description:
1414
name: boolean_selector
1515
url: "https://pub.dartlang.org"
1616
source: hosted
17-
version: "2.1.0-nullsafety"
17+
version: "2.0.0"
1818
cached_network_image:
1919
dependency: "direct main"
2020
description:
@@ -28,28 +28,28 @@ packages:
2828
name: characters
2929
url: "https://pub.dartlang.org"
3030
source: hosted
31-
version: "1.1.0-nullsafety.2"
31+
version: "1.0.0"
3232
charcode:
3333
dependency: transitive
3434
description:
3535
name: charcode
3636
url: "https://pub.dartlang.org"
3737
source: hosted
38-
version: "1.2.0-nullsafety"
38+
version: "1.1.3"
3939
clock:
4040
dependency: transitive
4141
description:
4242
name: clock
4343
url: "https://pub.dartlang.org"
4444
source: hosted
45-
version: "1.1.0-nullsafety"
45+
version: "1.0.1"
4646
collection:
4747
dependency: transitive
4848
description:
4949
name: collection
5050
url: "https://pub.dartlang.org"
5151
source: hosted
52-
version: "1.15.0-nullsafety.2"
52+
version: "1.14.13"
5353
convert:
5454
dependency: transitive
5555
description:
@@ -112,7 +112,7 @@ packages:
112112
name: fake_async
113113
url: "https://pub.dartlang.org"
114114
source: hosted
115-
version: "1.1.0-nullsafety"
115+
version: "1.1.0"
116116
file:
117117
dependency: transitive
118118
description:
@@ -197,14 +197,14 @@ packages:
197197
name: matcher
198198
url: "https://pub.dartlang.org"
199199
source: hosted
200-
version: "0.12.10-nullsafety"
200+
version: "0.12.8"
201201
meta:
202202
dependency: transitive
203203
description:
204204
name: meta
205205
url: "https://pub.dartlang.org"
206206
source: hosted
207-
version: "1.3.0-nullsafety.2"
207+
version: "1.1.8"
208208
nested:
209209
dependency: transitive
210210
description:
@@ -225,7 +225,7 @@ packages:
225225
name: path
226226
url: "https://pub.dartlang.org"
227227
source: hosted
228-
version: "1.8.0-nullsafety"
228+
version: "1.7.0"
229229
path_provider:
230230
dependency: "direct main"
231231
description:
@@ -274,7 +274,7 @@ packages:
274274
name: petitparser
275275
url: "https://pub.dartlang.org"
276276
source: hosted
277-
version: "3.1.0"
277+
version: "3.0.4"
278278
platform:
279279
dependency: transitive
280280
description:
@@ -356,7 +356,7 @@ packages:
356356
name: source_span
357357
url: "https://pub.dartlang.org"
358358
source: hosted
359-
version: "1.8.0-nullsafety"
359+
version: "1.7.0"
360360
sqflite:
361361
dependency: transitive
362362
description:
@@ -370,21 +370,21 @@ packages:
370370
name: stack_trace
371371
url: "https://pub.dartlang.org"
372372
source: hosted
373-
version: "1.10.0-nullsafety"
373+
version: "1.9.5"
374374
stream_channel:
375375
dependency: transitive
376376
description:
377377
name: stream_channel
378378
url: "https://pub.dartlang.org"
379379
source: hosted
380-
version: "2.1.0-nullsafety"
380+
version: "2.0.0"
381381
string_scanner:
382382
dependency: transitive
383383
description:
384384
name: string_scanner
385385
url: "https://pub.dartlang.org"
386386
source: hosted
387-
version: "1.1.0-nullsafety"
387+
version: "1.0.5"
388388
synchronized:
389389
dependency: transitive
390390
description:
@@ -398,21 +398,21 @@ packages:
398398
name: term_glyph
399399
url: "https://pub.dartlang.org"
400400
source: hosted
401-
version: "1.2.0-nullsafety"
401+
version: "1.1.0"
402402
test_api:
403403
dependency: transitive
404404
description:
405405
name: test_api
406406
url: "https://pub.dartlang.org"
407407
source: hosted
408-
version: "0.2.19-nullsafety"
408+
version: "0.2.17"
409409
typed_data:
410410
dependency: transitive
411411
description:
412412
name: typed_data
413413
url: "https://pub.dartlang.org"
414414
source: hosted
415-
version: "1.3.0-nullsafety.2"
415+
version: "1.2.0"
416416
uuid:
417417
dependency: "direct main"
418418
description:
@@ -426,21 +426,21 @@ packages:
426426
name: vector_math
427427
url: "https://pub.dartlang.org"
428428
source: hosted
429-
version: "2.1.0-nullsafety.2"
429+
version: "2.0.8"
430430
xdg_directories:
431431
dependency: transitive
432432
description:
433433
name: xdg_directories
434434
url: "https://pub.dartlang.org"
435435
source: hosted
436-
version: "0.1.2"
436+
version: "0.1.0"
437437
xml:
438438
dependency: transitive
439439
description:
440440
name: xml
441441
url: "https://pub.dartlang.org"
442442
source: hosted
443-
version: "4.3.0"
443+
version: "4.5.1"
444444
xml2json:
445445
dependency: "direct main"
446446
description:
@@ -449,5 +449,5 @@ packages:
449449
source: hosted
450450
version: "4.3.0"
451451
sdks:
452-
dart: ">=2.10.0-0.0.dev <2.10.0"
452+
dart: ">=2.9.0-14.0.dev <3.0.0"
453453
flutter: ">=1.17.0 <2.0.0"

0 commit comments

Comments
 (0)