Thank you for your interest in contributing to Flutter's first UI library ~ Modular UI ! This guide will help you get started.
- Run
flutter create .
inside the project folder to generate any necessary files - Go inside project root and run
flutter packages pub global activate --source path .
and export the PATH if necessary. - Now you can import it locally on your project and you are now able to make changes and test locally
dependencies:
modular_ui:
path: <replace_with_cloned_repo_location>
import 'package:modular_ui/modular_ui.dart';
- Flutter SDK needs to be installed
Click on the "Fork" button on the top right corner of the repository to create your fork.
Clone the repository to your local machine using the following command:
git clone https://github.com/opxica/modular-ui.git
git checkout development
git checkout -b <issue-number>
Create all the necessary changes in your branch itself.
To test ModularUI locally while developing, you can follow these steps:
-
Link the library to your Flutter project:
- In your project, run
flutter pub get
to ensure all dependencies are resolved. - Run
flutter pub global activate --source path <path_to_library>
to make your library available globally. - In your Flutter project, run
flutter pub get
to fetch the local version of your library.
- In your project, run
-
Import and use the library in your Flutter project:
-
In your Flutter project, you can now import your library as if it were any other package:
import 'package:modular_ui/modular_ui.dart';
-
-
Update your library code:
- As you make changes to ModularUI, you can test them in your Flutter project by running it and checking the changes.
-
Commit your changes and push them to your fork:
git add . git commit -m "Brief description of changes" git push origin issue-name
-
Open a pull request against the
development
branch of the original repository. -
Provide a clear and concise title and description for your pull request.
-
Wait for the maintainers to review and merge your changes.