Skip to content

Commit ee3cb72

Browse files
Fixed the sectio overflow due to hardcoding size
1 parent 09eb28e commit ee3cb72

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

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);

0 commit comments

Comments
 (0)