From 2f1f549e97212a7661185081b257f600b8702867 Mon Sep 17 00:00:00 2001 From: pyrossh Date: Fri, 31 May 2024 21:29:41 +0530 Subject: [PATCH] fix models --- lib/models.dart | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/models.dart b/lib/models.dart index fbaf46ea..f4fa057e 100644 --- a/lib/models.dart +++ b/lib/models.dart @@ -77,11 +77,11 @@ List parseBible(String bibleName, String text) { continue; } final arr = line.split("|"); - final book = int.parse(arr[0])-1; - final chapter = int.parse(arr[1])-1; - final verseNo = int.parse(arr[2])-1; - final heading = ""; - final verseText = arr.sublist(3, arr.length).join("|"); + final book = int.parse(arr[0]); + final chapter = int.parse(arr[1]); + final verseNo = int.parse(arr[2]); + final heading = arr[3]; + final verseText = arr.sublist(4, arr.length).join("|"); if (books.length < book + 1) { books.add( Book(