Electronic Dzikr App. (C) 2024 M Tsani Qudsi
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License along with this program. If not, see http://www.gnu.org/licenses/.
This project is a starting point for a Flutter application.
-
Clone Your Fork
-
Go to your forked repository and find the green Code button.
-
Copy the URL and open your terminal.
-
Run this command:
git clone https://github.com/YOUR-USERNAME/zikr.git
(Replace
YOUR-USERNAME
with your github username.)
-
-
Install Dependencies
- Navigate into the project folder:
cd REPO-NAME
- Install Flutter dependencies by running:
flutter pub get
- Navigate into the project folder:
-
Run the App
- Connect a device or start an emulator, then run:
flutter run
- It should've work!
- Connect a device or start an emulator, then run:
This project is using slang
for easier internasionalization.
Currently, the we supports:
- English (
en
) - Indonesia (
id
)
Thank you for your interest in contributing! This guide will walk you through the steps to get started, make changes, and submit them. If you get stuck, don’t worry — just ask questions in the discussions or issue comments.
Make sure your environment for developing flutter is prepared. For help getting started with Flutter development, view the online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.
-
Fork this Repository
- Look for the Fork button on the top right corner of this page. Click it!
- This will create a personal copy of the project in your GitHub account.
-
Clone Your Fork
-
Go to your forked repository and find the green Code button.
-
Copy the URL and open your terminal.
-
Run this command:
git clone https://github.com/YOUR-USERNAME/zikr.git
(Replace
YOUR-USERNAME
with your github username.)
-
-
Install Dependencies
- Navigate into the project folder:
cd REPO-NAME
- Install Flutter dependencies by running:
flutter pub get
- Navigate into the project folder:
-
Run the App
- Connect a device or start an emulator, then run:
flutter run
- If it works, you’re ready to start contributing!
- Connect a device or start an emulator, then run:
-
Find an Issue
- Check out the Issues tab to see what needs work.
- Choose one and comment, “I’d like to work on this,” so others know you’re on it.
-
Create a Branch
-
Never work on the
main
branch directly! -
Create a new branch with a clear name, like this:
git checkout -b fix/issue-123
(Replace
123
with the issue number.)
-
-
Make Your Changes
- Write code, save files, and check that everything looks good.
-
Commit Your Changes
- Add and commit your changes with a helpful message:
git add . git commit -m "Fixed issue #123: Describe what you did here"
- Add and commit your changes with a helpful message:
- Follow the Dart style guide. If you’re not sure, just run:
flutter format .
- Make sure no warnings or errors pop up!
-
Create new translation based on
assets/i18n/zikr.i18n.yaml
- Create new file in
assets/i18n/
folder with a name ofzikr_[new_translation_set].i18n.yaml
(eg:zikr_fr.i18n.yaml
)
- Create new file in
-
Update
info.plist
- Go to
ios/Runner/info.plist
. - Find the part that looks similar like this:
<key>CFBundleLocalizations</key> <array> <string>en</string> <string>id</string> </array>
- Insert your new translation language in the array section
<key>CFBundleLocalizations</key> <array> <string>en</string> <string>id</string> <string>fr</string> </array>
- Go to
-
run
dart run slang
to generate the necessary files.- It will generate new files under
lib/gen
- It will generate new files under
-
Run Existing Tests
- Check if your code broke anything:
flutter test
-
Add Tests for New Features
- If you added a new feature, write a test for it. (Need help? Ask in discussions or check the testing guide!)
-
Push Your Branch
- Send your branch to GitHub:
git push origin fix/issue-123
-
Create a Pull Request (PR)
- Go to your fork on GitHub. You’ll see a Compare & pull request button. Click it.
- Fill out the template, linking any relevant issues (e.g., “Fixes #123”).
- Be clear about what your code does in the description.
- Wait for Feedback
- We’ll review your code and may request changes. This is normal! Just make the changes and push to the same branch.
- Merge
- Once approved, your code will be merged, and you’ll have contributed to [Your App Name]! 🎉
Got questions? Open a discussion or comment on the issue.
- Checkpoint Alarm, Zen Tone Mid High by Alexander Jauk
- Switch Sound, Switch Light 04 by Pixabay