mirror of
https://github.com/smyalygames/checklist-tester.git
synced 2026-01-01 17:28:47 +01:00
feat(dissertation): add code example for modular compose functions
This commit is contained in:
@@ -102,8 +102,9 @@ Brief overview of what it is supposed to do... % TODO
|
||||
for runtime environments to be specified (in this case, Desktop and Server)
|
||||
\item Provides necessary build configurations in Gradle
|
||||
\item Planning what to implement important as Compose is designed to use modular
|
||||
components, otherwise a nested mess would happen, code harder to read
|
||||
% TODO add example
|
||||
components, otherwise a nested mess would happen, code harder to read.
|
||||
Figure~\ref{fig:compose-modular} shows example of using modular code
|
||||
from the Actions screen in project (with code omissions)
|
||||
\item Used Voyager~\cite{voyager} to handle screens
|
||||
\item Used Koin~\cite{koin} for dependency injection, to be able to get data from the
|
||||
database and VDMJ
|
||||
@@ -115,6 +116,16 @@ Brief overview of what it is supposed to do... % TODO
|
||||
\end{itemize}
|
||||
\end{itemize}
|
||||
|
||||
\begin{figure}
|
||||
\centering
|
||||
\inputminted[
|
||||
linenos,
|
||||
breaklines,
|
||||
]{kotlin}{code/compose-modular.kt}
|
||||
\caption[Compose Modular Example]{Example of modular code in Compose}
|
||||
\label{fig:compose-modular}
|
||||
\end{figure}
|
||||
|
||||
\subsection{Storing Data}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user