1.5 KiB
1.5 KiB
meta archietecture
Package structure
The repo structure follows official Package structure with slight modifications.
- put each
<FEATURE NAME>/
s infeatures/
sub-directory underui/
. test/features/
contains BDD unit tests for each feature. It focuses on pure logic, therefore will not accessView
butViewModel
andModel
.test/widget/
contains UI widget(component) tests which focus onView
from MVVM of each component.integration_test/
for integration tests. They should be volatile to follow UI layout changes.
key dependencies
- pdfrx
- packages/pdfrx/example/viewer/lib/main.dart
- When using pdfrx, developers should control view function e.g. zoom, scroll... by component of pdfrx e.g.
PdfViewer
, rather than introduce additional view. - So does overlay some widgets, they should be placed using the provided overlay builder.