Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD

jiu_jitsu_para_todos

a jiu-jitsu app made in flutter.

the purpose of this repository is to show and document my first experience when creating an app

i accept any constructive criticism or contribution first i would like to say that some files were not placed in the repository because they have sensitive information, however all the code that was restricted was in relation to ads in the admob or google play store settings, but it still has everything i do i did to build the app here.

home screen

1

mvc architecture

note: mvc stands for model, view and controller is a code architecture that separates code into 3 layers

  • the user interaction layer(view).
  • the data manipulation layer (model).
  • the control layer (controller).

the whole app was made using the mvc architecture the models were used to store all the quiz questions and also the wallpapers used in the future i intend to make a server to handle this and give more quality to the app but at first i wanted to kick things off with local storage because there was little data and also easier to get started. the controllers do all data control between models and views, in the quiz specifically it shuffles all the order of questions and options of each question, i also have a controller to handle the ads and id of each ad. views are every visual part of my application, but in the middle of my views there is also a bit of business rules, this was a consequence of choosing to use setstate as a reactivity, i don’t think this is a bad thing but i do want to learn how in the future manage the state in other ways, and change it in the app.

mvc structure

mvc

unitary tests

it was a novelty for me to do unit tests and as much as i messed up a lot in the beginning i also really enjoyed doing it, i have unit tests for the quiz that checks if it brought the correct questions at random and another test to see if the wallpaper controller returned the path correctly.

to run the test just use -> flutter test

test

sounds

all sounds in the app were created by me on the site -> song maker

below is how the sound when you hit a question was made:

right_answer

after making the sounds i needed to cut and make the file smaller and i did it on the website -> mp3cut

right_answer_edit

after that i already have the sound in mp3 and i just need to reduce its size further without losing quality to optimize the app, and this was done on the site -> mp3smaller

som_right_answer_edit_size

and with that the sound was 79.95% lighter and so the sound was ready to be used, this process was the same for all sounds in the app.

images

all application icons are from the website -> flaticon

some like the main icon i needed to use the gimp to tweak some things and also the white and blue band icons. the wallpapers were taken from some sites that have free images like pixabay, unsplash and some others.

i also optimized each image by reducing their size on the site -> imagemaller

imagem_edit_size

in this print, 75.03% of the image was reduced without losing quality and this helps a lot in the optimization, this process was done for all images.

clearing media

in the end, to use each image or sound, i removed all the metadata from the files to optimize, even if only a little more.
claenfiles


Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD

Comments are closed.