You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> * : <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>
37
19
38
20
<b>SMALL DEMO :</b><br>
39
21
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