Last active
December 14, 2022 10:48
-
-
Save febritecno/ac9bfd99656c3958d21785a7d5c7f0c3 to your computer and use it in GitHub Desktop.
Get auto responsive size without size / screenutil
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Flutter APKs & Appbundle | |
on: push | |
jobs: | |
# Build APKs | |
build_apks: | |
name: Build APKs | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Set up JDK 12 | |
uses: actions/setup-java@v2 | |
with: | |
distribution: 'adopt' | |
java-version: '12.x' | |
- name: Initialize project version | |
id: project_version | |
uses: its404/[email protected] | |
- name: Install Flutter SDK | |
uses: subosito/flutter-action@v1 | |
with: | |
channel: 'stable' | |
- name: Building APKs (Split by ABI) | |
run: flutter build apk --release --split-per-abi | |
- name: Release the APKs | |
uses: ncipollo/release-action@v1 | |
with: | |
artifacts: "build/app/outputs/flutter-apk/*.apk" | |
token: ${{ secrets.GITHUB_TOKEN }} | |
tag: v${{ steps.project_version.outputs.version_number }}-${{github.run_number}}-apks | |
name: "Built Apks ${{ steps.project_version.outputs.version_number }} Build(${{github.run_number}})" | |
# Build Appbundle | |
build_appbundle: | |
name: Build APPBUNDLE | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Set up JDK 12 | |
uses: actions/setup-java@v2 | |
with: | |
distribution: 'adopt' | |
java-version: '12.x' | |
- name: Get project version | |
id: project_version | |
uses: its404/[email protected] | |
- name: Install Flutter | |
uses: subosito/flutter-action@v1 | |
with: | |
channel: 'stable' | |
- name: Building Appbundle | |
run: flutter build appbundle | |
- name: Release Appbundle | |
uses: ncipollo/release-action@v1 | |
with: | |
artifacts: "build/app/outputs/bundle/release/*.aab" | |
token: ${{ secrets.GITHUB_TOKEN }} | |
tag: v${{ steps.project_version.outputs.version_number }}-${{github.run_number}}-appbundle | |
name: "Built Appbundle ${{ steps.project_version.outputs.version_number }} Build(${{github.run_number}})" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// https://pub.dev/packages/responsive_framework | |
// add to main.dart | |
MaterialApp | |
builder: (context, child) => ResponsiveWrapper.builder( | |
child, | |
maxWidth: 1000, | |
minWidth: 450, | |
defaultScale: true, | |
breakpoints: const [ | |
ResponsiveBreakpoint.resize(450, name: MOBILE), | |
ResponsiveBreakpoint.autoScale(800, name: TABLET), | |
ResponsiveBreakpoint.resize(1000, name: DESKTOP), | |
], | |
) |
how to set up project from selected branch (not branch main!)
- download as zip branch dev from repo (not default branch)
- git init
- git checkout -b dev
- git remote add origin https://github.com/repo.git
- git add . && git commit -m "message"
- git pull origin dev --rebase (fix no history commit)
don't clone, checkout new branch and pull from source dev directly ( nanti data yg di main akan kecampur dengan branch dev. karna headnya beda!!)
ketika kita pindah branch tanpa commit ke branch lain akan dianggap merge data (data branch lain akan ikut)
kalau data clone awal dari branch main pindah ke branch lain akan campur aduk!!
how to pull new branch from remote
git checkout -b development remotes/origin/development
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
how to pull fresh new branch from remote
git checkout -b development remotes/origin/development