BrightUI
BrightUI is a Flutter module that contains UI elements/widgets that all of our Flutter apps use.
How to add BrightServices to existing Flutter app:
- Add
flutter_bright_ui
as a submodule to your project by running the following command in the root of your project:
git submodule add git@github.com:brighthr/flutter_bright_ui.git
- Update your project's
.gitmodules
file to relative path to submodule:
[submodule "flutter_bright_ui"]
path = flutter_bright_ui
url = ../flutter_bright_ui.git
- Pull the submodule into your project:
git submodule update --remote
- In order to pull a specific branch or tag you need to navigate to the submodule and fetch it manually.
In this example we are pulling a tag of version 1.2.0
:
# Navigate to submodule directory within your project
cd flutter_bright_ui
git fetch
git checkout 1.2.0
git pull
flutter pub get
Useful information on working with submodules can be found here: https://devconnected.com/how-to-add-and-update-git-submodules/
- Update pubspec.yml in your project to include a reference:
...
dependencies:
flutter:
sdk: flutter
...
flutter_bright_ui:
path: ./flutter_bright_ui
...
Pipelines:
We have one pipeline names tests.yaml
that runs unit tests and uploads a code coverage report to CodeCov
Libraries
- cards/document_card/document_card
- cards/document_card/document_card_subtitle
- cards/document_card/document_card_thumbnail
- cards/document_card/document_card_title
- common/common_app_bar
- common/common_loading_state
- common/common_no_search_results
- common/common_search_bar
- common/search_bar_filter_icon
- empty_state/empty_state
- flutter_bright_ui
- images/bright_network_image
- misc/cached_error_type
- misc/colours
- misc/file_type_helper
- misc/image_cacher
- models/industry_filter
- sliver_search_bar/filter_chips_animator
- sliver_search_bar/industry_filter_chips
- sliver_search_bar/sliver_search_bar