mirror of
https://github.com/LinwoodDev/Butterfly.git
synced 2026-03-13 09:20:32 +08:00
Butterfly App
Read more here
Technology
This app was build using flutter.
Read more about here.
For generating the *.g.dart and *.freezed.dart files use the flutter pub run build_runner build command.
Structure
The code for this app is stored in the lib directory.
lib
- actions
- api
- bloc
- cubits
- dialogs
- embed
- handlers
- l10n
- models
- services
- settings
- views
- visualizer
- widgets
- The
actionsdirectory has all shortcuts that can be used in the app. - The
apidirectory stores useful functions for the app. Some functions are separated between html (web) and io (native platforms). - The
blocdirectory stores the save system of the app. In thedocument_bloc.dartfile, you can see all handlers to the events that are defined in thedocument_event.dartfile. Thedocument_state.dartfile stores all states that the app can have. - The
cubitsdirectory stores small save systems that are not necessarily associated with the document. - The
dialogsdirectory stores all dialogs that can be opened in the app. For example the file system dialog or the open dialog. - The
embeddirectory handles all events required for the embedding mode. - The
handlersdirectory stores all gesture handlers for the painters. - The
l10ndirectory stores all the strings and translations that are used in the app. - The
modelsdirectory stores all the models that are used in the app. For example theDocumentmodel or the painters. - The
servicesdirectory defines all services that runs in the background while using the app. - The
settingsdirectory stores all the settings pages that are used in the app. - The
viewsdirectory stores all the views that are used in the main page. For example the appbar, the toolbar or the main view. - The
visualizerdirectory stores all converters between the models and the ui. - The
widgetsdirectory stores all general widget that is not specific to the app. For example theOptionButtonwidget.