Skip to content

Commit 69f4e2e

Browse files
authored
Edited out extra technical details to be brief
1 parent 932dd2e commit 69f4e2e

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

README.md

-18
Original file line numberDiff line numberDiff line change
@@ -16,24 +16,6 @@ https://cdli.ucla.edu/cdlitablet_android/fetchdata.php<br><br>
1616
<img src="./CDLI_ULTRA_UPDATE_JSONFETCH.jpg">
1717

1818
<b>Source</b> : My brain + draw.io<br>
19-
20-
> <b>Note</b> :<br>
21-
> *​ ​: <i>Problem</i> -> ​ Here we are ​ not​ passing the date(or any attribute that uniquely
22-
identifies an entry) of the tapped item to CuneiformInfoPage() to display that
23-
entry’s info. Because if we do that, we’d once again call the API to fetch the data
24-
of the tapped item, and since async functions are time consuming, we should
25-
avoid them as much as possible.<br>
26-
<i>Solution</i> -> ​ Hence, what we can do is, we directly pass the tapped object
27-
itself to the CuneiformInfoPage(), so we can directly access the attribute value of
28-
the tapped object using the dot operator. Here we don’t need to call the API
29-
again to fetch data.<br>
30-
> [1] : ​ This class is present inside Cuneiform_Collection_Page.dart file, it’s job is to
31-
fetch the ‘thumbnail’ and ‘date’ from the json array, and display them in form of
32-
GridView.<br>
33-
> [2] : ​ This class is present inside the Cuneiform_Data.dart file (which stores our
34-
models), its job is to hold a Dart list of CuneiformsData to be displayed.<br>
35-
> [3] : ​ This class is present inside Cuneiform_Info_Page.dart file, it’s job is to
36-
display ‘url’, ’title’, ‘blurb’ and ‘description’ of the tapped item.<br><br>
3719

3820
<b>SMALL DEMO :</b><br>
3921
The current CDLI mobile applications do not have a welcome screen, so I thought it could be one of the new features to add a new route which would include everything that the app contains, but in a brief manner. Due to this, user can quickly absorb what the app is all about.<br>

0 commit comments

Comments
 (0)