Compare commits
28 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1b5551a05f | ||
|
|
676d472b9e | ||
|
|
e64c93274e | ||
|
|
09fe2beb4e | ||
|
|
bf09f03127 | ||
|
|
45f3ecf70f | ||
|
|
c182fbec2b | ||
|
|
1c4b645c26 | ||
|
|
6eb25c2129 | ||
|
|
8e46ca1962 | ||
|
|
b14123a5f6 | ||
|
|
8707252850 | ||
|
|
0e9f430f07 | ||
|
|
1390fafeab | ||
|
|
75d0505c87 | ||
|
|
3ba1d913ef | ||
|
|
f5cd9fa041 | ||
|
|
bfff2ebfb9 | ||
|
|
518044b015 | ||
|
|
f1bcc8b06f | ||
|
|
16d473b8ea | ||
|
|
8318a5c3b4 | ||
|
|
449b3e3e3a | ||
|
|
ebd5a02ea8 | ||
|
|
dccd49f9fd | ||
|
|
fa3407785a | ||
|
|
2786fa0317 | ||
|
|
9b464f348f |
114
.github/workflows/builder.yml
vendored
@@ -59,73 +59,47 @@ jobs:
|
||||
path: refilc/build/app/outputs/flutter-apk/app-*-release.apk
|
||||
|
||||
|
||||
# build-ios:
|
||||
# name: Build for IOS
|
||||
# runs-on: macos-latest
|
||||
# permissions:
|
||||
# contents: read
|
||||
#
|
||||
# steps:
|
||||
# - name: Download repository
|
||||
# uses: actions/checkout@v4.2.2
|
||||
#
|
||||
# - name: Install the Apple certificate and provisioning profile
|
||||
# env:
|
||||
# BUILD_CERTIFICATE_BASE64: ${{ secrets.BUILD_CERTIFICATE_BASE64 }}
|
||||
# P12_PASSWORD: ${{ secrets.P12_PASSWORD }}
|
||||
# BUILD_PROVISION_PROFILE_BASE64: ${{ secrets.BUILD_PROVISION_PROFILE_BASE64 }}
|
||||
# KEYCHAIN_PASSWORD: ${{ secrets.KEYCHAIN_PASSWORD }}
|
||||
#
|
||||
# run: |
|
||||
# # create variables
|
||||
# CERTIFICATE_PATH=$RUNNER_TEMP/build_certificate.p12
|
||||
# PP_PATH=$RUNNER_TEMP/build_pp.mobileprovision
|
||||
# KEYCHAIN_PATH=$RUNNER_TEMP/app-signing.keychain-db
|
||||
#
|
||||
# # import certificate and provisioning profile from secrets
|
||||
# echo -n "$BUILD_CERTIFICATE_BASE64" | base64 --decode --output $CERTIFICATE_PATH
|
||||
# echo -n "$BUILD_PROVISION_PROFILE_BASE64" | base64 --decode --output $PP_PATH
|
||||
#
|
||||
# # create temporary keychain
|
||||
# security create-keychain -p "$KEYCHAIN_PASSWORD" $KEYCHAIN_PATH
|
||||
# security set-keychain-settings -lut 21600 $KEYCHAIN_PATH
|
||||
# security unlock-keychain -p "$KEYCHAIN_PASSWORD" $KEYCHAIN_PATH
|
||||
#
|
||||
# # import certificate to keychain
|
||||
# security import $CERTIFICATE_PATH -P "$P12_PASSWORD" -A -t cert -f pkcs12 -k $KEYCHAIN_PATH
|
||||
# security list-keychain -d user -s $KEYCHAIN_PATH
|
||||
#
|
||||
# # apply provisioning profile
|
||||
# mkdir -p ~/Library/MobileDevice/Provisioning\ Profiles
|
||||
# cp $PP_PATH ~/Library/MobileDevice/Provisioning\ Profiles
|
||||
#
|
||||
# - uses: subosito/flutter-action@v2.18.0
|
||||
# with:
|
||||
# flutter-version: "3.27.1"
|
||||
# channel: "stable"
|
||||
# cache: "true"
|
||||
#
|
||||
# - name: Install dependencies
|
||||
# run: |
|
||||
# chmod +x fix-pub.sh
|
||||
# bash fix-pub.sh
|
||||
#
|
||||
# - name: Building IPA
|
||||
# run: |
|
||||
# cd refilc
|
||||
# chmod +x build-ipa.sh
|
||||
# bash build-ipa.sh
|
||||
# cd ..
|
||||
#
|
||||
# - name: Upload Android Release
|
||||
# uses: actions/upload-artifact@v4.6.1
|
||||
# with:
|
||||
# name: ios-ipa
|
||||
# # refilc/build/app/outputs/flutter-apk/app-*-release.apk
|
||||
# path: refilc/build/app/outputs/ios/ipa/*.ipa
|
||||
#
|
||||
# - name: Clean up keychain and provisioning profile
|
||||
# if: ${{ always() }}
|
||||
# run: |
|
||||
# security delete-keychain $RUNNER_TEMP/app-signing.keychain-db
|
||||
# rm ~/Library/MobileDevice/Provisioning\ Profiles/build_pp.mobileprovision
|
||||
build-ios:
|
||||
name: Build for IOS
|
||||
runs-on: macos-latest
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
steps:
|
||||
- name: Download repository
|
||||
uses: actions/checkout@v4.2.2
|
||||
|
||||
- uses: subosito/flutter-action@v2.18.0
|
||||
with:
|
||||
flutter-version: "3.27.1"
|
||||
channel: "stable"
|
||||
cache: "true"
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
chmod +x fix-pub.sh
|
||||
bash fix-pub.sh
|
||||
|
||||
- name: Build
|
||||
run: |
|
||||
cd refilc
|
||||
chmod +x build-ipa.sh
|
||||
bash build-ipa.sh
|
||||
cd ..
|
||||
|
||||
- name: Create IPA
|
||||
run: |
|
||||
cd refilc
|
||||
cd build/ios/archive/Runner.xcarchive/Products/Applications
|
||||
mkdir Payload
|
||||
cp -r Runner.app Payload/
|
||||
zip -r Payload.zip Payload
|
||||
mv Payload.zip firkaapp.ipa
|
||||
cd ../../../../..
|
||||
|
||||
- name: Upload IOS Release
|
||||
uses: actions/upload-artifact@v4.6.1
|
||||
with:
|
||||
name: ios-ipa
|
||||
# refilc/build/app/outputs/flutter-apk/app-*-release.apk
|
||||
path: refilc/build/ios/archive/Runner.xcarchive/Products/Applications/*.ipa
|
||||
|
||||
@@ -2,7 +2,8 @@
|
||||
|
||||
### Nem hivatalos e-napló alkalmazás az e-KRÉTA rendszerhez - tanulóktól, tanulóknak.
|
||||
|
||||
[](https://github.com/QwIT-Development/app-legacy/releases) [](https://discord.gg/6DvjyPAw2T)
|
||||
[](https://github.com/QwIT-Development/app-legacy/releases/latest)
|
||||
[](https://discord.gg/6DvjyPAw2T)
|
||||
|
||||
### Hozzájárulás
|
||||
|
||||
|
||||
@@ -79,6 +79,7 @@ android {
|
||||
versionName flutterVersionName
|
||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||
multiDexEnabled true
|
||||
resConfigs "en"
|
||||
}
|
||||
|
||||
compileOptions {
|
||||
@@ -127,7 +128,9 @@ android {
|
||||
renderscriptDebuggable false
|
||||
pseudoLocalesEnabled false
|
||||
zipAlignEnabled true
|
||||
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
||||
crunchPngs true
|
||||
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'),
|
||||
'proguard-rules.pro'
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -56,112 +56,6 @@
|
||||
</activity>
|
||||
<meta-data android:name="flutterEmbedding" android:value="2" />
|
||||
|
||||
<!-- custom app icon thingies from here -->
|
||||
|
||||
<!-- <activity-alias
|
||||
android:label="reFilc"
|
||||
android:icon="@mipmap/ic_launcher"
|
||||
android:roundIcon="@mipmap/ic_launcher_new"
|
||||
android:name="app.firka.legacy.icon_new"
|
||||
android:exported="true"
|
||||
android:enabled="false"
|
||||
android:targetActivity="app.firka.legacy.MainActivity">
|
||||
|
||||
<meta-data
|
||||
android:name="io.flutter.embedding.android.NormalTheme"
|
||||
android:resource="@style/NormalTheme"
|
||||
/>
|
||||
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN" />
|
||||
<category android:name="android.intent.category.LAUNCHER" />
|
||||
</intent-filter>
|
||||
|
||||
</activity-alias> -->
|
||||
|
||||
<!-- <activity-alias
|
||||
android:label="reFilc"
|
||||
android:icon="@mipmap/ic_launcher"
|
||||
android:roundIcon="@mipmap/ic_launcher_2"
|
||||
android:name=".icon_2"
|
||||
android:exported="true"
|
||||
android:enabled="false"
|
||||
android:targetActivity=".MainActivity">
|
||||
|
||||
<meta-data
|
||||
android:name="io.flutter.embedding.android.NormalTheme"
|
||||
android:resource="@style/NormalTheme"
|
||||
/>
|
||||
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN" />
|
||||
<category android:name="android.intent.category.LAUNCHER" />
|
||||
</intent-filter>
|
||||
|
||||
</activity-alias> -->
|
||||
|
||||
<!-- <activity-alias
|
||||
android:label="reFilc"
|
||||
android:icon="@mipmap/ic_launcher"
|
||||
android:name=".MainActivityAlias"
|
||||
android:enabled="true"
|
||||
android:exported="true"
|
||||
android:targetActivity=".MainActivity">
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN" />
|
||||
<category android:name="android.intent.category.LAUNCHER" />
|
||||
</intent-filter>
|
||||
</activity-alias>
|
||||
<activity-alias
|
||||
android:label="reFilc"
|
||||
android:icon="@mipmap/ic_launcher"
|
||||
android:name=".MainActivityAliasrefilc_default"
|
||||
android:enabled="false"
|
||||
android:exported="true"
|
||||
android:targetActivity=".MainActivity">
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN" />
|
||||
<category android:name="android.intent.category.LAUNCHER" />
|
||||
</intent-filter>
|
||||
</activity-alias>
|
||||
<activity-alias
|
||||
android:label="reFilc"
|
||||
android:icon="@mipmap/ic_launcher"
|
||||
android:name=".MainActivityAliasrefilc_overcomplicated"
|
||||
android:enabled="false"
|
||||
android:exported="true"
|
||||
android:targetActivity=".MainActivity">
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN" />
|
||||
<category android:name="android.intent.category.LAUNCHER" />
|
||||
</intent-filter>
|
||||
</activity-alias>
|
||||
<activity-alias
|
||||
android:label="reFilc"
|
||||
android:icon="@mipmap/ic_launcher"
|
||||
android:name=".MainActivityAliasrefilc_concept"
|
||||
android:enabled="false"
|
||||
android:exported="true"
|
||||
android:targetActivity=".MainActivity">
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN" />
|
||||
<category android:name="android.intent.category.LAUNCHER" />
|
||||
</intent-filter>
|
||||
</activity-alias>
|
||||
<activity-alias
|
||||
android:label="reFilc"
|
||||
android:icon="@mipmap/ic_launcher"
|
||||
android:name=".MainActivityAliasrefilc_pride"
|
||||
android:enabled="false"
|
||||
android:exported="true"
|
||||
android:targetActivity=".MainActivity">
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN" />
|
||||
<category android:name="android.intent.category.LAUNCHER" />
|
||||
</intent-filter>
|
||||
</activity-alias> -->
|
||||
<!-- end of custom app icon thingies -->
|
||||
|
||||
<receiver android:name="app.firka.legacy.widget_timetable.WidgetTimetable"
|
||||
android:exported="true">
|
||||
<intent-filter>
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
org.gradle.jvmargs=-Xmx6G -XX:MaxMetaspaceSize=4G -XX:+HeapDumpOnOutOfMemoryError
|
||||
org.gradle.jvmargs=-Xmx6G -XX:MaxMetaspaceSize=4G -XX:+HeapDumpOnOutOfMemoryError -XX:+UseParallelGC
|
||||
android.useAndroidX=true
|
||||
android.enableJetifier=true
|
||||
org.gradle.parallel=true
|
||||
# kotlin.jvm.target.validation.mode=IGNORE
|
||||
|
Before Width: | Height: | Size: 754 KiB |
|
Before Width: | Height: | Size: 8.4 KiB |
|
Before Width: | Height: | Size: 9.4 KiB |
|
Before Width: | Height: | Size: 35 KiB |
@@ -1,3 +0,0 @@
|
||||
<svg width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M10.5 0.138916C9.18678 0.138916 7.88642 0.397574 6.67317 0.900121C5.45991 1.40267 4.35752 2.13926 3.42893 3.06785C1.55357 4.94321 0.5 7.48675 0.5 10.1389C0.5 14.5589 3.37 18.3089 7.34 19.6389C7.84 19.7189 8 19.4089 8 19.1389V17.4489C5.23 18.0489 4.64 16.1089 4.64 16.1089C4.18 14.9489 3.53 14.6389 3.53 14.6389C2.62 14.0189 3.6 14.0389 3.6 14.0389C4.6 14.1089 5.13 15.0689 5.13 15.0689C6 16.5889 7.47 16.1389 8.04 15.8989C8.13 15.2489 8.39 14.8089 8.67 14.5589C6.45 14.3089 4.12 13.4489 4.12 9.63892C4.12 8.52892 4.5 7.63892 5.15 6.92892C5.05 6.67892 4.7 5.63892 5.25 4.28892C5.25 4.28892 6.09 4.01892 8 5.30892C8.79 5.08892 9.65 4.97892 10.5 4.97892C11.35 4.97892 12.21 5.08892 13 5.30892C14.91 4.01892 15.75 4.28892 15.75 4.28892C16.3 5.63892 15.95 6.67892 15.85 6.92892C16.5 7.63892 16.88 8.52892 16.88 9.63892C16.88 13.4589 14.54 14.2989 12.31 14.5489C12.67 14.8589 13 15.4689 13 16.3989V19.1389C13 19.4089 13.16 19.7289 13.67 19.6389C17.64 18.2989 20.5 14.5589 20.5 10.1389C20.5 8.8257 20.2413 7.52534 19.7388 6.31208C19.2362 5.09883 18.4997 3.99643 17.5711 3.06785C16.6425 2.13926 15.5401 1.40267 14.3268 0.900121C13.1136 0.397574 11.8132 0.138916 10.5 0.138916Z" fill="#243F76"/>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 7.6 KiB |
|
Before Width: | Height: | Size: 30 KiB |
|
Before Width: | Height: | Size: 28 KiB |
|
Before Width: | Height: | Size: 4.7 KiB |
@@ -1,3 +0,0 @@
|
||||
<svg width="19" height="13" viewBox="0 0 19 13" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M15.8333 11.375C16.7042 11.375 17.4088 10.6438 17.4088 9.75L17.4167 1.625C17.4167 0.73125 16.7042 0 15.8333 0H3.16667C2.29583 0 1.58333 0.73125 1.58333 1.625V9.75C1.58333 10.6438 2.29583 11.375 3.16667 11.375H0V13H19V11.375H15.8333ZM3.16667 1.625H15.8333V9.75H3.16667V1.625Z" fill="white"/>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 403 B |
|
Before Width: | Height: | Size: 22 KiB |
|
Before Width: | Height: | Size: 7.3 KiB |
@@ -1,3 +0,0 @@
|
||||
<svg width="23" height="22" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M11.5 0C9.9898 0 8.49438 0.291587 7.09914 0.858113C5.7039 1.42464 4.43615 2.25501 3.36827 3.30181C1.2116 5.41593 0 8.28329 0 11.2731C0 16.2558 3.3005 20.4832 7.866 21.9825C8.441 22.0727 8.625 21.7233 8.625 21.4189V19.5137C5.4395 20.1901 4.761 18.0031 4.761 18.0031C4.232 16.6955 3.4845 16.346 3.4845 16.346C2.438 15.6471 3.565 15.6696 3.565 15.6696C4.715 15.7485 5.3245 16.8307 5.3245 16.8307C6.325 18.5442 8.0155 18.037 8.671 17.7664C8.7745 17.0336 9.0735 16.5376 9.3955 16.2558C6.8425 15.974 4.163 15.0045 4.163 10.7094C4.163 9.45813 4.6 8.45482 5.3475 7.65443C5.2325 7.37261 4.83 6.2002 5.4625 4.67834C5.4625 4.67834 6.4285 4.37396 8.625 5.82819C9.5335 5.58018 10.5225 5.45618 11.5 5.45618C12.4775 5.45618 13.4665 5.58018 14.375 5.82819C16.5715 4.37396 17.5375 4.67834 17.5375 4.67834C18.17 6.2002 17.7675 7.37261 17.6525 7.65443C18.4 8.45482 18.837 9.45813 18.837 10.7094C18.837 15.0158 16.146 15.9627 13.5815 16.2445C13.9955 16.594 14.375 17.2817 14.375 18.3301V21.4189C14.375 21.7233 14.559 22.084 15.1455 21.9825C19.711 20.4719 23 16.2558 23 11.2731C23 9.79269 22.7025 8.32678 22.1246 6.95907C21.5467 5.59135 20.6996 4.34862 19.6317 3.30181C18.5639 2.25501 17.2961 1.42464 15.9009 0.858113C14.5056 0.291587 13.0102 0 11.5 0Z" fill="white"/>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 1.3 KiB |
@@ -1,3 +0,0 @@
|
||||
<svg width="16" height="19" viewBox="0 0 16 19" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M1.33331 0C0.979692 0 0.64056 0.142984 0.390517 0.397498C0.140473 0.652012 0 0.997206 0 1.35714V19H2.66661V1.35714C2.66661 0.997206 2.52614 0.652012 2.2761 0.397498C2.02605 0.142984 1.68692 0 1.33331 0ZM15.7504 7.50229L3.33327 12.6187V1.63129L15.7504 6.74704C15.8241 6.77749 15.8873 6.82967 15.9318 6.89688C15.9762 6.96409 16 7.04329 16 7.12432C16 7.20536 15.9762 7.28455 15.9318 7.35176C15.8873 7.41897 15.8241 7.47115 15.7504 7.50161V7.50229Z" fill="white"/>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 573 B |
@@ -1,3 +0,0 @@
|
||||
<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M9.61217 0.411889C9.48161 0.281306 9.32661 0.17772 9.15602 0.107047C8.98543 0.0363749 8.80259 0 8.61794 0C8.43329 0 8.25045 0.0363749 8.07986 0.107047C7.90927 0.17772 7.75427 0.281306 7.62372 0.411889L5.96753 2.06861C5.6922 2.34397 5.50939 2.69821 5.44447 3.08217C5.37956 3.46613 5.43576 3.86077 5.60527 4.21134L3.03383 5.49501C2.68443 5.66957 2.37523 5.91499 2.12591 6.21564C1.87658 6.51629 1.69262 6.86558 1.58572 7.24125L0.0392041 12.6857C-0.0109899 12.8626 -0.0130219 13.0497 0.0333182 13.2277C0.0796583 13.4057 0.172689 13.568 0.302791 13.698C0.432894 13.828 0.595347 13.9208 0.773354 13.967C0.951362 14.0131 1.13846 14.0109 1.31532 13.9605L6.75673 12.4115C7.1321 12.3047 7.48112 12.1209 7.78159 11.8718C8.08205 11.6228 8.32738 11.3139 8.50195 10.9648L9.78603 8.39323C10.1367 8.56347 10.5317 8.62033 10.9161 8.55592C11.3006 8.4915 11.6554 8.30901 11.9315 8.03376L13.5881 6.37704C13.7187 6.24648 13.8223 6.09147 13.893 5.92087C13.9636 5.75028 14 5.56743 14 5.38277C14 5.19811 13.9636 5.01526 13.893 4.84466C13.8223 4.67407 13.7187 4.51906 13.5881 4.3885L9.6117 0.411889H9.61217ZM8.28638 1.07458C8.3299 1.031 8.38159 0.996437 8.43848 0.972851C8.49537 0.949266 8.55635 0.937127 8.61794 0.937127C8.67953 0.937127 8.74051 0.949266 8.7974 0.972851C8.85429 0.996437 8.90598 1.031 8.9495 1.07458L12.9259 5.05119C13.0138 5.13908 13.0631 5.25826 13.0631 5.38253C13.0631 5.50681 13.0138 5.62599 12.9259 5.71388L11.2688 7.37107L6.62926 2.73131L8.28638 1.07458ZM6.62972 4.71984L9.27756 7.36779C9.24199 7.40344 9.2124 7.44458 9.18992 7.48965L7.66402 10.5453C7.54772 10.7781 7.38424 10.9841 7.18398 11.1502C6.98373 11.3164 6.75108 11.439 6.50085 11.5103L1.82145 12.8418L4.69798 9.96513C4.99727 10.1077 5.3373 10.14 5.65807 10.0562C5.97883 9.97251 6.25971 9.77815 6.45112 9.50747C6.64253 9.23679 6.73218 8.90719 6.70424 8.57684C6.67629 8.24649 6.53256 7.93663 6.29839 7.70195C6.064 7.46672 5.75392 7.32205 5.42307 7.29357C5.09223 7.26509 4.76198 7.35464 4.49084 7.54635C4.2197 7.73807 4.02516 8.01958 3.9417 8.341C3.85824 8.66242 3.89124 9.00301 4.03485 9.30244L1.15739 12.18L2.48833 7.49714C2.55947 7.24677 2.68196 7.01396 2.84801 6.81353C3.01406 6.6131 3.22003 6.44944 3.4528 6.33298L6.50788 4.80748C6.55297 4.78487 6.59412 4.75512 6.62972 4.71938V4.71984Z" fill="black"/>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 2.3 KiB |
@@ -1,3 +0,0 @@
|
||||
<svg width="18" height="19" viewBox="0 0 18 19" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M9.97258 0H8.02016C7.50351 0.000653543 6.99296 0.11297 6.52264 0.329438C6.05233 0.545906 5.63309 0.861535 5.29297 1.25522C4.95286 1.6489 4.6997 2.11155 4.55043 2.61225C4.40116 3.11294 4.35922 3.64013 4.42742 4.15855L4.48403 5.04316C4.12638 5.10009 3.80265 5.29026 3.57636 5.57636C3.35008 5.86247 3.23758 6.22384 3.26094 6.58958C3.2843 6.95531 3.44183 7.29901 3.70263 7.55324C3.96342 7.80746 4.30864 7.95385 4.67056 7.96369L4.75403 9.25754C4.84634 9.95556 5.1451 10.609 5.61106 11.1319C6.07701 11.6549 6.68836 12.0229 7.36476 12.1876C5.58243 12.5072 3.92957 13.3421 2.60565 14.5916V14.5843C1.42818 15.6953 0.553297 17.0946 0.0653227 18.6473V18.7282C0.0392656 18.8052 0.0174577 18.8837 0 18.9633L2.60347 18.9927L2.60492 19H15.3936L15.3958 18.9927L18 18.9633L17.984 18.9199C17.9565 18.8595 17.9398 18.7945 17.9347 18.7282V18.6473C17.444 17.0959 16.5696 15.6972 15.3944 14.5843V14.5916C14.0712 13.3434 12.4197 12.509 10.6389 12.1891C11.3162 12.025 11.9285 11.6571 12.3952 11.1338C12.8619 10.6105 13.161 9.95634 13.2532 9.25754L13.3323 7.96148C13.6852 7.93871 14.0176 7.78639 14.2674 7.53309C14.5171 7.27979 14.667 6.94293 14.6888 6.58573C14.7107 6.22853 14.603 5.87554 14.3859 5.59302C14.1689 5.31049 13.8575 5.11785 13.5102 5.05124L13.5653 4.15855C13.6336 3.64011 13.5918 3.11287 13.4426 2.61213C13.2933 2.11138 13.0402 1.64867 12.7001 1.25497C12.3599 0.861257 11.9406 0.545628 11.4703 0.3292C10.9999 0.112771 10.4893 0.00053424 9.97258 0Z" fill="white"/>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 1.5 KiB |
BIN
refilc/assets/images/pixel.png
Normal file
|
After Width: | Height: | Size: 107 B |
|
Before Width: | Height: | Size: 21 KiB |
|
Before Width: | Height: | Size: 19 KiB |
|
Before Width: | Height: | Size: 881 B |
|
Before Width: | Height: | Size: 809 B |
|
Before Width: | Height: | Size: 746 B |
|
Before Width: | Height: | Size: 19 KiB |
@@ -1,3 +0,0 @@
|
||||
<svg width="19" height="19" viewBox="0 0 19 19" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M3.16667 0C2.75081 0 2.33903 0.0819083 1.95484 0.241048C1.57064 0.400188 1.22155 0.633443 0.927495 0.927495C0.33363 1.52136 0 2.32681 0 3.16667V15.8333C0 16.6732 0.33363 17.4786 0.927495 18.0725C1.22155 18.3666 1.57064 18.5998 1.95484 18.759C2.33903 18.9181 2.75081 19 3.16667 19H15.8333C16.6732 19 17.4786 18.6664 18.0725 18.0725C18.6664 17.4786 19 16.6732 19 15.8333V3.16667C19 2.75081 18.9181 2.33903 18.759 1.95484C18.5998 1.57064 18.3666 1.22155 18.0725 0.927495C17.7785 0.633443 17.4294 0.400188 17.0452 0.241048C16.661 0.0819083 16.2492 0 15.8333 0H3.16667ZM1.26667 3.16667C1.26667 2.66276 1.46684 2.17948 1.82316 1.82316C2.17948 1.46684 2.66276 1.26667 3.16667 1.26667H15.8333C16.7371 1.26667 17.4927 1.89747 17.6858 2.74233L8.84767 11.6071C8.78933 11.6658 8.71034 11.6993 8.62761 11.7005C8.54487 11.7017 8.46496 11.6704 8.40497 11.6134L7.04457 10.3214C6.78224 10.0725 6.43338 9.93524 6.07172 9.93878C5.71007 9.94233 5.36396 10.0864 5.10657 10.3404L1.26667 14.1297V3.16667ZM1.26793 15.8979L5.84947 11.3582C5.90766 11.3005 5.98598 11.2675 6.06796 11.2663C6.14993 11.2652 6.22917 11.2958 6.289 11.3519L7.65067 12.6299C7.91356 12.8766 8.2618 13.0117 8.62224 13.007C8.98268 13.0023 9.32726 12.858 9.5836 12.6046L17.7333 4.5448V15.8333C17.7333 16.3372 17.5332 16.8205 17.1768 17.1768C16.8205 17.5332 16.3372 17.7333 15.8333 17.7333H3.16667C2.67397 17.7333 2.20056 17.5419 1.84631 17.1994C1.49206 16.857 1.28469 16.3903 1.26793 15.8979Z" fill="white"/>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 1.5 KiB |
|
Before Width: | Height: | Size: 10 KiB |
@@ -1,3 +0,0 @@
|
||||
<svg width="20" height="19" viewBox="0 0 20 19" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M19.2777 0.748963C18.8178 0.280979 18.1938 0.0123079 17.5392 0.000412436C16.8846 -0.011483 16.2513 0.234342 15.7749 0.68531L6.27841 9.67238L6.26855 9.67097L4.76926 11.1562C4.65745 11.2668 4.56485 11.3954 4.49532 11.5367C3.90325 11.5167 3.32013 11.6859 2.82983 12.0198C2.30986 12.3226 1.87751 12.7564 1.57544 13.2783C1.27337 13.8002 1.11201 14.3922 1.1073 14.9959C1.11849 15.2442 1.0807 15.4924 0.996102 15.726C0.911504 15.9597 0.781767 16.1742 0.614346 16.3573L0.0587138 16.88L0.0171647 17.1092C-0.0290688 17.3612 0.0188538 17.6216 0.151766 17.8404C0.284678 18.0592 0.49325 18.2212 0.737585 18.2952L2.55378 18.849L2.90589 18.9197C3.76665 19.0771 4.6536 19.0022 5.47605 18.7024C6.29849 18.4027 7.02692 17.889 7.58686 17.2138C7.99108 16.7301 8.22066 16.1254 8.24179 15.498C8.41784 15.4308 8.58404 15.3255 8.7277 15.184L9.28967 14.6267L9.30023 14.6479L19.2953 4.26755C19.7503 3.795 20.0033 3.1624 20 2.50501C19.9967 1.84762 19.7374 1.2169 19.2777 0.748963ZM8.99037 12.9349L7.01151 10.9221L16.7411 1.71436C16.9499 1.51759 17.227 1.41053 17.5132 1.41602C17.7995 1.42151 18.0723 1.53911 18.2735 1.74374C18.4747 1.94836 18.5883 2.22383 18.5901 2.5114C18.592 2.79896 18.4819 3.07586 18.2833 3.28305L8.99037 12.9349ZM3.15941 17.5293L2.92701 17.4861L1.81152 17.1466C2.24317 16.5719 2.48631 15.8767 2.5073 15.1571C2.48871 14.7622 2.58091 14.37 2.77339 14.0252C2.96587 13.6803 3.2509 13.3967 3.59603 13.2065C3.86776 13.0169 4.19727 12.9295 4.52679 12.9595C4.8563 12.9895 5.16478 13.135 5.39813 13.3706L6.42207 14.4025C6.66996 14.6525 6.81583 14.9866 6.83108 15.3391C6.84632 15.6916 6.72983 16.0371 6.50447 16.3078C6.10445 16.7906 5.58401 17.158 4.99631 17.3726C4.40861 17.5872 3.77472 17.6413 3.15941 17.5293Z" fill="white"/>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 1.8 KiB |
@@ -1,5 +0,0 @@
|
||||
<svg width="20" height="19" viewBox="0 0 20 19" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M4.58619 1.96552V0.854345C4.58619 0.38131 4.95178 0 5.40516 0C5.85854 0 6.22412 0.38131 6.22412 0.854345V1.96552H4.58619ZM12.7758 11.269C12.7758 11.1473 12.8242 11.0307 12.9102 10.9447C12.9962 10.8587 13.1128 10.8103 13.2345 10.8103H14.9379C15.0595 10.8103 15.1762 10.8587 15.2622 10.9447C15.3482 11.0307 15.3965 11.1473 15.3965 11.269V12.9724C15.3965 13.094 15.3482 13.2107 15.2622 13.2967C15.1762 13.3827 15.0595 13.431 14.9379 13.431H13.2345C13.1128 13.431 12.9962 13.3827 12.9102 13.2967C12.8242 13.2107 12.7758 13.094 12.7758 12.9724V11.269ZM4.25861 7.9931C4.25861 7.87147 4.30692 7.75482 4.39293 7.66881C4.47894 7.5828 4.59559 7.53448 4.71723 7.53448H6.42068C6.54231 7.53448 6.65896 7.5828 6.74497 7.66881C6.83098 7.75482 6.8793 7.87147 6.8793 7.9931V9.69655C6.8793 9.81818 6.83098 9.93484 6.74497 10.0208C6.65896 10.1069 6.54231 10.1552 6.42068 10.1552H4.71723C4.59559 10.1552 4.47894 10.1069 4.39293 10.0208C4.30692 9.93484 4.25861 9.81818 4.25861 9.69655V7.9931ZM4.91378 8.18966V9.5H6.22412V8.18966H4.91378ZM8.51723 7.9931C8.51723 7.87147 8.56555 7.75482 8.65155 7.66881C8.73756 7.5828 8.85421 7.53448 8.97585 7.53448H10.6793C10.8009 7.53448 10.9176 7.5828 11.0036 7.66881C11.0896 7.75482 11.1379 7.87147 11.1379 7.9931V9.69655C11.1379 9.81818 11.0896 9.93484 11.0036 10.0208C10.9176 10.1069 10.8009 10.1552 10.6793 10.1552H8.97585C8.85421 10.1552 8.73756 10.1069 8.65155 10.0208C8.56555 9.93484 8.51723 9.81818 8.51723 9.69655V7.9931ZM9.1724 8.18966V9.5H10.4827V8.18966H9.1724ZM12.7758 7.9931C12.7758 7.87147 12.8242 7.75482 12.9102 7.66881C12.9962 7.5828 13.1128 7.53448 13.2345 7.53448H14.9379C15.0595 7.53448 15.1762 7.5828 15.2622 7.66881C15.3482 7.75482 15.3965 7.87147 15.3965 7.9931V9.69655C15.3965 9.81818 15.3482 9.93484 15.2622 10.0208C15.1762 10.1069 15.0595 10.1552 14.9379 10.1552H13.2345C13.1128 10.1552 12.9962 10.1069 12.9102 10.0208C12.8242 9.93484 12.7758 9.81818 12.7758 9.69655V7.9931ZM13.431 8.18966V9.5H14.7414V8.18966H13.431ZM4.25861 11.269C4.25861 11.1473 4.30692 11.0307 4.39293 10.9447C4.47894 10.8587 4.59559 10.8103 4.71723 10.8103H6.42068C6.54231 10.8103 6.65896 10.8587 6.74497 10.9447C6.83098 11.0307 6.8793 11.1473 6.8793 11.269V12.9724C6.8793 13.094 6.83098 13.2107 6.74497 13.2967C6.65896 13.3827 6.54231 13.431 6.42068 13.431H4.71723C4.59559 13.431 4.47894 13.3827 4.39293 13.2967C4.30692 13.2107 4.25861 13.094 4.25861 12.9724V11.269ZM4.91378 11.4655V12.7759H6.22412V11.4655H4.91378ZM8.51723 11.269C8.51723 11.1473 8.56555 11.0307 8.65155 10.9447C8.73756 10.8587 8.85421 10.8103 8.97585 10.8103H10.6793C10.8009 10.8103 10.9176 10.8587 11.0036 10.9447C11.0896 11.0307 11.1379 11.1473 11.1379 11.269V12.9724C11.1379 13.094 11.0896 13.2107 11.0036 13.2967C10.9176 13.3827 10.8009 13.431 10.6793 13.431H8.97585C8.85421 13.431 8.73756 13.3827 8.65155 13.2967C8.56555 13.2107 8.51723 13.094 8.51723 12.9724V11.269ZM9.1724 11.4655V12.7759H10.4827V11.4655H9.1724ZM4.25861 14.5448C4.25861 14.4232 4.30692 14.3065 4.39293 14.2205C4.47894 14.1345 4.59559 14.0862 4.71723 14.0862H6.42068C6.54231 14.0862 6.65896 14.1345 6.74497 14.2205C6.83098 14.3065 6.8793 14.4232 6.8793 14.5448V16.2483C6.8793 16.3699 6.83098 16.4866 6.74497 16.5726C6.65896 16.6586 6.54231 16.7069 6.42068 16.7069H4.71723C4.59559 16.7069 4.47894 16.6586 4.39293 16.5726C4.30692 16.4866 4.25861 16.3699 4.25861 16.2483V14.5448ZM4.91378 14.7414V16.0517H6.22412V14.7414H4.91378ZM8.51723 14.5448C8.51723 14.4232 8.56555 14.3065 8.65155 14.2205C8.73756 14.1345 8.85421 14.0862 8.97585 14.0862H10.6793C10.8009 14.0862 10.9176 14.1345 11.0036 14.2205C11.0896 14.3065 11.1379 14.4232 11.1379 14.5448V16.2483C11.1379 16.3699 11.0896 16.4866 11.0036 16.5726C10.9176 16.6586 10.8009 16.7069 10.6793 16.7069H8.97585C8.85421 16.7069 8.73756 16.6586 8.65155 16.5726C8.56555 16.4866 8.51723 16.3699 8.51723 16.2483V14.5448ZM9.1724 14.7414V16.0517H10.4827V14.7414H9.1724Z" fill="white"/>
|
||||
<path d="M4.58621 3.07672C4.58621 3.54975 4.95179 3.93106 5.40517 3.93106C5.85855 3.93106 6.22414 3.54975 6.22414 3.07672V1.96554H13.431V3.07672C13.431 3.54975 13.7966 3.93106 14.25 3.93106C14.7034 3.93106 15.069 3.54975 15.069 3.07672V1.96554H17.1924C18.5486 1.96554 19.6552 3.07344 19.6552 4.44537V15.8814C19.6552 17.598 18.2629 19 16.5372 19H3.11862C2.29194 18.9986 1.49951 18.6696 0.914954 18.0851C0.330399 17.5005 0.00138589 16.7081 0 15.8814V4.44537C0 3.07344 1.10724 1.95899 2.46279 1.96554H4.58621V3.07672ZM1.31034 5.89658V15.8814C1.31173 16.3605 1.5026 16.8195 1.84127 17.1583C2.17995 17.4971 2.63892 17.6881 3.11797 17.6897H14.0928V16.7069H13.2345C13.1128 16.7069 12.9962 16.6586 12.9102 16.5726C12.8242 16.4866 12.7759 16.3699 12.7759 16.2483V14.5449C12.7759 14.4232 12.8242 14.3066 12.9102 14.2206C12.9962 14.1346 13.1128 14.0862 13.2345 14.0862H14.9379C14.9823 14.0862 15.0264 14.0926 15.069 14.1052C15.5735 13.6702 16.2176 13.4309 16.8838 13.4311H18.3448V5.89658H1.31034ZM14.1 16.017C14.1331 15.5639 14.2771 15.1258 14.5193 14.7414H13.431V16.0518H14.098L14.1 16.017ZM14.7479 17.5541L18.2158 14.0862H16.8838C16.3179 14.088 15.7756 14.3135 15.3754 14.7137C14.9752 15.1139 14.7497 15.6562 14.7479 16.2221V17.5541Z" fill="white"/>
|
||||
<path d="M13.431 0.854345V1.96552H15.069V0.854345C15.069 0.38131 14.7034 0 14.25 0C13.7966 0 13.431 0.38131 13.431 0.854345Z" fill="white"/>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 5.2 KiB |
@@ -1,3 +0,0 @@
|
||||
<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M6.63347 1.46773e-08C4.17718 1.46773e-08 2.15934 1.9315 1.9387 4.3981C1.66876 4.46542 1.43013 4.6275 1.26399 4.85636C1.09784 5.08522 1.01461 5.36652 1.02863 5.65173C1.04265 5.93694 1.15306 6.20817 1.34081 6.41864C1.52855 6.62911 1.78186 6.76561 2.05704 6.8046C2.099 6.97812 2.14991 7.14776 2.20932 7.31353L2.18622 7.30965C2.06688 7.28651 1.94628 7.27097 1.82508 7.26312H1.80057C1.49035 7.27282 1.31025 7.5234 1.25273 7.72988C1.19144 7.94993 1.22916 8.18792 1.32062 8.41621L1.35834 8.51024L0.640782 8.70217L0.637482 8.70314C0.400811 8.76809 0.0575906 8.92126 0.0057304 9.32016C-0.0140708 9.47187 0.0222314 9.60128 0.0420326 9.66381C0.0514617 9.69483 0.0627766 9.72536 0.0703199 9.7462L0.0722057 9.75153L0.0882353 9.79855C0.166497 10.0603 0.331035 10.3206 0.519618 10.5489C0.897617 11.0007 1.36672 11.3626 1.89439 11.6094L1.64357 11.8372C1.5589 11.9114 1.4921 12.0048 1.44839 12.11C1.39862 12.2346 1.38969 12.3724 1.42293 12.5027C1.44839 12.6054 1.49506 12.6868 1.52335 12.7338C1.54456 12.7687 1.57191 12.8099 1.59265 12.841L1.60963 12.8662C1.78642 13.1347 2.09805 13.3901 2.46155 13.5855C2.83447 13.7866 3.30074 13.9451 3.81934 13.9882C4.816 14.0716 5.96164 13.7241 6.96066 12.5419C7.96014 13.7246 9.10578 14.0716 10.102 13.9882C10.5761 13.9484 11.0377 13.8116 11.4598 13.5859C11.8233 13.3901 12.1349 13.1347 12.3117 12.8662L12.3287 12.841C12.3494 12.8099 12.3772 12.7683 12.398 12.7338C12.4428 12.6625 12.4766 12.5845 12.4984 12.5027C12.5316 12.3724 12.5227 12.2346 12.4729 12.11C12.4293 12.0051 12.3627 11.9118 12.2782 11.8377L12.0529 11.6326C12.6017 11.386 13.0896 11.0156 13.4804 10.5489C13.669 10.3206 13.8335 10.0603 13.9118 9.79855L13.9278 9.75153L13.9297 9.7462C13.9373 9.72536 13.9481 9.69483 13.958 9.66381C13.9773 9.60079 14.0141 9.47187 13.9943 9.32016C13.9425 8.92126 13.5992 8.76809 13.3626 8.70314L13.3593 8.70217L12.6412 8.51024L12.679 8.41621C12.7704 8.1884 12.8086 7.94993 12.7473 7.72988C12.6898 7.5234 12.5092 7.27282 12.199 7.26312H12.1754C12.0584 7.27055 11.9418 7.28544 11.8266 7.30771C11.8893 7.13128 11.9425 6.95001 11.9859 6.76486C12.2221 6.69215 12.4306 6.54602 12.5828 6.34656C12.735 6.14709 12.8233 5.90408 12.8357 5.6509C12.8481 5.39773 12.784 5.14681 12.6521 4.93264C12.5202 4.71847 12.327 4.55155 12.0991 4.45481C12.0032 3.24113 11.4666 2.10899 10.5958 1.28357C9.72506 0.45814 8.584 -9.46918e-05 7.39958 1.46773e-08H6.63347ZM11.1538 4.46984C10.9539 4.56225 10.7825 4.70948 10.6586 4.89538C10.5347 5.08128 10.4629 5.29868 10.4513 5.52373C10.4396 5.74877 10.4884 5.97279 10.5923 6.1712C10.6963 6.36961 10.8514 6.53476 11.0406 6.64853C10.8238 7.47062 10.3497 8.19645 9.69163 8.71399C9.03357 9.23153 8.22811 9.512 7.39958 9.5121H6.63347C5.78749 9.51203 4.96607 9.21968 4.30113 8.68199C3.63619 8.1443 3.16631 7.39247 2.96695 6.54723C3.11456 6.42609 3.23205 6.27062 3.30974 6.09363C3.38744 5.91665 3.4231 5.72321 3.4138 5.52927C3.4045 5.33533 3.3505 5.14644 3.25625 4.97817C3.162 4.8099 3.0302 4.66707 2.87171 4.56144C2.94183 3.58507 3.3686 2.67211 4.06635 2.00583C4.7641 1.33956 5.68117 0.969298 6.63347 0.969386H7.39958C8.33646 0.969275 9.23984 1.32765 9.93382 1.97471C10.6278 2.62178 11.0627 3.51122 11.1538 4.46984ZM10.7799 9.01335L12.9755 9.60128C12.935 9.68513 12.8661 9.79516 12.7615 9.92118C12.62 10.0928 12.4343 10.2702 12.224 10.4253C11.8718 10.6851 11.5107 10.8421 11.2113 10.8697C10.7876 10.485 10.3623 10.1021 9.93555 9.721C10.2425 9.51928 10.5259 9.28183 10.7799 9.01335ZM9.06665 10.1698C9.09494 10.2357 9.13784 10.2963 9.19536 10.3458C9.45466 10.5692 10.7201 11.716 11.4706 12.3975C11.3857 12.4896 11.2377 12.6107 11.0227 12.7271C10.7127 12.8925 10.3737 12.9928 10.0256 13.0222C9.28729 13.0838 8.36324 12.8293 7.51273 11.7058L7.5099 11.7024C7.4802 11.6636 7.41467 11.5764 7.32509 11.5105C7.21945 11.4319 7.09092 11.3925 6.96066 11.399C6.83039 11.3925 6.70186 11.4319 6.59622 11.5105C6.50664 11.5764 6.44064 11.6636 6.41141 11.7024L6.40905 11.7058C5.55807 12.8293 4.63402 13.0838 3.89619 13.0222C3.54787 12.9927 3.20875 12.8922 2.89859 12.7266C2.6836 12.6112 2.53557 12.4891 2.4507 12.3975L3.07303 11.8328C3.09377 11.8304 3.11499 11.828 3.13573 11.8246L3.1296 11.7809C3.65861 11.2991 4.19074 10.8208 4.72595 10.3463C4.7922 10.2895 4.84195 10.215 4.86975 10.131C5.43028 10.3633 6.02912 10.4823 6.63347 10.4815H7.39958C7.96904 10.4822 8.53389 10.3766 9.06665 10.1698ZM4.03338 9.67835C3.78775 9.895 3.25265 10.3778 2.71896 10.861C2.43373 10.8179 2.10041 10.6657 1.77511 10.4248C1.57712 10.2796 1.39669 10.1108 1.23765 9.92166C1.15436 9.82394 1.08267 9.71639 1.02408 9.60128L3.24605 9.00559C3.48319 9.25763 3.74721 9.4835 4.03338 9.67786V9.67835ZM2.31822 12.2123L2.31917 12.2147C2.31883 12.2139 2.31852 12.2131 2.31822 12.2123ZM11.6021 12.2123L11.6012 12.2147C11.6015 12.2139 11.6019 12.2131 11.6021 12.2123Z" fill="black"/>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 4.8 KiB |
@@ -1,3 +0,0 @@
|
||||
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M13.65 11.3L8 5.65L13.65 0L19.3 5.65L13.65 11.3ZM0 9.3V1.3H8V9.3H0ZM10 19.3V11.3H18V19.3H10ZM0 19.3V11.3H8V19.3H0Z" fill="white"/>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 243 B |
|
Before Width: | Height: | Size: 64 KiB |
|
Before Width: | Height: | Size: 658 KiB |
|
Before Width: | Height: | Size: 491 KiB |
|
Before Width: | Height: | Size: 27 KiB |
@@ -1,3 +0,0 @@
|
||||
<svg width="175" height="143" viewBox="0 0 175 143" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M58.6279 8.50342C63.5741 1.80392 72.1643 -1.11416 80.1678 1.18628L108.18 9.23764C111.12 10.0829 113.827 11.5937 116.09 13.6533L134.423 30.3401C135.735 31.5341 137.2 32.5476 138.78 33.3538L159.824 44.0909C165.265 46.8673 169.133 51.9857 170.317 57.9784L174.124 77.2307C175.596 84.6768 172.711 92.3127 166.683 96.9251L148.71 110.677C142.481 115.443 134.037 116.113 127.134 112.389L98.1062 96.7277C96.736 95.9884 95.0278 96.4245 94.1796 97.7301L70.6624 133.932C65.2781 142.22 54.6331 145.31 45.6475 141.194L14.1989 126.786C8.24811 124.06 4.01525 118.586 2.87439 112.14L0.351015 97.8846C-0.601369 92.5041 0.697013 86.9686 3.94249 82.5727L58.6279 8.50342ZM104.166 81.5541C103.277 83.007 103.779 84.9079 105.27 85.7315L125.537 96.9271C127.617 98.0765 130.142 96.4555 129.963 94.0853L128.805 78.7326C128.731 77.7532 128.181 76.8727 127.333 76.3769L115.135 69.2432C113.73 68.4215 111.925 68.8749 111.076 70.2634L104.166 81.5541ZM122.143 54.0188C121.216 55.4172 121.621 57.3044 123.04 58.1993L132.708 64.2965C133.808 64.99 135.23 64.8933 136.226 64.0571L146.988 55.0189C148.601 53.6647 148.345 51.1122 146.496 50.1045L132.92 42.7055C131.558 41.9632 129.854 42.3859 128.997 43.6788L122.143 54.0188ZM118.622 35.9428C119.457 34.6691 119.201 32.9708 118.028 31.9997L114.434 29.0269C113.078 27.9044 111.05 28.1918 110.058 29.6469L56.5483 108.177C56.0282 108.941 55.8901 109.902 56.1742 110.781L58.6649 118.484C59.4373 120.873 62.6323 121.304 64.0094 119.204L118.622 35.9428ZM41.7446 125.003C44.1099 126.086 46.6347 123.84 45.8344 121.365L43.667 114.661C43.3951 113.82 42.765 113.143 41.9459 112.81L19.3166 103.633C17.1383 102.75 14.8395 104.61 15.2492 106.925L16.1201 111.845C16.2912 112.811 16.9261 113.632 17.8187 114.041L41.7446 125.003ZM18.3615 85.0889C17.202 86.6593 17.8341 88.9014 19.643 89.635L43.7741 99.4214C45.0782 99.9503 46.5745 99.4981 47.3675 98.3356L98.3265 23.6234C99.4873 21.9215 98.6193 19.5831 96.6292 19.0508L73.9521 12.9851C72.7649 12.6676 71.5043 13.1088 70.7744 14.0975L18.3615 85.0889ZM159.482 68.6611C159.158 66.4154 156.549 65.3343 154.732 66.6932L143.074 75.4115C142.256 76.0236 141.807 77.0114 141.884 78.0306L142.994 92.7426C143.173 95.1098 145.906 96.3345 147.792 94.8919L160.332 85.2964C161.192 84.6386 161.629 83.5674 161.475 82.4959L159.482 68.6611Z" fill="white"/>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 2.4 KiB |
@@ -1,3 +0,0 @@
|
||||
<svg width="153" height="152" viewBox="0 0 153 152" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M135.948 69.8556C136.119 70.2769 136.301 70.6946 136.492 71.1084C137.04 72.2934 137.667 73.4461 138.373 74.5578L143.92 71.0374L138.373 74.5578L143.104 82.013C148.056 89.8157 145.674 100.2 137.992 104.977L130.552 109.605C124.701 113.243 120.322 118.848 118.156 125.412L115.38 133.826C112.479 142.617 103.136 147.086 94.7918 143.994L86.5986 140.957C80.1391 138.563 73.0524 138.563 66.5929 140.957L58.3998 143.994C50.0555 147.086 40.7127 142.617 37.8118 133.826L35.0356 125.412C32.8696 118.848 28.491 113.243 22.6398 109.605L15.1992 104.977C7.51741 100.2 5.13523 89.8157 10.0871 82.013L4.60189 78.5318L10.0871 82.013L14.8185 74.5578C18.5179 68.7287 20.0731 61.7742 19.2276 54.9121L18.1426 46.1056C17.0009 36.8397 23.5842 28.6323 32.4318 27.732L41.108 26.8492C44.1066 26.5441 47.0149 25.772 49.7377 24.5813C53.2301 23.054 56.4152 20.8389 59.0975 18.0391L65.185 11.6849L60.4408 7.1398L65.185 11.6849C71.4541 5.14109 81.7374 5.14109 88.0065 11.6849L92.642 7.2439L88.0065 11.6849L94.0941 18.0391C98.8682 23.0224 105.235 26.1523 112.084 26.8492L120.76 27.732C129.607 28.6323 136.191 36.8397 135.049 46.1056L133.964 54.9121C133.336 60.0107 134.033 65.1577 135.948 69.8556ZM135.948 69.8556L142.032 67.376M135.948 69.8556C135.948 69.8556 135.948 69.8557 135.948 69.8557L142.032 67.376M142.032 67.376C142.166 67.7042 142.307 68.0297 142.456 68.352L98.8383 13.4941C102.543 17.3613 107.468 19.7756 112.749 20.3129L121.425 21.1958C134.046 22.4801 143.148 34.098 141.57 46.909L140.485 55.7155C139.994 59.6964 140.539 63.7135 142.032 67.376Z" stroke="white" stroke-width="13.14"/>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 1.6 KiB |
@@ -1,7 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
flutter clean
|
||||
dart pub get
|
||||
flutter doctor -v
|
||||
|
||||
flutter build ipa --release --dart-define=APPVER=$(cat pubspec.yaml | grep version: | cut -d' ' -f2 | cut -d+ -f1) --tree-shake-icons
|
||||
flutter build ipa --release --tree-shake-icons --split-debug-info=debug-info --obfuscate --no-codesign
|
||||
|
||||
@@ -33,20 +33,20 @@ class FilcAPI {
|
||||
static const plusAuthLogin = "0.0.0.0";
|
||||
static const plusAuthCallback = "0.0.0.0";
|
||||
static const plusActivation = "0.0.0.0";
|
||||
static const plusScopes = "0.0.0.0/";
|
||||
static const plusScopes = "0.0.0.0";
|
||||
|
||||
// Updates
|
||||
static const repo = "refilc/naplo";
|
||||
static const repo = "QwIT-Development/app-legacy";
|
||||
static const releases = "https://api.github.com/repos/$repo/releases";
|
||||
|
||||
// Share API
|
||||
static const themeShare = "https://api.refilcapp.hu/v3/shared/theme/add";
|
||||
static const themeGet = "https://api.refilcapp.hu/v3/shared/theme/get";
|
||||
static const themeShare = "$baseUrl/v3/shared/theme/add";
|
||||
static const themeGet = "$baseUrl/v3/shared/theme/get";
|
||||
static const allThemes = "$themeGet/all";
|
||||
static const themeByID = "$themeGet/";
|
||||
|
||||
static const gradeColorsShare = "https://api.refilcapp.hu/v3/shared/grade-colors/add";
|
||||
static const gradeColorsGet = "https://api.refilcapp.hu/v3/shared/grade-colors/get";
|
||||
static const gradeColorsShare = "$baseUrl/v3/shared/grade-colors/add";
|
||||
static const gradeColorsGet = "$baseUrl/v3/shared/grade-colors/get";
|
||||
static const allGradeColors = "$gradeColorsGet/all";
|
||||
static const gradeColorsByID = "$gradeColorsGet/";
|
||||
|
||||
|
||||
@@ -208,7 +208,7 @@ class App extends StatelessWidget {
|
||||
),
|
||||
);
|
||||
},
|
||||
title: "reFilc",
|
||||
title: "Firka",
|
||||
debugShowCheckedModeBanner: false,
|
||||
theme: AppTheme.lightTheme(context, palette: corePalette),
|
||||
darkTheme: AppTheme.darkTheme(context, palette: corePalette),
|
||||
|
||||
@@ -2,7 +2,6 @@ enum AccountType {
|
||||
apple,
|
||||
google,
|
||||
meta,
|
||||
qwid,
|
||||
}
|
||||
|
||||
class LinkedAccount {
|
||||
@@ -26,9 +25,7 @@ class LinkedAccount {
|
||||
? AccountType.apple
|
||||
: json['type'] == 'google'
|
||||
? AccountType.google
|
||||
: json['type'] == 'meta'
|
||||
? AccountType.meta
|
||||
: AccountType.qwid,
|
||||
: AccountType.meta,
|
||||
username: json['username'],
|
||||
displayName: json['display_name'],
|
||||
id: json['id'],
|
||||
|
||||
@@ -485,14 +485,14 @@ class SettingsProvider extends ChangeNotifier {
|
||||
bellDelayEnabled: false,
|
||||
bellDelay: 0,
|
||||
gradeOpeningFun: false,
|
||||
iconPack: IconPack.cupertino,
|
||||
customAccentColor: const Color(0xff3D7BF4),
|
||||
iconPack: IconPack.material,
|
||||
customAccentColor: const Color(0xFFA7DC22),
|
||||
customBackgroundColor: const Color(0xff000000),
|
||||
customHighlightColor: const Color(0xff222222),
|
||||
customIconColor: const Color(0x00000000),
|
||||
customTextColor: const Color(0x00000000),
|
||||
shadowEffect: true,
|
||||
premiumScopes: [],
|
||||
shadowEffect: false,
|
||||
premiumScopes: ["refilc.plus.*"],
|
||||
premiumAccessToken: "",
|
||||
premiumLogin: "",
|
||||
lastAccountId: "",
|
||||
@@ -504,14 +504,14 @@ class SettingsProvider extends ChangeNotifier {
|
||||
welcomeMessage: '',
|
||||
appIcon: 'refilc_default',
|
||||
currentThemeId: '',
|
||||
currentThemeDisplayName: '',
|
||||
currentThemeCreator: 'reFilc',
|
||||
currentThemeDisplayName: 'Alapértelmezett',
|
||||
currentThemeCreator: 'Firka',
|
||||
showBreaks: false,
|
||||
pinSetGeneral: '',
|
||||
pinSetPersonalize: '',
|
||||
pinSetNotify: '',
|
||||
pinSetExtras: '',
|
||||
fontFamily: '',
|
||||
fontFamily: 'Figtree',
|
||||
titleOnlyFont: false,
|
||||
plusSessionId: '',
|
||||
calSyncRoomLocation: 'location',
|
||||
@@ -522,8 +522,8 @@ class SettingsProvider extends ChangeNotifier {
|
||||
navShadow: true,
|
||||
newColors: true,
|
||||
uwuMode: false,
|
||||
newPopups: true,
|
||||
unseenNewFeatures: ['grade_exporting'],
|
||||
newPopups: false,
|
||||
unseenNewFeatures: [],
|
||||
cloudSyncEnabled: false,
|
||||
cloudSyncToken: '',
|
||||
updatedAt: DateTime.now(),
|
||||
|
||||
@@ -17,7 +17,7 @@ enum AccentColor {
|
||||
}
|
||||
|
||||
Map<AccentColor, Color> accentColorMap = {
|
||||
AccentColor.filc: const Color(0xFF3D7BF4),
|
||||
AccentColor.filc: const Color(0xFFA7DC22),
|
||||
AccentColor.blue: Colors.blue.shade300,
|
||||
AccentColor.green: Colors.green.shade400,
|
||||
AccentColor.lime: Colors.lightGreen.shade400,
|
||||
@@ -28,69 +28,69 @@ Map<AccentColor, Color> accentColorMap = {
|
||||
AccentColor.purple: Colors.purple.shade300,
|
||||
//AccentColor.none: Colors.black,
|
||||
AccentColor.ogfilc: const Color(0xff20AC9B),
|
||||
AccentColor.adaptive: const Color(0xFF3D7BF4),
|
||||
AccentColor.custom: const Color(0xFF3D7BF4),
|
||||
AccentColor.adaptive: const Color(0xFFA7DC22),
|
||||
AccentColor.custom: const Color(0xFFA7DC22),
|
||||
};
|
||||
|
||||
// new v5 things
|
||||
Map<AccentColor, Color> lightPrimary = {
|
||||
AccentColor.filc: const Color(0xFF050B15),
|
||||
AccentColor.filc: const Color(0xFF394C0A), //
|
||||
};
|
||||
Map<AccentColor, Color> lightSecondary = {
|
||||
AccentColor.filc: const Color(0xFF3F444F),
|
||||
AccentColor.filc: const Color(0xCC394C0A), //
|
||||
};
|
||||
Map<AccentColor, Color> lightTeritary = {
|
||||
AccentColor.filc: const Color(0xFF1C469A),
|
||||
AccentColor.filc: const Color(0x80394C0A), //
|
||||
};
|
||||
Map<AccentColor, Color> lightIcon = {
|
||||
AccentColor.filc: const Color(0xFF0A2456),
|
||||
};
|
||||
Map<AccentColor, Color> lightAccent = {
|
||||
AccentColor.filc: const Color(0xFF487DE6),
|
||||
AccentColor.filc: const Color(0xFFA7DC22), //
|
||||
};
|
||||
Map<AccentColor, Color> lightBgDarkened = {
|
||||
AccentColor.filc: const Color(0xFFB9C8E5),
|
||||
AccentColor.filc: const Color(0xFFFAFFF0), //
|
||||
};
|
||||
Map<AccentColor, Color> lightBtnSecStrk = {
|
||||
AccentColor.filc: const Color(0xFFCEDBF5),
|
||||
};
|
||||
Map<AccentColor, Color> lightBg = {
|
||||
AccentColor.filc: const Color(0xFFDAE4F7),
|
||||
AccentColor.filc: const Color(0xFFF3FBDE), //
|
||||
};
|
||||
Map<AccentColor, Color> lightCard = {
|
||||
AccentColor.filc: const Color(0xFFEDF3FF),
|
||||
AccentColor.filc: const Color(0xFFF3FBDE), //
|
||||
};
|
||||
Map<AccentColor, Color> lightBtnSec = {
|
||||
AccentColor.filc: const Color(0xFFFBFCFF),
|
||||
AccentColor.filc: const Color(0xFFFEFFFD), //
|
||||
};
|
||||
|
||||
Map<AccentColor, Color> darkPrimary = {
|
||||
AccentColor.filc: const Color(0xFFEBF1FD),
|
||||
AccentColor.filc: const Color(0xFFEAF7CC), //
|
||||
};
|
||||
Map<AccentColor, Color> darkSecondary = {
|
||||
AccentColor.filc: const Color(0xFFCFD8E9),
|
||||
AccentColor.filc: const Color(0xB3EAF7CC), //
|
||||
};
|
||||
Map<AccentColor, Color> darkTeritary = {
|
||||
AccentColor.filc: const Color(0xFFAEC8FC),
|
||||
AccentColor.filc: const Color(0x80EAF7CC), //
|
||||
};
|
||||
Map<AccentColor, Color> darkIcon = {
|
||||
AccentColor.filc: const Color(0xFFBAD1FF),
|
||||
};
|
||||
Map<AccentColor, Color> darkAccent = {
|
||||
AccentColor.filc: const Color(0xFF487DE6),
|
||||
AccentColor.filc: const Color(0xFFA7DC22), //
|
||||
};
|
||||
Map<AccentColor, Color> darkBgDarkened = {
|
||||
AccentColor.filc: const Color(0xFF010205),
|
||||
AccentColor.filc: const Color(0xFF0D1202), //
|
||||
};
|
||||
Map<AccentColor, Color> darkBtnSecStrk = {
|
||||
AccentColor.filc: const Color(0xFF1C2230),
|
||||
};
|
||||
Map<AccentColor, Color> darkBg = {
|
||||
AccentColor.filc: const Color(0xFF070A0E),
|
||||
AccentColor.filc: const Color(0xFF141905), //
|
||||
};
|
||||
Map<AccentColor, Color> darkCard = {
|
||||
AccentColor.filc: const Color(0xFF0F131B),
|
||||
AccentColor.filc: const Color(0xFF141905), //
|
||||
};
|
||||
Map<AccentColor, Color> darkBtnSec = {
|
||||
AccentColor.filc: const Color(0xFF131822),
|
||||
AccentColor.filc: const Color(0xFF20290B), //
|
||||
};
|
||||
|
||||
@@ -7,9 +7,9 @@ class DarkMobileAppColors implements ThemeAppColors {
|
||||
@override
|
||||
final text = Colors.white;
|
||||
@override
|
||||
final background = const Color(0xff000000);
|
||||
final background = const Color(0xff0D1202); //
|
||||
@override
|
||||
final highlight = const Color(0xff141516);
|
||||
final highlight = const Color(0xff141905); //
|
||||
@override
|
||||
final red = const Color(0xffFF453A);
|
||||
@override
|
||||
@@ -19,7 +19,7 @@ class DarkMobileAppColors implements ThemeAppColors {
|
||||
@override
|
||||
final green = const Color(0xff32D74B);
|
||||
@override
|
||||
final filc = const Color(0xff3d7bf4);
|
||||
final filc = const Color(0xFFA7DC22); //
|
||||
@override
|
||||
final teal = const Color(0xff64D2FF);
|
||||
@override
|
||||
@@ -32,24 +32,24 @@ class DarkMobileAppColors implements ThemeAppColors {
|
||||
final pink = const Color(0xffFF375F);
|
||||
// new default grade colors
|
||||
@override
|
||||
final gradeFive = const Color(0xff007D49);
|
||||
final gradeFive = const Color(0xFF22CCAD); //
|
||||
@override
|
||||
final gradeFour = const Color(0xFF34C759);
|
||||
final gradeFour = const Color(0xFF92EA3B); //
|
||||
@override
|
||||
final gradeThree = const Color(0xFFFFCC00);
|
||||
final gradeThree = const Color(0xFFF9CF00); //
|
||||
@override
|
||||
final gradeTwo = const Color(0xFFFF8008);
|
||||
final gradeTwo = const Color(0xFFFFA046); //
|
||||
@override
|
||||
final gradeOne = const Color(0xFFFF453A);
|
||||
final gradeOne = const Color(0xFFFF54A1); //
|
||||
// v5 ui login
|
||||
@override
|
||||
final loginPrimary = const Color(0xFFD4DAE7);
|
||||
final loginPrimary = const Color(0xFF394C0A); //
|
||||
@override
|
||||
final loginSecondary = const Color(0xFFA4B1CC);
|
||||
final loginSecondary = const Color(0xCC394C0A); //
|
||||
@override
|
||||
final inputBorder = const Color(0xFF586A8E);
|
||||
final inputBorder = const Color(0xFFA7DC22); //
|
||||
@override
|
||||
final loginBackground = const Color(0xFF0F131D);
|
||||
final loginBackground = const Color(0xFFFAFFF0); //
|
||||
@override
|
||||
final buttonBackground = const Color(0xFF3D7BF4);
|
||||
final buttonBackground = const Color(0xFFFEFFFD); //
|
||||
}
|
||||
|
||||
@@ -7,9 +7,9 @@ class LightMobileAppColors implements ThemeAppColors {
|
||||
@override
|
||||
final text = const Color(0xFF000000);
|
||||
@override
|
||||
final background = const Color(0xffF4F9FF);
|
||||
final background = const Color(0xffFAFFF0); //
|
||||
@override
|
||||
final highlight = const Color(0xffFFFFFF);
|
||||
final highlight = const Color(0xffF3FBDE); //
|
||||
@override
|
||||
final red = const Color(0xffFF3B30);
|
||||
@override
|
||||
@@ -19,7 +19,7 @@ class LightMobileAppColors implements ThemeAppColors {
|
||||
@override
|
||||
final green = const Color(0xff34C759);
|
||||
@override
|
||||
final filc = const Color(0xff3d7bf4);
|
||||
final filc = const Color(0xFFA7DC22); //
|
||||
@override
|
||||
final teal = const Color(0xff5AC8FA);
|
||||
@override
|
||||
@@ -32,24 +32,24 @@ class LightMobileAppColors implements ThemeAppColors {
|
||||
final pink = const Color(0xffFF2D55);
|
||||
// new default grade colors
|
||||
@override
|
||||
final gradeFive = const Color(0xff007D49);
|
||||
final gradeFive = const Color(0xFF22CCAD); //
|
||||
@override
|
||||
final gradeFour = const Color(0xFF34C759);
|
||||
final gradeFour = const Color(0xFF92EA3B); //
|
||||
@override
|
||||
final gradeThree = const Color(0xFFFFCC00);
|
||||
final gradeThree = const Color(0xFFF9CF00); //
|
||||
@override
|
||||
final gradeTwo = const Color(0xFFFF8008);
|
||||
final gradeTwo = const Color(0xFFFFA046); //
|
||||
@override
|
||||
final gradeOne = const Color(0xFFFF453A);
|
||||
final gradeOne = const Color(0xFFFF54A1); //
|
||||
// ui v5 login
|
||||
@override
|
||||
final loginPrimary = const Color(0xFF0A1C41);
|
||||
final loginPrimary = const Color(0xFF394C0A); //
|
||||
@override
|
||||
final loginSecondary = const Color(0xFF0A1C41);
|
||||
final loginSecondary = const Color(0xCC394C0A); //
|
||||
@override
|
||||
final inputBorder = const Color(0xFF586A8E);
|
||||
final inputBorder = const Color(0xFFA7DC22); //
|
||||
@override
|
||||
final loginBackground = const Color(0xFFEFF4FE);
|
||||
final loginBackground = const Color(0xFFFAFFF0); //
|
||||
@override
|
||||
final buttonBackground = const Color(0xFF0A1C41);
|
||||
final buttonBackground = const Color(0xFFFEFFFD); //
|
||||
}
|
||||
|
||||
@@ -4,7 +4,6 @@ import 'package:refilc/models/ad.dart';
|
||||
import 'package:refilc/ui/date_widget.dart';
|
||||
import 'package:refilc_mobile_ui/common/widgets/ad/ad_tile.dart';
|
||||
import 'package:refilc_mobile_ui/common/widgets/ad/ad_viewable.dart' as mobile;
|
||||
import 'package:refilc_mobile_ui/plus/plus_screen.dart';
|
||||
import 'package:refilc_plus/providers/plus_provider.dart';
|
||||
import 'package:uuid/uuid.dart';
|
||||
|
||||
@@ -30,7 +29,7 @@ List<DateWidget> getWidgets(List<Ad> providerAds, BuildContext context) {
|
||||
),
|
||||
onTap: () => Navigator.of(context, rootNavigator: true)
|
||||
.push(MaterialPageRoute(builder: (context) {
|
||||
return const PlusScreen();
|
||||
return Container();
|
||||
})),
|
||||
padding: const EdgeInsets.symmetric(horizontal: 5.0),
|
||||
showExternalIcon: false,
|
||||
|
||||
@@ -3,7 +3,7 @@ description: "Egy nem hivatalos e-KRÉTA kliens, diákoktól diákoknak."
|
||||
homepage: https://refilc.hu
|
||||
publish_to: "none"
|
||||
|
||||
version: 5.1.4+288
|
||||
version: 5.1.5+289
|
||||
|
||||
environment:
|
||||
sdk: ^3.6.0
|
||||
@@ -46,7 +46,6 @@ dependencies:
|
||||
elegant_notification: ^2.4.1
|
||||
flutter_feather_icons: ^2.0.0+1
|
||||
animated_flip_counter: ^0.3.4
|
||||
rive: ^0.12.4
|
||||
animated_background: ^2.0.0
|
||||
dropdown_button2: ^2.3.9
|
||||
home_widget: ^0.7.0+1
|
||||
@@ -81,13 +80,9 @@ flutter:
|
||||
uses-material-design: true
|
||||
|
||||
assets:
|
||||
- assets/icons/ic_launcher.png
|
||||
- assets/icons/ic_splash.png
|
||||
- assets/icons/ic_rounded.png
|
||||
- assets/animations/
|
||||
- assets/images/
|
||||
- assets/images/subject_covers/
|
||||
- assets/images/ext_logo/
|
||||
- assets/svg/menu_icons/
|
||||
- assets/other/dirtywords.xml
|
||||
- assets/svg/
|
||||
|
||||
@@ -56,15 +56,15 @@ class GradeProvider with ChangeNotifier {
|
||||
}
|
||||
}
|
||||
|
||||
Future<void> unseenAll() async {
|
||||
String? userId = _user.id;
|
||||
if (userId != null) {
|
||||
final userStore = _database.userStore;
|
||||
userStore.storeLastSeen(DateTime(1969),
|
||||
userId: userId, category: LastSeenCategory.surprisegrade);
|
||||
_lastSeen = DateTime(1969);
|
||||
}
|
||||
Future<void> unseenAll() async {
|
||||
String? userId = _user.id;
|
||||
if (userId != null) {
|
||||
final userStore = _database.userStore;
|
||||
await userStore.storeLastSeen(DateTime(1969),
|
||||
userId: userId, category: LastSeenCategory.surprisegrade);
|
||||
_lastSeen = DateTime(1969);
|
||||
}
|
||||
}
|
||||
|
||||
Future<void> restore() async {
|
||||
String? userId = _user.id;
|
||||
|
||||
@@ -6,6 +6,7 @@ import 'package:refilc/models/shared_theme.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
import 'package:uuid/uuid.dart';
|
||||
import 'package:refilc/models/user.dart';
|
||||
|
||||
List? _cachedThemesJson;
|
||||
|
||||
@@ -24,17 +25,23 @@ class ShareProvider extends ChangeNotifier {
|
||||
Future<(SharedTheme?, int)> shareCurrentTheme(
|
||||
BuildContext context, {
|
||||
bool isPublic = false,
|
||||
bool shareNick = true,
|
||||
bool shareNick = false,
|
||||
required SharedGradeColors gradeColors,
|
||||
String displayName = '',
|
||||
}) async {
|
||||
final SettingsProvider settings =
|
||||
Provider.of<SettingsProvider>(context, listen: false);
|
||||
|
||||
String? nickname = _user.nickname;
|
||||
|
||||
if (_user.nickname == _user.name || _user.nickname == '') {
|
||||
nickname = 'Anonymous';
|
||||
}
|
||||
|
||||
Map themeJson = {
|
||||
'public_id': const Uuid().v4(),
|
||||
'is_public': isPublic,
|
||||
'nickname': shareNick ? _user.nickname : 'Anonymous',
|
||||
'nickname': shareNick ? nickname : 'Anonymous',
|
||||
'display_name': displayName,
|
||||
'background_color': (settings.customBackgroundColor ??
|
||||
SettingsProvider.defaultSettings().customBackgroundColor)
|
||||
@@ -168,7 +175,7 @@ Future<List<SharedTheme>> getAllPublicThemes(BuildContext context,
|
||||
Map gradeColorsJson = {
|
||||
'public_id': const Uuid().v4(),
|
||||
'is_public': isPublic,
|
||||
'nickname': shareNick ? _user.nickname : 'Anonymous',
|
||||
'nickname': 'Anonymous',
|
||||
'five_color': settings.gradeColors[4].value,
|
||||
'four_color': settings.gradeColors[3].value,
|
||||
'three_color': settings.gradeColors[2].value,
|
||||
|
||||
@@ -7,7 +7,6 @@ import 'package:refilc_kreta_api/providers/grade_provider.dart';
|
||||
import 'package:refilc_mobile_ui/common/widgets/grade/surprise_grade.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
import 'package:rive/rive.dart';
|
||||
|
||||
import 'new_grades.i18n.dart';
|
||||
|
||||
@@ -49,8 +48,11 @@ class NewGradesSurprise extends StatelessWidget {
|
||||
blurRadius: 18.0,
|
||||
)
|
||||
]),
|
||||
child: const RiveAnimation.asset(
|
||||
"assets/animations/backpack-2.riv"),
|
||||
child: Icon(
|
||||
Icons.backpack,
|
||||
size: 36.0,
|
||||
color: Theme.of(context).colorScheme.secondary,
|
||||
)
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
@@ -14,7 +14,6 @@ import 'package:refilc_mobile_ui/pages/home/particle.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:refilc/utils/format.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
import 'package:rive/rive.dart' as rive;
|
||||
|
||||
import 'new_grades.i18n.dart';
|
||||
|
||||
@@ -33,7 +32,6 @@ class _SurpriseGradeState extends State<SurpriseGrade>
|
||||
late AnimationController _revealAnimScale;
|
||||
late AnimationController _revealAnimGrade;
|
||||
late AnimationController _revealAnimParticle;
|
||||
late rive.RiveAnimationController _controller;
|
||||
|
||||
late SettingsProvider settingsProvider;
|
||||
|
||||
@@ -59,7 +57,6 @@ class _SurpriseGradeState extends State<SurpriseGrade>
|
||||
_revealAnimParticle =
|
||||
AnimationController(vsync: this, duration: const Duration(seconds: 2));
|
||||
_revealAnimScale.animateTo(0.7, duration: Duration.zero);
|
||||
_controller = rive.SimpleAnimation('Timeline 1', autoplay: false);
|
||||
WidgetsBinding.instance.addPostFrameCallback((_) {
|
||||
_revealAnimFade.animateTo(1.0, curve: Curves.easeInOut);
|
||||
Future.delayed(const Duration(milliseconds: 200), () {
|
||||
@@ -80,7 +77,6 @@ class _SurpriseGradeState extends State<SurpriseGrade>
|
||||
_revealAnimScale.dispose();
|
||||
_revealAnimGrade.dispose();
|
||||
_revealAnimParticle.dispose();
|
||||
_controller.dispose();
|
||||
super.dispose();
|
||||
}
|
||||
|
||||
@@ -112,8 +108,6 @@ class _SurpriseGradeState extends State<SurpriseGrade>
|
||||
}
|
||||
subtitle = false;
|
||||
setState(() => hold = false);
|
||||
_controller.isActive = true;
|
||||
await Future.delayed(const Duration(seconds: 2));
|
||||
if (mounted) {
|
||||
_revealAnimGrade.animateTo(1.0, curve: Curves.fastLinearToSlowEaseIn);
|
||||
}
|
||||
@@ -124,336 +118,320 @@ class _SurpriseGradeState extends State<SurpriseGrade>
|
||||
}
|
||||
}
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
settingsProvider = Provider.of<SettingsProvider>(context);
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
settingsProvider = Provider.of<SettingsProvider>(context);
|
||||
|
||||
return AnimatedBuilder(
|
||||
animation: _revealAnimFade,
|
||||
builder: (context, child) {
|
||||
return FadeTransition(
|
||||
opacity: _revealAnimFade,
|
||||
child: Material(
|
||||
color: Colors.black.withValues(alpha: .75),
|
||||
return AnimatedBuilder(
|
||||
animation: _revealAnimFade,
|
||||
builder: (context, child) {
|
||||
return FadeTransition(
|
||||
opacity: _revealAnimFade,
|
||||
child: Material(
|
||||
color: Colors.black.withOpacity(0.75),
|
||||
child: Container(
|
||||
color: Theme.of(context)
|
||||
.colorScheme
|
||||
.secondary
|
||||
.withOpacity(0.05),
|
||||
child: Container(
|
||||
color: Theme.of(context)
|
||||
.colorScheme
|
||||
.secondary
|
||||
.withValues(alpha: .05),
|
||||
child: Container(
|
||||
decoration: const BoxDecoration(
|
||||
gradient: RadialGradient(
|
||||
colors: [Colors.transparent, Colors.black],
|
||||
radius: 1.5,
|
||||
stops: [0.2, 1.0],
|
||||
decoration: const BoxDecoration(
|
||||
gradient: RadialGradient(
|
||||
colors: [Colors.transparent, Colors.black],
|
||||
radius: 1.5,
|
||||
stops: [0.2, 1.0],
|
||||
),
|
||||
),
|
||||
child: bg.AnimatedBackground(
|
||||
vsync: this,
|
||||
behaviour: bg.RandomParticleBehaviour(
|
||||
options: bg.ParticleOptions(
|
||||
baseColor: Theme.of(context).colorScheme.secondary,
|
||||
spawnMinSpeed: 5.0,
|
||||
spawnMaxSpeed: 10.0,
|
||||
minOpacity: 0.05,
|
||||
maxOpacity: 0.08,
|
||||
spawnMinRadius: 30.0,
|
||||
spawnMaxRadius: 50.0,
|
||||
),
|
||||
),
|
||||
child: bg.AnimatedBackground(
|
||||
vsync: this,
|
||||
behaviour: bg.RandomParticleBehaviour(
|
||||
options: bg.ParticleOptions(
|
||||
baseColor: Theme.of(context).colorScheme.secondary,
|
||||
spawnMinSpeed: 5.0,
|
||||
spawnMaxSpeed: 10.0,
|
||||
minOpacity: .05,
|
||||
maxOpacity: .08,
|
||||
spawnMinRadius: 30.0,
|
||||
spawnMaxRadius: 50.0,
|
||||
particleCount: 20,
|
||||
),
|
||||
),
|
||||
child: ScaleTransition(
|
||||
scale: _revealAnimScale,
|
||||
child: child,
|
||||
),
|
||||
child: ScaleTransition(
|
||||
scale: _revealAnimScale,
|
||||
child: child,
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
},
|
||||
child: AnimatedBuilder(
|
||||
animation: _revealAnimGrade,
|
||||
builder: (context, child) {
|
||||
return Stack(
|
||||
alignment: Alignment.center,
|
||||
children: [
|
||||
Column(
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: [
|
||||
SlideTransition(
|
||||
position: _revealAnimGrade.drive(
|
||||
Tween(begin: Offset.zero, end: const Offset(0, 0.7))),
|
||||
child: AnimatedScale(
|
||||
scale: hold ? 1.1 : 1.0,
|
||||
curve: Curves.easeOutBack,
|
||||
duration: const Duration(milliseconds: 200),
|
||||
child: GestureDetector(
|
||||
onLongPressDown: (_) => setState(() => hold = true),
|
||||
onLongPressEnd: (_) => reveal(),
|
||||
onLongPressCancel: reveal,
|
||||
child: ScaleTransition(
|
||||
scale: CurvedAnimation(
|
||||
curve: Curves.easeInOut,
|
||||
parent: _revealAnimGrade
|
||||
.drive(Tween(begin: 1.0, end: 0.8))),
|
||||
child: Stack(
|
||||
alignment: Alignment.center,
|
||||
children: [
|
||||
SizedBox(
|
||||
width: 300,
|
||||
height: 300,
|
||||
child: Icon(
|
||||
Icons.backpack,
|
||||
size: 200.0,
|
||||
color: Theme.of(context).colorScheme.secondary,
|
||||
),
|
||||
),
|
||||
SlideTransition(
|
||||
position: _revealAnimParticle.drive(Tween(
|
||||
begin: const Offset(0, 0.3),
|
||||
end: const Offset(0, 0.8))),
|
||||
child: FadeTransition(
|
||||
opacity: _revealAnimParticle,
|
||||
child: ClipRRect(
|
||||
borderRadius: BorderRadius.circular(24.0),
|
||||
child: BackdropFilter(
|
||||
filter: ImageFilter.blur(
|
||||
sigmaX: 32.0, sigmaY: 32.0),
|
||||
child: Container(
|
||||
width: double.infinity,
|
||||
padding: const EdgeInsets.symmetric(
|
||||
horizontal: 32.0, vertical: 20.0),
|
||||
decoration: BoxDecoration(
|
||||
color: Colors.white.withOpacity(0.3),
|
||||
borderRadius:
|
||||
BorderRadius.circular(24.0),
|
||||
border: Border.all(
|
||||
color: Colors.black.withOpacity(0.3),
|
||||
width: 1.0),
|
||||
),
|
||||
child: Row(
|
||||
children: [
|
||||
Expanded(
|
||||
child: Column(
|
||||
crossAxisAlignment:
|
||||
CrossAxisAlignment.start,
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
if (widget.grade.description !=
|
||||
"")
|
||||
Text(
|
||||
widget.grade.description,
|
||||
style: const TextStyle(
|
||||
color: Colors.white,
|
||||
fontWeight:
|
||||
FontWeight.bold,
|
||||
fontSize: 26.0,
|
||||
),
|
||||
maxLines: 2,
|
||||
overflow:
|
||||
TextOverflow.ellipsis,
|
||||
),
|
||||
Text(
|
||||
widget.grade.subject
|
||||
.renamedTo ??
|
||||
widget.grade.subject.name
|
||||
.capital(),
|
||||
style: TextStyle(
|
||||
color: Colors.white
|
||||
.withOpacity(0.8),
|
||||
fontWeight:
|
||||
FontWeight.bold,
|
||||
fontSize: 24.0,
|
||||
fontStyle: widget
|
||||
.grade
|
||||
.subject
|
||||
.isRenamed &&
|
||||
settingsProvider
|
||||
.renamedSubjectsItalics
|
||||
? FontStyle.italic
|
||||
: null),
|
||||
maxLines: 2,
|
||||
overflow:
|
||||
TextOverflow.ellipsis,
|
||||
),
|
||||
const SizedBox(height: 2),
|
||||
Text(
|
||||
"${widget.grade.value.weight}%",
|
||||
style: TextStyle(
|
||||
color: Colors.white
|
||||
.withOpacity(0.7),
|
||||
fontWeight: FontWeight.w600,
|
||||
fontSize: 20.0,
|
||||
),
|
||||
maxLines: 2,
|
||||
overflow:
|
||||
TextOverflow.ellipsis,
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
const SizedBox(width: 20.0),
|
||||
Icon(
|
||||
SubjectIcon.resolveVariant(
|
||||
subject: widget.grade.subject,
|
||||
context: context),
|
||||
color: Colors.white,
|
||||
size: 82.0,
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
const SizedBox(height: 42.0),
|
||||
AnimatedOpacity(
|
||||
opacity: subtitle ? 1.0 : 0.0,
|
||||
duration: const Duration(milliseconds: 300),
|
||||
child: Text(
|
||||
"open_subtitle".i18n,
|
||||
style: TextStyle(
|
||||
color: Colors.white.withOpacity(0.8),
|
||||
fontWeight: FontWeight.w600,
|
||||
fontSize: 24.0,
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
if (_revealAnimGrade.value > 0)
|
||||
AnimatedBuilder(
|
||||
animation: _revealAnimParticle,
|
||||
builder: (context, child) {
|
||||
bool shouldPaint = false;
|
||||
if (_revealAnimParticle.status ==
|
||||
AnimationStatus.forward ||
|
||||
_revealAnimParticle.status ==
|
||||
AnimationStatus.reverse) {
|
||||
shouldPaint = true;
|
||||
}
|
||||
|
||||
String? rr = rarities[widget.grade.value.value.toString()];
|
||||
rr ??= '';
|
||||
|
||||
if (rr.replaceAll(' ', '') == '') {
|
||||
rr = defaultRarities[widget.grade.value.value - 1].i18n;
|
||||
}
|
||||
|
||||
return ScaleTransition(
|
||||
scale: _revealAnimGrade,
|
||||
child: FadeTransition(
|
||||
opacity: _revealAnimGrade,
|
||||
child: SlideTransition(
|
||||
position: _revealAnimGrade.drive(Tween(
|
||||
begin: Offset.zero, end: const Offset(0, -0.6))),
|
||||
child: Column(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
SlideTransition(
|
||||
position: _revealAnimGrade.drive(Tween(
|
||||
begin: Offset.zero,
|
||||
end: const Offset(0, -0.9))),
|
||||
child: Text(
|
||||
rr,
|
||||
style: TextStyle(
|
||||
fontSize: 46.0,
|
||||
fontWeight: FontWeight.bold,
|
||||
color: gradeColor(
|
||||
context: context,
|
||||
value: widget.grade.value.value),
|
||||
shadows: [
|
||||
Shadow(
|
||||
color: gradeColor(
|
||||
context: context,
|
||||
value: widget.grade.value.value)
|
||||
.withOpacity(0.5),
|
||||
blurRadius: 24.0,
|
||||
),
|
||||
Shadow(
|
||||
color: gradeColor(
|
||||
context: context,
|
||||
value: widget.grade.value.value)
|
||||
.withOpacity(0.3),
|
||||
offset: const Offset(-3, -3),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
const SizedBox(height: 32.0),
|
||||
ScaleTransition(
|
||||
scale: CurvedAnimation(
|
||||
curve: Curves.easeInOutBack,
|
||||
parent: _revealAnimParticle
|
||||
.drive(Tween(begin: 0.6, end: 1.0))),
|
||||
child: CustomPaint(
|
||||
painter: PimpPainter(
|
||||
particle: Sprinkles(),
|
||||
controller: _revealAnimParticle,
|
||||
seed: seed + 1,
|
||||
shouldPaint: shouldPaint,
|
||||
),
|
||||
child: CustomPaint(
|
||||
painter: PimpPainter(
|
||||
particle: Sprinkles(),
|
||||
controller: _revealAnimParticle,
|
||||
seed: seed,
|
||||
shouldPaint: shouldPaint,
|
||||
),
|
||||
child: RotationTransition(
|
||||
turns: CurvedAnimation(
|
||||
curve: Curves.easeInBack,
|
||||
parent: _revealAnimGrade)
|
||||
.drive(Tween(begin: 0.95, end: 1.0)),
|
||||
child: GradeValueWidget(
|
||||
widget.grade.value,
|
||||
fill: true,
|
||||
contrast: true,
|
||||
shadow: true,
|
||||
outline: true,
|
||||
size: 100.0,
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
},
|
||||
),
|
||||
],
|
||||
);
|
||||
},
|
||||
child: AnimatedBuilder(
|
||||
animation: _revealAnimGrade,
|
||||
builder: (context, child) {
|
||||
return Stack(
|
||||
alignment: Alignment.center,
|
||||
children: [
|
||||
Column(
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: [
|
||||
SlideTransition(
|
||||
position: _revealAnimGrade.drive(
|
||||
Tween(begin: Offset.zero, end: const Offset(0, 0.7))),
|
||||
child: AnimatedScale(
|
||||
scale: hold ? 1.1 : 1.0,
|
||||
curve: Curves.easeOutBack,
|
||||
duration: const Duration(milliseconds: 200),
|
||||
child: GestureDetector(
|
||||
onLongPressDown: (_) => setState(() => hold = true),
|
||||
onLongPressEnd: (_) => reveal(),
|
||||
onLongPressCancel: reveal,
|
||||
child: ScaleTransition(
|
||||
scale: CurvedAnimation(
|
||||
curve: Curves.easeInOut,
|
||||
parent: _revealAnimGrade
|
||||
.drive(Tween(begin: 1.0, end: 0.8))),
|
||||
child: Stack(
|
||||
alignment: Alignment.center,
|
||||
children: [
|
||||
SizedBox(
|
||||
width: 300,
|
||||
height: 300,
|
||||
child: rive.RiveAnimation.asset(
|
||||
"assets/animations/backpack-2.riv",
|
||||
fit: BoxFit.contain,
|
||||
controllers: [_controller],
|
||||
antialiasing: false,
|
||||
),
|
||||
),
|
||||
SlideTransition(
|
||||
position: _revealAnimParticle.drive(Tween(
|
||||
begin: const Offset(0, 0.3),
|
||||
end: const Offset(0, 0.8))),
|
||||
child: FadeTransition(
|
||||
opacity: _revealAnimParticle,
|
||||
child: ClipRRect(
|
||||
borderRadius: BorderRadius.circular(24.0),
|
||||
child: BackdropFilter(
|
||||
filter: ImageFilter.blur(
|
||||
sigmaX: 32.0, sigmaY: 32.0),
|
||||
child: Container(
|
||||
width: double.infinity,
|
||||
padding: const EdgeInsets.symmetric(
|
||||
horizontal: 32.0, vertical: 20.0),
|
||||
decoration: BoxDecoration(
|
||||
color: Colors.white
|
||||
.withValues(alpha: .3),
|
||||
borderRadius:
|
||||
BorderRadius.circular(24.0),
|
||||
border: Border.all(
|
||||
color: Colors.black
|
||||
.withValues(alpha: .3),
|
||||
width: 1.0),
|
||||
),
|
||||
child: Row(
|
||||
children: [
|
||||
Expanded(
|
||||
child: Column(
|
||||
crossAxisAlignment:
|
||||
CrossAxisAlignment.start,
|
||||
mainAxisSize:
|
||||
MainAxisSize.min,
|
||||
children: [
|
||||
if (widget.grade
|
||||
.description !=
|
||||
"")
|
||||
Text(
|
||||
widget
|
||||
.grade.description,
|
||||
style: const TextStyle(
|
||||
color: Colors.white,
|
||||
fontWeight:
|
||||
FontWeight.bold,
|
||||
fontSize: 26.0,
|
||||
),
|
||||
maxLines: 2,
|
||||
overflow: TextOverflow
|
||||
.ellipsis,
|
||||
),
|
||||
Text(
|
||||
widget.grade.subject
|
||||
.renamedTo ??
|
||||
widget.grade.subject
|
||||
.name
|
||||
.capital(),
|
||||
style: TextStyle(
|
||||
color: Colors.white
|
||||
.withValues(
|
||||
alpha: .8),
|
||||
fontWeight:
|
||||
FontWeight.bold,
|
||||
fontSize: 24.0,
|
||||
fontStyle: widget
|
||||
.grade
|
||||
.subject
|
||||
.isRenamed &&
|
||||
settingsProvider
|
||||
.renamedSubjectsItalics
|
||||
? FontStyle.italic
|
||||
: null),
|
||||
maxLines: 2,
|
||||
overflow:
|
||||
TextOverflow.ellipsis,
|
||||
),
|
||||
const SizedBox(height: 2),
|
||||
Text(
|
||||
"${widget.grade.value.weight}%",
|
||||
style: TextStyle(
|
||||
color: Colors.white
|
||||
.withValues(
|
||||
alpha: .7),
|
||||
fontWeight:
|
||||
FontWeight.w600,
|
||||
fontSize: 20.0,
|
||||
),
|
||||
maxLines: 2,
|
||||
overflow:
|
||||
TextOverflow.ellipsis,
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
const SizedBox(width: 20.0),
|
||||
Icon(
|
||||
SubjectIcon.resolveVariant(
|
||||
subject:
|
||||
widget.grade.subject,
|
||||
context: context),
|
||||
color: Colors.white,
|
||||
size: 82.0,
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
const SizedBox(height: 42.0),
|
||||
AnimatedOpacity(
|
||||
opacity: subtitle ? 1.0 : 0.0,
|
||||
duration: const Duration(milliseconds: 300),
|
||||
child: Text(
|
||||
"open_subtitle".i18n,
|
||||
style: TextStyle(
|
||||
color: Colors.white.withValues(alpha: .8),
|
||||
fontWeight: FontWeight.w600,
|
||||
fontSize: 24.0,
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
if (_revealAnimGrade.value > 0)
|
||||
AnimatedBuilder(
|
||||
animation: _revealAnimParticle,
|
||||
builder: (context, child) {
|
||||
bool shouldPaint = false;
|
||||
if (_revealAnimParticle.status ==
|
||||
AnimationStatus.forward ||
|
||||
_revealAnimParticle.status ==
|
||||
AnimationStatus.reverse) {
|
||||
shouldPaint = true;
|
||||
}
|
||||
|
||||
String? rr =
|
||||
rarities[widget.grade.value.value.toString()];
|
||||
rr ??= '';
|
||||
|
||||
if (rr.replaceAll(' ', '') == '') {
|
||||
rr = defaultRarities[widget.grade.value.value - 1].i18n;
|
||||
}
|
||||
|
||||
return ScaleTransition(
|
||||
scale: _revealAnimGrade,
|
||||
child: FadeTransition(
|
||||
opacity: _revealAnimGrade,
|
||||
child: SlideTransition(
|
||||
position: _revealAnimGrade.drive(Tween(
|
||||
begin: Offset.zero,
|
||||
end: const Offset(0, -0.6))),
|
||||
child: Column(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
SlideTransition(
|
||||
position: _revealAnimGrade.drive(Tween(
|
||||
begin: Offset.zero,
|
||||
end: const Offset(0, -0.9))),
|
||||
child: Text(
|
||||
rr,
|
||||
style: TextStyle(
|
||||
fontSize: 46.0,
|
||||
fontWeight: FontWeight.bold,
|
||||
color: gradeColor(
|
||||
context: context,
|
||||
value: widget.grade.value.value),
|
||||
shadows: [
|
||||
Shadow(
|
||||
color: gradeColor(
|
||||
context: context,
|
||||
value:
|
||||
widget.grade.value.value)
|
||||
.withValues(alpha: .5),
|
||||
blurRadius: 24.0,
|
||||
),
|
||||
Shadow(
|
||||
color: gradeColor(
|
||||
context: context,
|
||||
value:
|
||||
widget.grade.value.value)
|
||||
.withValues(alpha: .3),
|
||||
offset: const Offset(-3, -3),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
const SizedBox(height: 32.0),
|
||||
ScaleTransition(
|
||||
scale: CurvedAnimation(
|
||||
curve: Curves.easeInOutBack,
|
||||
parent: _revealAnimParticle
|
||||
.drive(Tween(begin: 0.6, end: 1.0))),
|
||||
child: CustomPaint(
|
||||
painter: PimpPainter(
|
||||
particle: Sprinkles(),
|
||||
controller: _revealAnimParticle,
|
||||
seed: seed + 1,
|
||||
shouldPaint: shouldPaint,
|
||||
),
|
||||
child: CustomPaint(
|
||||
painter: PimpPainter(
|
||||
particle: Sprinkles(),
|
||||
controller: _revealAnimParticle,
|
||||
seed: seed,
|
||||
shouldPaint: shouldPaint,
|
||||
),
|
||||
child: RotationTransition(
|
||||
turns: CurvedAnimation(
|
||||
curve: Curves.easeInBack,
|
||||
parent: _revealAnimGrade)
|
||||
.drive(
|
||||
Tween(begin: 0.95, end: 1.0)),
|
||||
child: GradeValueWidget(
|
||||
widget.grade.value,
|
||||
fill: true,
|
||||
contrast: true,
|
||||
shadow: true,
|
||||
outline: true,
|
||||
size: 100.0,
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
},
|
||||
),
|
||||
],
|
||||
);
|
||||
}),
|
||||
);
|
||||
}
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
class PimpPainter extends CustomPainter {
|
||||
|
||||
@@ -63,7 +63,7 @@ class UpdateViewState extends State<UpdateView> {
|
||||
ClipRRect(
|
||||
borderRadius: BorderRadius.circular(18.0),
|
||||
child: Image.asset(
|
||||
"assets/icons/ic_launcher.png",
|
||||
"assets/images/pixel.png",
|
||||
width: 64.0,
|
||||
),
|
||||
)
|
||||
|
||||
@@ -64,6 +64,11 @@ class GradeSubjectView extends StatefulWidget {
|
||||
|
||||
class _GradeSubjectViewState extends State<GradeSubjectView>
|
||||
with TickerProviderStateMixin {
|
||||
|
||||
final Map<String, List<Grade>> _gradeCache = {};
|
||||
final Map<String, List<Exam>> _examCache = {};
|
||||
final Map<String, Widget> _graphCache = {};
|
||||
|
||||
final GlobalKey<ScaffoldState> _scaffoldKey = GlobalKey<ScaffoldState>();
|
||||
|
||||
// Controllers
|
||||
@@ -90,11 +95,76 @@ class _GradeSubjectViewState extends State<GradeSubjectView>
|
||||
|
||||
String plan = '';
|
||||
|
||||
List<Grade> getSubjectGrades(GradeSubject subject) => !gradeCalcMode
|
||||
? gradeProvider.grades.where((e) => e.subject == subject).toList()
|
||||
: calculatorProvider.grades.where((e) => e.subject == subject).toList();
|
||||
List<Exam> getSubjectExams(GradeSubject subject) =>
|
||||
examProvider.exams.where((e) => e.subject == subject).toList();
|
||||
List<Grade> getSubjectGrades(GradeSubject subject) {
|
||||
final cacheKey = '${subject.id}_${gradeCalcMode}';
|
||||
return _gradeCache.putIfAbsent(cacheKey, () {
|
||||
return !gradeCalcMode
|
||||
? gradeProvider.grades.where((e) => e.subject == subject).toList()
|
||||
: calculatorProvider.grades.where((e) => e.subject == subject).toList();
|
||||
});
|
||||
}
|
||||
List<Exam> getSubjectExams(GradeSubject subject) {
|
||||
return _examCache.putIfAbsent(subject.id, () {
|
||||
return examProvider.exams.where((e) => e.subject == subject).toList();
|
||||
});
|
||||
}
|
||||
|
||||
Widget buildGradeGraph(List<Grade> grades, double prevAvg) {
|
||||
final cacheKey = '${grades.length}_$prevAvg';
|
||||
return Padding(
|
||||
padding: const EdgeInsets.only(top: 16.0, bottom: 8.0),
|
||||
child: Panel(
|
||||
title: Row(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
children: [
|
||||
Text("annual_average".i18n),
|
||||
if (average != prevAvg)
|
||||
TrendDisplay(current: average, previous: prevAvg),
|
||||
],
|
||||
),
|
||||
child: Container(
|
||||
padding: const EdgeInsets.only(top: 16.0, right: 12.0),
|
||||
child: GradeGraph(
|
||||
grades,
|
||||
dayThreshold: 5,
|
||||
classAvg: widget.groupAverage,
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Widget buildGradeTiles(List<Grade> grades) {
|
||||
return ListView.builder(
|
||||
physics: const BouncingScrollPhysics(),
|
||||
itemCount: grades.length,
|
||||
itemExtent: 80.0,
|
||||
itemBuilder: (context, index) {
|
||||
final grade = grades[index];
|
||||
if (grade.type == GradeType.midYear) {
|
||||
return GradeViewable(grade);
|
||||
}
|
||||
return CertificationTile(
|
||||
grade,
|
||||
padding: EdgeInsets.only(
|
||||
bottom: 8.0,
|
||||
top: (index == 0) ? 0.0 : 8.0),
|
||||
newStyle: true,
|
||||
);
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
@override
|
||||
void dispose() {
|
||||
_gradeCache.clear();
|
||||
_examCache.clear();
|
||||
_graphCache.clear();
|
||||
_scrollController.dispose();
|
||||
_tabController.dispose();
|
||||
super.dispose();
|
||||
}
|
||||
|
||||
bool showGraph(List<Grade> subjectGrades) {
|
||||
if (gradeCalcMode) return true;
|
||||
@@ -331,31 +401,14 @@ class _GradeSubjectViewState extends State<GradeSubjectView>
|
||||
average = AverageHelper.averageEvals(subjectGrades);
|
||||
final prevAvg = subjectGrades.isNotEmpty
|
||||
? AverageHelper.averageEvals(subjectGrades
|
||||
.where((e) => e.date.isBefore(subjectGrades
|
||||
.reduce((v, e) => e.date.isAfter(v.date) ? e : v)
|
||||
.date
|
||||
.subtract(const Duration(days: 30))))
|
||||
.toList())
|
||||
.where((e) => e.date.isBefore(subjectGrades
|
||||
.reduce((v, e) => e.date.isAfter(v.date) ? e : v)
|
||||
.date
|
||||
.subtract(const Duration(days: 30))))
|
||||
.toList())
|
||||
: 0.0;
|
||||
|
||||
gradeGraph = Padding(
|
||||
padding: const EdgeInsets.only(top: 16.0, bottom: 8.0),
|
||||
child: Panel(
|
||||
title: Row(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
children: [
|
||||
Text("annual_average".i18n),
|
||||
if (average != prevAvg)
|
||||
TrendDisplay(current: average, previous: prevAvg),
|
||||
],
|
||||
),
|
||||
child: Container(
|
||||
padding: const EdgeInsets.only(top: 16.0, right: 12.0),
|
||||
child: GradeGraph(subjectGrades,
|
||||
dayThreshold: 5, classAvg: widget.groupAverage),
|
||||
),
|
||||
),
|
||||
);
|
||||
gradeGraph = buildGradeGraph(subjectGrades, prevAvg);
|
||||
|
||||
if (!gradeCalcMode) {
|
||||
buildTiles(
|
||||
@@ -415,19 +468,6 @@ class _GradeSubjectViewState extends State<GradeSubjectView>
|
||||
heroTag: "btn_goal_planner",
|
||||
backgroundColor: Theme.of(context).colorScheme.tertiary,
|
||||
onPressed: () {
|
||||
// if (!Provider.of<PlusProvider>(context, listen: false)
|
||||
// .hasScope(PremiumScopes.goalPlanner)) {
|
||||
// PlusLockedFeaturePopup.show(
|
||||
// context: context, feature: PremiumFeature.goalplanner);
|
||||
// return;
|
||||
// }
|
||||
|
||||
// ScaffoldMessenger.of(context).showSnackBar(
|
||||
// const SnackBar(content: Text("Hamarosan...")));
|
||||
|
||||
// Navigator.of(context).push(CupertinoPageRoute(
|
||||
// builder: (context) =>
|
||||
// GoalPlannerScreen(subject: widget.subject)));
|
||||
GoalTrackPopup.show(context, subject: widget.subject);
|
||||
},
|
||||
child: const Icon(FeatherIcons.flag, size: 20.0),
|
||||
|
||||
@@ -71,7 +71,32 @@ class NotesPageState extends State<NotesPage> with TickerProviderStateMixin {
|
||||
final TextEditingController _taskName = TextEditingController();
|
||||
final TextEditingController _taskContent = TextEditingController();
|
||||
|
||||
void generateTiles() async {
|
||||
@override
|
||||
void initState() {
|
||||
super.initState();
|
||||
WidgetsBinding.instance.addPostFrameCallback((_) {
|
||||
generateTiles();
|
||||
});
|
||||
}
|
||||
|
||||
Future<void> deleteTodoItem(TodoItem item) async {
|
||||
todoItems.removeWhere((element) => element.id == item.id);
|
||||
await databaseProvider.userStore.storeSelfTodoItems(todoItems, userId: user.id!);
|
||||
|
||||
Provider.of<SelfNoteProvider>(context, listen: false).restore();
|
||||
Provider.of<SelfNoteProvider>(context, listen: false).restoreTodo();
|
||||
|
||||
setState(() {});
|
||||
}
|
||||
|
||||
Future<void> generateTiles() async {
|
||||
if (!mounted) return;
|
||||
|
||||
user = Provider.of<UserProvider>(context, listen: false);
|
||||
databaseProvider = Provider.of<DatabaseProvider>(context, listen: false);
|
||||
updateProvider = Provider.of<UpdateProvider>(context, listen: false);
|
||||
selfNoteProvider = Provider.of<SelfNoteProvider>(context, listen: false);
|
||||
|
||||
doneItems = await databaseProvider.userQuery.toDoItems(userId: user.id!);
|
||||
todoItems = await databaseProvider.userQuery.getTodoItems(userId: user.id!);
|
||||
|
||||
@@ -80,14 +105,10 @@ class NotesPageState extends State<NotesPage> with TickerProviderStateMixin {
|
||||
List<Homework> hw = Provider.of<HomeworkProvider>(context, listen: false)
|
||||
.homework
|
||||
.where((e) => e.deadline.isAfter(DateTime.now()))
|
||||
// e.deadline.isBefore(DateTime(DateTime.now().year,
|
||||
// DateTime.now().month, DateTime.now().day + 3)))
|
||||
.toList();
|
||||
|
||||
// todo tiles
|
||||
List<Widget> toDoTiles = [];
|
||||
|
||||
// TODO: FIX THIS ASAP
|
||||
if (hw.isNotEmpty &&
|
||||
Provider.of<PlusProvider>(context, listen: false)
|
||||
.hasScope(PremiumScopes.unlimitedSelfNotes)) {
|
||||
@@ -98,51 +119,39 @@ class NotesPageState extends State<NotesPage> with TickerProviderStateMixin {
|
||||
'${(e.subject.isRenamed ? e.subject.renamedTo : e.subject.name) ?? ''}, ${e.content.escapeHtml()}',
|
||||
isTicked: doneItems[e.id] ?? false,
|
||||
onTap: (p0) async {
|
||||
// print(p0);
|
||||
// print(doneItems);
|
||||
if (!doneItems.containsKey(e.id)) {
|
||||
doneItems.addAll({e.id: p0});
|
||||
} else {
|
||||
doneItems[e.id] = p0;
|
||||
}
|
||||
// print(doneItems);
|
||||
// print(doneItems[e.id]);
|
||||
// print(user.id);
|
||||
doneItems[e.id] = p0;
|
||||
await databaseProvider.userStore
|
||||
.storeToDoItem(doneItems, userId: user.id!);
|
||||
|
||||
setState(() {});
|
||||
|
||||
// print(
|
||||
// await databaseProvider.userQuery.toDoItems(userId: user.id!));
|
||||
},
|
||||
)));
|
||||
}
|
||||
|
||||
if (selfNoteProvider.todos.isNotEmpty) {
|
||||
toDoTiles.addAll(selfNoteProvider.todos.map((e) => TickTile(
|
||||
padding: EdgeInsets.zero,
|
||||
title: e.title,
|
||||
description: e.content,
|
||||
isTicked: e.done,
|
||||
onTap: (p0) async {
|
||||
final todoItemIndex =
|
||||
todoItems.indexWhere((element) => element.id == e.id);
|
||||
if (todoItemIndex != -1) {
|
||||
TodoItem todoItem = todoItems[todoItemIndex];
|
||||
Map<String, dynamic> todoItemJson = todoItem.toJson;
|
||||
todoItemJson['done'] = p0;
|
||||
todoItem = TodoItem.fromJson(todoItemJson);
|
||||
todoItems[todoItemIndex] = todoItem;
|
||||
await databaseProvider.userStore
|
||||
.storeSelfTodoItems(todoItems, userId: user.id!);
|
||||
}
|
||||
|
||||
// await databaseProvider.userStore
|
||||
// .storeSelfTodoItems(todoItems, userId: user.id!);
|
||||
},
|
||||
)));
|
||||
}
|
||||
if (selfNoteProvider.todos.isNotEmpty) {
|
||||
toDoTiles.addAll(selfNoteProvider.todos.map((e) => GestureDetector(
|
||||
onLongPress: () async {
|
||||
final todoItem = todoItems.firstWhere((item) => item.id == e.id);
|
||||
await deleteTodoItem(todoItem);
|
||||
},
|
||||
child: TickTile(
|
||||
padding: EdgeInsets.zero,
|
||||
title: e.title,
|
||||
description: e.content,
|
||||
isTicked: e.done,
|
||||
onTap: (p0) async {
|
||||
final todoItemIndex = todoItems.indexWhere((element) => element.id == e.id);
|
||||
if (todoItemIndex != -1) {
|
||||
TodoItem todoItem = todoItems[todoItemIndex];
|
||||
Map<String, dynamic> todoItemJson = todoItem.toJson;
|
||||
todoItemJson['done'] = p0;
|
||||
todoItem = TodoItem.fromJson(todoItemJson);
|
||||
todoItems[todoItemIndex] = todoItem;
|
||||
await databaseProvider.userStore.storeSelfTodoItems(todoItems, userId: user.id!);
|
||||
}
|
||||
},
|
||||
),
|
||||
)));
|
||||
}
|
||||
|
||||
if (toDoTiles.isNotEmpty) {
|
||||
tiles.add(const SizedBox(
|
||||
@@ -328,9 +337,8 @@ class NotesPageState extends State<NotesPage> with TickerProviderStateMixin {
|
||||
child: ProfileImage(
|
||||
heroTag: "profile",
|
||||
name: firstName,
|
||||
backgroundColor: Theme.of(context)
|
||||
.colorScheme
|
||||
.tertiary, //ColorUtils.stringToColor(user.displayName ?? "?"),
|
||||
backgroundColor: Theme.of(context).colorScheme.tertiary,
|
||||
//ColorUtils.stringToColor(user.displayName ?? "?"),
|
||||
badge: updateProvider.available,
|
||||
role: user.role,
|
||||
profilePictureString: user.picture,
|
||||
|
||||
@@ -18,6 +18,8 @@ extension ScreensLocalization on String {
|
||||
"task_content": "Task content...",
|
||||
"task_name": "Task title...",
|
||||
"new_task": "New Task",
|
||||
"next": "Next",
|
||||
"cancel": "Cancel",
|
||||
},
|
||||
"hu_hu": {
|
||||
"notes": "Füzet",
|
||||
@@ -34,6 +36,8 @@ extension ScreensLocalization on String {
|
||||
"task_content": "Feladat tartalma...",
|
||||
"task_name": "Feladat címe...",
|
||||
"new_task": "Új feladat",
|
||||
"next": "Tovább",
|
||||
"cancel": "Mégse",
|
||||
},
|
||||
"de_de": {
|
||||
"notes": "Broschüre",
|
||||
@@ -50,6 +54,8 @@ extension ScreensLocalization on String {
|
||||
"task_content": "Aufgabeninhalt...",
|
||||
"task_name": "Aufgabentitel...",
|
||||
"new_task": "Neue Aufgabe",
|
||||
"next": "Weiter",
|
||||
"cancel": "Abbrechen",
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
@@ -1,170 +0,0 @@
|
||||
import 'package:refilc/icons/filc_icons.dart';
|
||||
import 'package:refilc_mobile_ui/plus/plus_screen.dart';
|
||||
import 'package:refilc_plus/models/premium_scopes.dart';
|
||||
import 'package:refilc_plus/providers/plus_provider.dart';
|
||||
import 'package:refilc_plus/ui/mobile/plus/upsell.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_svg/svg.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
|
||||
class ActiveSponsorCard extends StatelessWidget {
|
||||
const ActiveSponsorCard({super.key});
|
||||
|
||||
static PremiumFeatureLevel? estimateLevel(List<String> scopes) {
|
||||
if (scopes.contains(PremiumScopes.all) ||
|
||||
scopes.contains(PremiumScopes.tierSponge)) {
|
||||
return PremiumFeatureLevel.sponge;
|
||||
}
|
||||
if (scopes.contains(PremiumScopes.tierGold)) {
|
||||
return PremiumFeatureLevel.ink;
|
||||
}
|
||||
if (scopes.contains(PremiumScopes.tierBasic)) {
|
||||
return PremiumFeatureLevel.cap;
|
||||
}
|
||||
return PremiumFeatureLevel.old;
|
||||
}
|
||||
|
||||
IconData? _levelIcon(PremiumFeatureLevel level) {
|
||||
switch (level) {
|
||||
case PremiumFeatureLevel.cap:
|
||||
return FilcIcons.kupak;
|
||||
case PremiumFeatureLevel.ink:
|
||||
return FilcIcons.tinta;
|
||||
case PremiumFeatureLevel.sponge:
|
||||
return FilcIcons.kupak;
|
||||
case PremiumFeatureLevel.old:
|
||||
return FilcIcons.kupak;
|
||||
case PremiumFeatureLevel.basic:
|
||||
return FilcIcons.kupak;
|
||||
|
||||
case PremiumFeatureLevel.gold:
|
||||
return FilcIcons.kupak;
|
||||
}
|
||||
}
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final premium = Provider.of<PlusProvider>(context, listen: false);
|
||||
final level = estimateLevel(premium.scopes);
|
||||
|
||||
if (level == null) {
|
||||
return const SizedBox();
|
||||
}
|
||||
|
||||
Color? glow = Colors.white;
|
||||
|
||||
switch (level) {
|
||||
case PremiumFeatureLevel.cap:
|
||||
glow = Colors.lightGreen;
|
||||
break;
|
||||
case PremiumFeatureLevel.ink:
|
||||
glow = Colors.purple;
|
||||
break;
|
||||
case PremiumFeatureLevel.sponge:
|
||||
glow = Colors.red;
|
||||
break;
|
||||
case PremiumFeatureLevel.old:
|
||||
glow = Colors.red;
|
||||
break;
|
||||
case PremiumFeatureLevel.basic:
|
||||
glow = Colors.red;
|
||||
break;
|
||||
case PremiumFeatureLevel.gold:
|
||||
glow = Colors.red;
|
||||
break;
|
||||
}
|
||||
return Container(
|
||||
decoration: BoxDecoration(
|
||||
borderRadius: BorderRadius.circular(20.0),
|
||||
boxShadow: [
|
||||
BoxShadow(
|
||||
color: glow.withValues(alpha: .4),
|
||||
blurRadius: 42.0,
|
||||
),
|
||||
],
|
||||
),
|
||||
child: Card(
|
||||
margin: EdgeInsets.zero,
|
||||
elevation: 0,
|
||||
color: const Color(0xff2B2B2B),
|
||||
shape:
|
||||
RoundedRectangleBorder(borderRadius: BorderRadius.circular(14.0)),
|
||||
child: InkWell(
|
||||
borderRadius: BorderRadius.circular(14.0),
|
||||
splashColor: glow.withValues(alpha: .2),
|
||||
onTap: () {
|
||||
Navigator.of(context, rootNavigator: true)
|
||||
.push(MaterialPageRoute(builder: (context) {
|
||||
return const PlusScreen();
|
||||
}));
|
||||
},
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.symmetric(vertical: 12.0),
|
||||
child: Row(
|
||||
children: [
|
||||
Padding(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 16.0),
|
||||
child: Stack(
|
||||
children: [
|
||||
CircleAvatar(
|
||||
backgroundColor:
|
||||
Theme.of(context).colorScheme.secondary,
|
||||
backgroundImage: NetworkImage(
|
||||
"https://github.com/${premium.login}.png?size=128"),
|
||||
),
|
||||
Positioned.fill(
|
||||
child: Align(
|
||||
alignment: Alignment.bottomRight,
|
||||
child: Transform.translate(
|
||||
offset: const Offset(3.0, 4.0),
|
||||
child: Container(
|
||||
padding: const EdgeInsets.all(4.0),
|
||||
decoration: const BoxDecoration(
|
||||
color: Color(0xff2B2B2B),
|
||||
shape: BoxShape.circle,
|
||||
),
|
||||
child: const SizedBox(
|
||||
height: 14.0,
|
||||
width: 14.0,
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
Positioned.fill(
|
||||
child: Align(
|
||||
alignment: Alignment.bottomRight,
|
||||
child: SvgPicture.asset(
|
||||
"assets/images/github.svg",
|
||||
height: 14.0,
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
Expanded(
|
||||
child: Text(
|
||||
premium.login,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
style: const TextStyle(
|
||||
fontWeight: FontWeight.w600,
|
||||
fontSize: 20,
|
||||
color: Colors.white),
|
||||
),
|
||||
),
|
||||
Padding(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 16.0),
|
||||
child: Icon(
|
||||
_levelIcon(level),
|
||||
color: Colors.white,
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -1,26 +0,0 @@
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class AvatarStack extends StatelessWidget {
|
||||
const AvatarStack({super.key, required this.children});
|
||||
|
||||
final List<Widget> children;
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Stack(
|
||||
children: [
|
||||
if (children.isNotEmpty) children[0],
|
||||
if (children.length > 1)
|
||||
Transform.translate(
|
||||
offset: const Offset(-20.0, 0.0),
|
||||
child: children[1],
|
||||
),
|
||||
if (children.length > 2)
|
||||
Transform.translate(
|
||||
offset: const Offset(-40.0, 0.0),
|
||||
child: children[2],
|
||||
),
|
||||
],
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -1,175 +0,0 @@
|
||||
// import 'package:refilc/api/client.dart';
|
||||
// import 'package:refilc/theme/colors/colors.dart';
|
||||
import 'package:refilc_plus/providers/plus_provider.dart';
|
||||
// import 'package:refilc_plus/ui/mobile/plus/activation_view/activation_view.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_feather_icons/flutter_feather_icons.dart';
|
||||
import 'package:flutter_svg/svg.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
|
||||
class GithubLoginButton extends StatelessWidget {
|
||||
const GithubLoginButton({super.key});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final premium = Provider.of<PlusProvider>(context);
|
||||
|
||||
return Card(
|
||||
margin: EdgeInsets.zero,
|
||||
elevation: 0,
|
||||
color: const Color(0xFFC1CBDF),
|
||||
shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(16.0)),
|
||||
child: InkWell(
|
||||
borderRadius: BorderRadius.circular(14.0),
|
||||
onTap: () async {
|
||||
// if (premium.hasPremium) {
|
||||
// premium.auth.refreshAuth(removePremium: true);
|
||||
// ScaffoldMessenger.of(context).showSnackBar(SnackBar(
|
||||
// content: Text(
|
||||
// "reFilc+ támogatás deaktiválva!",
|
||||
// style: TextStyle(
|
||||
// color: AppColors.of(context).text,
|
||||
// fontWeight: FontWeight.bold,
|
||||
// fontSize: 18.0),
|
||||
// ),
|
||||
// backgroundColor: Theme.of(context).scaffoldBackgroundColor,
|
||||
// ));
|
||||
// return;
|
||||
// }
|
||||
|
||||
// Navigator.of(context).push(MaterialPageRoute(builder: (context) {
|
||||
// return const PremiumActivationView();
|
||||
// }));
|
||||
// bool initFinished = await initPaymentSheet(context);
|
||||
// if (initFinished) {
|
||||
// stripe.PaymentSheetPaymentOption? result =
|
||||
// await stripe.Stripe.instance.presentPaymentSheet();
|
||||
|
||||
// print(result == null);
|
||||
|
||||
// print(result?.label ?? 'nem label');
|
||||
// }
|
||||
|
||||
// launchUrl(
|
||||
// Uri.parse(
|
||||
// 'https://api.refilc.hu/v3/payment/stripe-create-checkout?product=asdasd'),
|
||||
// mode: LaunchMode.inAppBrowserView,
|
||||
// );
|
||||
},
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.symmetric(vertical: 12.0),
|
||||
child: Row(
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: [
|
||||
Stack(
|
||||
children: [
|
||||
SvgPicture.asset(
|
||||
"assets/images/btn_github.svg",
|
||||
height: 28.0,
|
||||
),
|
||||
Positioned.fill(
|
||||
child: Align(
|
||||
alignment: Alignment.bottomRight,
|
||||
child: Transform.translate(
|
||||
offset: const Offset(3.5, 4.6),
|
||||
child: Container(
|
||||
padding: const EdgeInsets.all(4.0),
|
||||
decoration: const BoxDecoration(
|
||||
color: Color(0xFFC1CBDF),
|
||||
// color: Colors.red,
|
||||
shape: BoxShape.circle,
|
||||
),
|
||||
child: const SizedBox(
|
||||
height: 10.0,
|
||||
width: 10.0,
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
Positioned.fill(
|
||||
child: Align(
|
||||
alignment: Alignment.bottomRight,
|
||||
child: Transform.translate(
|
||||
offset: const Offset(2.0, 2.0),
|
||||
child: Icon(
|
||||
premium.hasPremium
|
||||
? FeatherIcons.minusCircle
|
||||
: FeatherIcons.plusCircle,
|
||||
color: const Color(0xFF243F76),
|
||||
size: 14.0,
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
const SizedBox(
|
||||
width: 18.0,
|
||||
),
|
||||
Text(
|
||||
premium.hasPremium
|
||||
? "Github szétkapcsolása"
|
||||
: "Fiók összekötése Github-al",
|
||||
style: const TextStyle(
|
||||
fontWeight: FontWeight.w600,
|
||||
fontSize: 18,
|
||||
color: Color(0xFF243F76),
|
||||
),
|
||||
),
|
||||
const SizedBox(
|
||||
width: 4.0,
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
// Future<bool> initPaymentSheet(BuildContext context) async {
|
||||
// try {
|
||||
// // 1. create payment intent on the server
|
||||
// final data = await _createPaymentSheet();
|
||||
|
||||
// if (data == null) {
|
||||
// throw "API error, can't create payment sheet!";
|
||||
// }
|
||||
|
||||
// // 2. initialize the payment sheet
|
||||
// await stripe.Stripe.instance.initPaymentSheet(
|
||||
// paymentSheetParameters: stripe.SetupPaymentSheetParameters(
|
||||
// // Set to true for custom flow
|
||||
// customFlow: false,
|
||||
// // Main params
|
||||
// merchantDisplayName: 'reFilc',
|
||||
// paymentIntentClientSecret: data['paymentIntent'],
|
||||
// // Customer keys
|
||||
// customerEphemeralKeySecret: data['ephemeralKey'],
|
||||
// customerId: data['customer'],
|
||||
// // Extra options
|
||||
// // applePay: const stripe.PaymentSheetApplePay(
|
||||
// // merchantCountryCode: 'HU',
|
||||
// // ),
|
||||
// googlePay: const stripe.PaymentSheetGooglePay(
|
||||
// merchantCountryCode: 'HU',
|
||||
// testEnv: true,
|
||||
// ),
|
||||
// style: ThemeMode.system,
|
||||
// ),
|
||||
// );
|
||||
// return true;
|
||||
// } catch (e) {
|
||||
// // ignore: use_build_context_synchronously
|
||||
// ScaffoldMessenger.of(context).showSnackBar(
|
||||
// SnackBar(content: Text('Error: $e')),
|
||||
// );
|
||||
// rethrow;
|
||||
// }
|
||||
// }
|
||||
|
||||
// Future<Map?> _createPaymentSheet() async {
|
||||
// Map? data = await FilcAPI.createPaymentSheet("refilcplus");
|
||||
// return data;
|
||||
// }
|
||||
}
|
||||
@@ -1,54 +0,0 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_svg/svg.dart';
|
||||
|
||||
class GithubCard extends StatelessWidget {
|
||||
const GithubCard({super.key, this.onPressed});
|
||||
|
||||
final void Function()? onPressed;
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Card(
|
||||
margin: EdgeInsets.zero,
|
||||
elevation: 0,
|
||||
shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(14.0)),
|
||||
color: const Color(0xff2B2B2B),
|
||||
child: Material(
|
||||
type: MaterialType.transparency,
|
||||
child: InkWell(
|
||||
borderRadius: BorderRadius.circular(14.0),
|
||||
onTap: onPressed,
|
||||
child: Padding(
|
||||
padding:
|
||||
const EdgeInsets.symmetric(horizontal: 16.0, vertical: 12.0)
|
||||
.add(const EdgeInsets.only(top: 4.0)),
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Row(
|
||||
children: [
|
||||
const Expanded(
|
||||
child: Text(
|
||||
"Támogass minket Githubon, hogy megszerezd a jutalmakat!",
|
||||
style: TextStyle(color: Colors.white),
|
||||
),
|
||||
),
|
||||
SvgPicture.asset("assets/images/github.svg"),
|
||||
],
|
||||
),
|
||||
const SizedBox(height: 4.0),
|
||||
Chip(
|
||||
backgroundColor: Colors.black.withValues(alpha: .5),
|
||||
label: const Text(
|
||||
"Már támogatsz? Jelentkezz be!",
|
||||
style: TextStyle(color: Colors.white),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -1,107 +0,0 @@
|
||||
import 'package:refilc/theme/colors/colors.dart';
|
||||
import 'package:refilc_plus/providers/plus_provider.dart';
|
||||
// import 'package:refilc_plus/ui/mobile/plus/activation_view/activation_view.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_feather_icons/flutter_feather_icons.dart';
|
||||
import 'package:flutter_svg/svg.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
|
||||
class GithubConnectButton extends StatelessWidget {
|
||||
const GithubConnectButton({super.key});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final premium = Provider.of<PlusProvider>(context);
|
||||
|
||||
return Card(
|
||||
margin: EdgeInsets.zero,
|
||||
elevation: 0,
|
||||
color: const Color(0xff2B2B2B),
|
||||
shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(14.0)),
|
||||
child: InkWell(
|
||||
borderRadius: BorderRadius.circular(14.0),
|
||||
onTap: () {
|
||||
if (premium.hasPremium) {
|
||||
premium.auth.refreshAuth(removePremium: true);
|
||||
ScaffoldMessenger.of(context).showSnackBar(SnackBar(
|
||||
content: Text(
|
||||
"Prémium deaktiválva.",
|
||||
style: TextStyle(
|
||||
color: AppColors.of(context).text,
|
||||
fontWeight: FontWeight.bold,
|
||||
fontSize: 18.0),
|
||||
),
|
||||
backgroundColor: Theme.of(context).scaffoldBackgroundColor,
|
||||
));
|
||||
return;
|
||||
}
|
||||
|
||||
// Navigator.of(context).push(MaterialPageRoute(builder: (context) {
|
||||
// // return const PremiumActivationView();
|
||||
// }));
|
||||
},
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.symmetric(vertical: 12.0),
|
||||
child: Row(
|
||||
children: [
|
||||
Padding(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 16.0),
|
||||
child: Stack(
|
||||
children: [
|
||||
SvgPicture.asset(
|
||||
"assets/images/github.svg",
|
||||
height: 32.0,
|
||||
),
|
||||
Positioned.fill(
|
||||
child: Align(
|
||||
alignment: Alignment.bottomRight,
|
||||
child: Transform.translate(
|
||||
offset: const Offset(3.0, 4.0),
|
||||
child: Container(
|
||||
padding: const EdgeInsets.all(4.0),
|
||||
decoration: const BoxDecoration(
|
||||
color: Color(0xff2B2B2B),
|
||||
shape: BoxShape.circle,
|
||||
),
|
||||
child: const SizedBox(
|
||||
height: 14.0,
|
||||
width: 14.0,
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
Positioned.fill(
|
||||
child: Align(
|
||||
alignment: Alignment.bottomRight,
|
||||
child: Transform.translate(
|
||||
offset: const Offset(2.0, 2.0),
|
||||
child: Icon(
|
||||
premium.hasPremium
|
||||
? FeatherIcons.minusCircle
|
||||
: FeatherIcons.plusCircle,
|
||||
color: Colors.white,
|
||||
size: 16.0,
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
Text(
|
||||
premium.hasPremium
|
||||
? "GitHub szétkapcsolása"
|
||||
: "GitHub csatlakoztatása",
|
||||
style: const TextStyle(
|
||||
fontWeight: FontWeight.w600,
|
||||
fontSize: 20,
|
||||
color: Colors.white),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -1,81 +0,0 @@
|
||||
import 'dart:ui';
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class PremiumGoalCard extends StatelessWidget {
|
||||
const PremiumGoalCard({super.key, this.progress = 100, this.target = 1});
|
||||
|
||||
final double progress;
|
||||
final double target;
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Card(
|
||||
margin: EdgeInsets.zero,
|
||||
shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(20.0)),
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.all(20.0),
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Text(
|
||||
"Cél: ${target.round()} támogató",
|
||||
style:
|
||||
const TextStyle(fontWeight: FontWeight.bold, fontSize: 18.0),
|
||||
),
|
||||
const SizedBox(height: 8.0),
|
||||
Stack(
|
||||
alignment: Alignment.center,
|
||||
children: [
|
||||
Container(
|
||||
height: 12,
|
||||
decoration: BoxDecoration(
|
||||
color: Colors.black.withValues(alpha: .2),
|
||||
borderRadius: BorderRadius.circular(45.0),
|
||||
),
|
||||
),
|
||||
LayoutBuilder(
|
||||
builder: (context, size) {
|
||||
return Align(
|
||||
alignment: Alignment.centerLeft,
|
||||
child: Row(
|
||||
children: [
|
||||
Container(
|
||||
height: 12,
|
||||
width: size.maxWidth * (progress / 100),
|
||||
decoration: BoxDecoration(
|
||||
gradient: const LinearGradient(colors: [
|
||||
Color(0xFFFF2A9D),
|
||||
Color(0xFFFF37F7)
|
||||
]),
|
||||
borderRadius: BorderRadius.circular(45.0),
|
||||
),
|
||||
),
|
||||
Transform.translate(
|
||||
offset: const Offset(-15.0, 0),
|
||||
child: Stack(
|
||||
children: [
|
||||
ImageFiltered(
|
||||
imageFilter:
|
||||
ImageFilter.blur(sigmaX: 5, sigmaY: 5),
|
||||
child: Image.asset("assets/images/heart.png",
|
||||
color:
|
||||
Colors.black.withValues(alpha: .3)),
|
||||
),
|
||||
Image.asset("assets/images/heart.png"),
|
||||
],
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
);
|
||||
},
|
||||
),
|
||||
],
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -1,348 +0,0 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
import 'package:refilc/models/settings.dart';
|
||||
import 'package:refilc_mobile_ui/common/action_button.dart';
|
||||
import 'package:refilc_plus/providers/plus_provider.dart';
|
||||
import 'package:refilc_plus/ui/mobile/plus/activation_view/activation_view.dart';
|
||||
import 'package:refilc_mobile_ui/plus/plus_screen.i18n.dart';
|
||||
import 'package:url_launcher/url_launcher.dart';
|
||||
import 'package:uuid/uuid.dart';
|
||||
|
||||
class PlusPlanCard extends StatelessWidget {
|
||||
const PlusPlanCard({
|
||||
super.key,
|
||||
required this.iconPath,
|
||||
required this.title,
|
||||
required this.description,
|
||||
required this.color,
|
||||
required this.gradient,
|
||||
this.price = 0,
|
||||
required this.id,
|
||||
this.active = false,
|
||||
this.borderRadius,
|
||||
this.features = const [],
|
||||
required this.docsAccepted,
|
||||
});
|
||||
|
||||
final String iconPath;
|
||||
final String title;
|
||||
final String description;
|
||||
final Color color;
|
||||
final LinearGradient gradient;
|
||||
final double price;
|
||||
final String id;
|
||||
final bool active;
|
||||
final BorderRadiusGeometry? borderRadius;
|
||||
final List<List<String>> features;
|
||||
final bool docsAccepted;
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return GestureDetector(
|
||||
onTap: () {
|
||||
// if (!docsAccepted) {
|
||||
// ScaffoldMessenger.of(context).showSnackBar(const SnackBar(
|
||||
// content: Text(
|
||||
// "El kell fogadnod az ÁSZF-et és az Adatkezelési Tájékoztatót!",
|
||||
// style:
|
||||
// TextStyle(color: Colors.black, fontWeight: FontWeight.bold),
|
||||
// ),
|
||||
// backgroundColor: Colors.white,
|
||||
// ));
|
||||
|
||||
// return;
|
||||
// }
|
||||
|
||||
if (Provider.of<SettingsProvider>(context, listen: false).xFilcId ==
|
||||
"none") {
|
||||
Provider.of<SettingsProvider>(context, listen: false)
|
||||
.update(xFilcId: const Uuid().v4(), store: true);
|
||||
}
|
||||
|
||||
// if (Provider.of<SettingsProvider>(context, listen: false).xFilcId ==
|
||||
// "none") {
|
||||
// ScaffoldMessenger.of(context).showSnackBar(const SnackBar(
|
||||
// content: Text(
|
||||
// "Be kell kapcsolnod a Névtelen Analitikát a beállítások főoldalán, mielőtt reFilc+ előfizetést vásárolnál!",
|
||||
// style:
|
||||
// TextStyle(color: Colors.black, fontWeight: FontWeight.bold),
|
||||
// ),
|
||||
// backgroundColor: Colors.white,
|
||||
// ));
|
||||
|
||||
// return;
|
||||
// }
|
||||
|
||||
if (Provider.of<PlusProvider>(context, listen: false).hasPremium) {
|
||||
if (!active) {
|
||||
launchUrl(
|
||||
Uri.parse(
|
||||
'https://billing.stripe.com/p/login/4gwbIRclL89D5PicMM'),
|
||||
mode: LaunchMode.inAppBrowserView,
|
||||
);
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
showDialog(
|
||||
context: context,
|
||||
builder: (context) => AlertDialog(
|
||||
shape: RoundedRectangleBorder(
|
||||
borderRadius: BorderRadius.circular(12.0)),
|
||||
title: Text('docs'.i18n),
|
||||
content: Text('docs_acceptance'.i18n),
|
||||
actions: [
|
||||
ActionButton(
|
||||
label: "next".i18n,
|
||||
onTap: () {
|
||||
// pop dialog
|
||||
Navigator.of(context).pop();
|
||||
// show payment option selector
|
||||
showDialog(
|
||||
context: context,
|
||||
builder: (context) => AlertDialog(
|
||||
shape: RoundedRectangleBorder(
|
||||
borderRadius: BorderRadius.circular(12.0)),
|
||||
title: Text('payment_method'.i18n),
|
||||
content: Text('select_payment_method'.i18n),
|
||||
actions: [
|
||||
ActionButton(
|
||||
label: "stripe".i18n,
|
||||
onTap: () {
|
||||
// pop dialog
|
||||
Navigator.of(context).pop();
|
||||
// start payment process
|
||||
Navigator.of(context)
|
||||
.push(MaterialPageRoute(builder: (context) {
|
||||
return PremiumActivationView(
|
||||
product: id,
|
||||
paymentProvider: "stripe",
|
||||
);
|
||||
}));
|
||||
},
|
||||
),
|
||||
ActionButton(
|
||||
label: "paypal".i18n,
|
||||
onTap: () {
|
||||
// pop dialog
|
||||
Navigator.of(context).pop();
|
||||
// start payment process
|
||||
Navigator.of(context)
|
||||
.push(MaterialPageRoute(builder: (context) {
|
||||
return PremiumActivationView(
|
||||
product: id,
|
||||
paymentProvider: "paypal",
|
||||
);
|
||||
}));
|
||||
},
|
||||
),
|
||||
],
|
||||
),
|
||||
);
|
||||
},
|
||||
),
|
||||
],
|
||||
),
|
||||
);
|
||||
},
|
||||
child: Container(
|
||||
decoration: BoxDecoration(
|
||||
gradient: gradient,
|
||||
borderRadius: borderRadius!.add(BorderRadius.circular(1.5)),
|
||||
),
|
||||
padding: const EdgeInsets.all(1.5),
|
||||
child: Card(
|
||||
margin: EdgeInsets.zero,
|
||||
shape: RoundedRectangleBorder(
|
||||
borderRadius: borderRadius!,
|
||||
),
|
||||
shadowColor: Colors.transparent,
|
||||
surfaceTintColor: Colors.white,
|
||||
color: Colors.white.withValues(alpha: 0.9),
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.only(
|
||||
top: 18.0, bottom: 16.0, left: 22.0, right: 18.0),
|
||||
child: Column(
|
||||
children: [
|
||||
Row(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
children: [
|
||||
Row(
|
||||
children: [
|
||||
Image.asset(
|
||||
iconPath,
|
||||
width: iconPath.endsWith('ink.png') ? 29.0 : 25.0,
|
||||
height: 25.0,
|
||||
),
|
||||
const SizedBox(
|
||||
width: 12.0,
|
||||
),
|
||||
Text(
|
||||
title,
|
||||
style: const TextStyle(
|
||||
fontSize: 22.0,
|
||||
color: Color(0xFF0B0B0B),
|
||||
fontWeight: FontWeight.w600,
|
||||
height: 1.2,
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
Container(
|
||||
decoration: BoxDecoration(
|
||||
borderRadius: BorderRadius.circular(20.0),
|
||||
gradient: active
|
||||
? const LinearGradient(
|
||||
begin: Alignment.topLeft,
|
||||
end: Alignment.bottomRight,
|
||||
colors: [
|
||||
Color.fromARGB(255, 196, 213, 253),
|
||||
Color.fromARGB(255, 227, 235, 250),
|
||||
Color.fromARGB(255, 214, 226, 250),
|
||||
],
|
||||
)
|
||||
: const LinearGradient(
|
||||
colors: [
|
||||
Color(0xFFEFF4FE),
|
||||
Color(0xFFEFF4FE),
|
||||
],
|
||||
),
|
||||
),
|
||||
padding: const EdgeInsets.all(2.0),
|
||||
child: Container(
|
||||
decoration: BoxDecoration(
|
||||
borderRadius: BorderRadius.circular(20.0),
|
||||
color: const Color(0xFFEFF4FE),
|
||||
),
|
||||
padding: const EdgeInsets.symmetric(
|
||||
horizontal: 10.0, vertical: 2.0),
|
||||
child: Text(
|
||||
active
|
||||
? 'active'.i18n
|
||||
: '${price.toStringAsFixed(2).replaceAll('.', ',')} €',
|
||||
style: const TextStyle(
|
||||
fontSize: 16.6,
|
||||
color: Color(0xFF243F76),
|
||||
fontWeight: FontWeight.w600,
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
const SizedBox(
|
||||
height: 12.0,
|
||||
),
|
||||
Text(
|
||||
description,
|
||||
style: TextStyle(
|
||||
color: const Color(0xFF011234).withValues(alpha: 0.6),
|
||||
fontSize: 13.69,
|
||||
fontWeight: FontWeight.w500,
|
||||
),
|
||||
),
|
||||
const SizedBox(
|
||||
height: 14.20,
|
||||
),
|
||||
Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: features
|
||||
.map((e) => Column(
|
||||
children: [
|
||||
const SizedBox(
|
||||
height: 10.0,
|
||||
),
|
||||
Row(
|
||||
children: [
|
||||
SizedBox(
|
||||
width: 22.22,
|
||||
child: Text(
|
||||
e[0],
|
||||
style: const TextStyle(fontSize: 18.0),
|
||||
),
|
||||
),
|
||||
const SizedBox(
|
||||
width: 14.0,
|
||||
),
|
||||
Expanded(
|
||||
child: e[1].endsWith('tier_benefits')
|
||||
? Text.rich(
|
||||
style: const TextStyle(
|
||||
height: 1.2,
|
||||
fontWeight: FontWeight.w500,
|
||||
color: Color(0xFF011234),
|
||||
fontSize: 13.69,
|
||||
),
|
||||
TextSpan(
|
||||
children: [
|
||||
TextSpan(
|
||||
text: 'every'.i18n,
|
||||
),
|
||||
e[1].startsWith('cap')
|
||||
? const TextSpan(
|
||||
text: 'reFilc+',
|
||||
style: TextStyle(
|
||||
color:
|
||||
Color(0xFF7C3EFF),
|
||||
fontWeight:
|
||||
FontWeight.w600,
|
||||
),
|
||||
)
|
||||
: TextSpan(
|
||||
children: [
|
||||
const TextSpan(
|
||||
text: 'reFilc+',
|
||||
style: TextStyle(
|
||||
color: Color(
|
||||
0xFF7C3EFF),
|
||||
fontWeight:
|
||||
FontWeight
|
||||
.w600,
|
||||
),
|
||||
),
|
||||
TextSpan(
|
||||
text: 'and'.i18n,
|
||||
),
|
||||
const TextSpan(
|
||||
text:
|
||||
'reFilc+ Gold',
|
||||
style: TextStyle(
|
||||
color: Color(
|
||||
0xFF0061BB),
|
||||
fontWeight:
|
||||
FontWeight
|
||||
.w600,
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
TextSpan(text: 'benefit'.i18n),
|
||||
],
|
||||
),
|
||||
)
|
||||
: Text(
|
||||
e[1],
|
||||
maxLines: 2,
|
||||
style: const TextStyle(
|
||||
height: 1.2,
|
||||
color: Color(0xFF011234),
|
||||
fontWeight: FontWeight.w500,
|
||||
fontSize: 13.69,
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
],
|
||||
))
|
||||
.toList(),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -1,79 +0,0 @@
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class PremiumRewardCard extends StatelessWidget {
|
||||
const PremiumRewardCard(
|
||||
{super.key,
|
||||
this.imageKey,
|
||||
this.icon,
|
||||
this.title,
|
||||
this.description,
|
||||
this.soon = false});
|
||||
|
||||
final String? imageKey;
|
||||
final Widget? icon;
|
||||
final Widget? title;
|
||||
final Widget? description;
|
||||
final bool soon;
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Card(
|
||||
margin: EdgeInsets.zero,
|
||||
shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(16.0)),
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
if (soon)
|
||||
const Padding(
|
||||
padding: EdgeInsets.only(left: 8.0),
|
||||
child: Chip(
|
||||
labelPadding: EdgeInsets.zero,
|
||||
padding: EdgeInsets.symmetric(horizontal: 12.0),
|
||||
backgroundColor: Color(0x777645D3),
|
||||
label: Text("Hamarosan",
|
||||
style: TextStyle(fontWeight: FontWeight.w500)),
|
||||
),
|
||||
),
|
||||
if (imageKey != null)
|
||||
Padding(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 14.0)
|
||||
.add(EdgeInsets.only(bottom: 12.0, top: soon ? 0 : 14.0)),
|
||||
child: Image.asset("assets/images/${imageKey!}.png"),
|
||||
)
|
||||
else
|
||||
const SizedBox(height: 12),
|
||||
Padding(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 12.0),
|
||||
child: Row(
|
||||
children: [
|
||||
if (icon != null) ...[icon!, const SizedBox(width: 12.0)],
|
||||
if (title != null)
|
||||
Expanded(
|
||||
child: DefaultTextStyle(
|
||||
style: Theme.of(context)
|
||||
.textTheme
|
||||
.bodyMedium!
|
||||
.copyWith(fontWeight: FontWeight.w700, fontSize: 20),
|
||||
child: title!,
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
if (description != null)
|
||||
Padding(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 12.0)
|
||||
.add(const EdgeInsets.only(top: 4.0, bottom: 12.0)),
|
||||
child: DefaultTextStyle(
|
||||
style: Theme.of(context)
|
||||
.textTheme
|
||||
.bodyMedium!
|
||||
.copyWith(fontSize: 16),
|
||||
child: description!,
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -1,35 +0,0 @@
|
||||
import 'package:refilc/models/supporter.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class SupporterChip extends StatelessWidget {
|
||||
const SupporterChip({super.key, required this.supporter});
|
||||
|
||||
final Supporter supporter;
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Chip(
|
||||
side: BorderSide.none,
|
||||
shape: const StadiumBorder(side: BorderSide.none),
|
||||
padding: const EdgeInsets.all(8.0),
|
||||
avatar: supporter.avatar != ""
|
||||
? CircleAvatar(
|
||||
backgroundColor: Theme.of(context).colorScheme.secondary,
|
||||
backgroundImage: NetworkImage(supporter.avatar),
|
||||
)
|
||||
: null,
|
||||
labelPadding: const EdgeInsets.only(left: 12.0, right: 8.0),
|
||||
label: Text.rich(
|
||||
TextSpan(children: [
|
||||
TextSpan(text: supporter.name),
|
||||
if (supporter.type == DonationType.once)
|
||||
TextSpan(
|
||||
text: " \$${supporter.price}",
|
||||
style: const TextStyle(fontWeight: FontWeight.w400),
|
||||
),
|
||||
]),
|
||||
style: const TextStyle(fontWeight: FontWeight.bold, fontSize: 16.0),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -1,79 +0,0 @@
|
||||
import 'package:refilc/models/supporter.dart';
|
||||
import 'package:refilc_mobile_ui/plus/components/supporter_chip.dart';
|
||||
import 'package:refilc_mobile_ui/plus/components/supporter_tile.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class SupporterGroupCard extends StatelessWidget {
|
||||
const SupporterGroupCard({
|
||||
super.key,
|
||||
this.title,
|
||||
this.icon,
|
||||
this.expanded = false,
|
||||
this.supporters = const [],
|
||||
this.glow,
|
||||
});
|
||||
|
||||
final Widget? icon;
|
||||
final Widget? title;
|
||||
final bool expanded;
|
||||
final List<Supporter> supporters;
|
||||
final Color? glow;
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Container(
|
||||
decoration: BoxDecoration(
|
||||
borderRadius: BorderRadius.circular(20.0),
|
||||
boxShadow: [
|
||||
if (glow != null)
|
||||
BoxShadow(
|
||||
color: glow!.withValues(alpha: .2),
|
||||
blurRadius: 60.0,
|
||||
),
|
||||
],
|
||||
),
|
||||
child: Card(
|
||||
margin: EdgeInsets.zero,
|
||||
shape:
|
||||
RoundedRectangleBorder(borderRadius: BorderRadius.circular(20.0)),
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.all(24.0),
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Row(
|
||||
children: [
|
||||
if (icon != null) ...[icon!, const SizedBox(width: 12.0)],
|
||||
if (title != null)
|
||||
Expanded(
|
||||
child: DefaultTextStyle(
|
||||
style: Theme.of(context)
|
||||
.textTheme
|
||||
.titleLarge!
|
||||
.copyWith(fontWeight: FontWeight.w700),
|
||||
child: title!,
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
const SizedBox(height: 12.0),
|
||||
if (expanded)
|
||||
Column(
|
||||
children: supporters
|
||||
.map((e) => SupporterTile(supporter: e))
|
||||
.toList(),
|
||||
)
|
||||
else
|
||||
Wrap(
|
||||
spacing: 8.0,
|
||||
children: supporters
|
||||
.map((e) => SupporterChip(supporter: e))
|
||||
.toList(),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -1,23 +0,0 @@
|
||||
import 'package:refilc/models/supporter.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class SupporterTile extends StatelessWidget {
|
||||
const SupporterTile({super.key, required this.supporter});
|
||||
|
||||
final Supporter supporter;
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return ListTile(
|
||||
contentPadding: EdgeInsets.zero,
|
||||
leading: CircleAvatar(
|
||||
backgroundImage: NetworkImage(supporter.avatar),
|
||||
),
|
||||
title: Text(
|
||||
supporter.name,
|
||||
style: const TextStyle(fontWeight: FontWeight.bold),
|
||||
),
|
||||
subtitle: Text(supporter.comment),
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -1,82 +0,0 @@
|
||||
import 'dart:math';
|
||||
|
||||
import 'package:refilc/models/supporter.dart';
|
||||
import 'package:refilc_mobile_ui/plus/components/avatar_stack.dart';
|
||||
import 'package:refilc_mobile_ui/plus/supporters_screen.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class SupportersButton extends StatelessWidget {
|
||||
const SupportersButton({super.key, required this.supporters});
|
||||
|
||||
final Future<Supporters?> supporters;
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Card(
|
||||
shape: const StadiumBorder(),
|
||||
margin: EdgeInsets.zero,
|
||||
child: InkWell(
|
||||
customBorder: const StadiumBorder(),
|
||||
onTap: () {
|
||||
Navigator.of(context).push(
|
||||
MaterialPageRoute(
|
||||
builder: (context) => SupportersScreen(supporters: supporters)),
|
||||
);
|
||||
},
|
||||
child: Container(
|
||||
padding: const EdgeInsets.symmetric(vertical: 16.0, horizontal: 14.0),
|
||||
child: Row(
|
||||
children: [
|
||||
const Expanded(
|
||||
child: Text(
|
||||
"Köszönjük, támogatók!",
|
||||
style: TextStyle(fontWeight: FontWeight.bold, fontSize: 17.0),
|
||||
),
|
||||
),
|
||||
FutureBuilder<Supporters?>(
|
||||
future: supporters,
|
||||
builder: (context, snapshot) {
|
||||
if (!snapshot.hasData) {
|
||||
return const SizedBox();
|
||||
}
|
||||
final sponsors = snapshot.data!.github
|
||||
.where((e) => e.type == DonationType.monthly)
|
||||
.toList();
|
||||
sponsors.shuffle(Random(
|
||||
(DateTime.now().millisecondsSinceEpoch /
|
||||
1000 /
|
||||
60 /
|
||||
60 /
|
||||
24)
|
||||
.floor()));
|
||||
return AvatarStack(
|
||||
children: [
|
||||
// ignore: prefer_is_empty
|
||||
if (sponsors.length > 0 && sponsors[0].avatar != "")
|
||||
CircleAvatar(
|
||||
backgroundColor:
|
||||
Theme.of(context).colorScheme.secondary,
|
||||
backgroundImage: NetworkImage(sponsors[0].avatar),
|
||||
),
|
||||
if (sponsors.length > 1 && sponsors[1].avatar != "")
|
||||
CircleAvatar(
|
||||
backgroundColor:
|
||||
Theme.of(context).colorScheme.secondary,
|
||||
backgroundImage: NetworkImage(sponsors[1].avatar),
|
||||
),
|
||||
if (sponsors.length > 2 && sponsors[2].avatar != "")
|
||||
CircleAvatar(
|
||||
backgroundColor:
|
||||
Theme.of(context).colorScheme.secondary,
|
||||
backgroundImage: NetworkImage(sponsors[2].avatar),
|
||||
),
|
||||
],
|
||||
);
|
||||
}),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -1,845 +0,0 @@
|
||||
// ignore_for_file: use_build_context_synchronously
|
||||
|
||||
import 'package:flutter/services.dart';
|
||||
import 'package:refilc_mobile_ui/plus/plus_screen.i18n.dart';
|
||||
import 'package:refilc_mobile_ui/plus/components/plan_card.dart';
|
||||
import 'package:flutter_feather_icons/flutter_feather_icons.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
import 'package:refilc_plus/providers/plus_provider.dart';
|
||||
import 'package:refilc_plus/ui/mobile/plus/upsell.dart';
|
||||
|
||||
import 'components/active_sponsor_card.dart';
|
||||
// import 'components/github_button.dart';
|
||||
|
||||
class PlusScreen extends StatefulWidget {
|
||||
const PlusScreen({super.key});
|
||||
|
||||
@override
|
||||
State<PlusScreen> createState() => PlusScreenState();
|
||||
}
|
||||
|
||||
class PlusScreenState extends State<PlusScreen> {
|
||||
Uri parseTierUri({required String tierId}) {
|
||||
return Uri.parse(
|
||||
'https://github.com/sponsors/refilc/sponsorships?tier_id=$tierId&preview=true');
|
||||
}
|
||||
|
||||
bool showLifetime = false;
|
||||
bool docsAccepted = false;
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
LinearGradient plusGradient = const LinearGradient(
|
||||
colors: [
|
||||
Color(0xFF7087FF),
|
||||
Color(0xFF9069FF),
|
||||
Color(0xFFE4D7FF),
|
||||
Color(0xFFDBC5FF),
|
||||
Color(0xFFE57DFF),
|
||||
Color(0xFFDBB7FF),
|
||||
Color(0xFF6850FF),
|
||||
Color(0xFF2144FF),
|
||||
],
|
||||
stops: [0.0, 0.16, 0.32, 0.49, 0.69, 0.8, 0.92, 1.0],
|
||||
begin: Alignment.topLeft,
|
||||
end: Alignment.bottomRight,
|
||||
);
|
||||
LinearGradient goldGradient = const LinearGradient(
|
||||
colors: [
|
||||
Color(0xFFFFBD70),
|
||||
Color(0xFFFFDE69),
|
||||
Color(0xFFFFECD7),
|
||||
Color(0xFFFFE4C5),
|
||||
Color(0xFFFFDB7D),
|
||||
Color(0xFFFFDEB7),
|
||||
Color(0xFFFFAE50),
|
||||
Color(0xFFFF9921),
|
||||
],
|
||||
stops: [0.0, 0.16, 0.32, 0.49, 0.69, 0.8, 0.92, 1.0],
|
||||
begin: Alignment.topLeft,
|
||||
end: Alignment.bottomRight,
|
||||
);
|
||||
|
||||
return Scaffold(
|
||||
backgroundColor: const Color(0xffF4F9FF),
|
||||
body: Container(
|
||||
padding: EdgeInsets.zero,
|
||||
width: double.infinity,
|
||||
decoration: const BoxDecoration(
|
||||
image: DecorationImage(
|
||||
image: AssetImage('assets/images/premium_top_banner.png'),
|
||||
fit: BoxFit.fitWidth,
|
||||
alignment: Alignment.topCenter,
|
||||
),
|
||||
),
|
||||
child: Container(
|
||||
decoration: BoxDecoration(
|
||||
gradient: LinearGradient(
|
||||
colors: [
|
||||
const Color(0xffF4F9FF).withValues(alpha: 0.30),
|
||||
const Color(0xffF4F9FF).withValues(alpha: 0.40),
|
||||
const Color(0xffF4F9FF).withValues(alpha: 0.50),
|
||||
const Color(0xffF4F9FF).withValues(alpha: 0.60),
|
||||
const Color(0xffF4F9FF).withValues(alpha: 0.70),
|
||||
],
|
||||
begin: Alignment.topCenter,
|
||||
end: Alignment.bottomCenter,
|
||||
stops: const [0.0, 0.1, 0.15, 0.2, 0.25],
|
||||
),
|
||||
),
|
||||
child: ListView(
|
||||
children: [
|
||||
Container(
|
||||
decoration: BoxDecoration(
|
||||
gradient: LinearGradient(
|
||||
colors: [
|
||||
const Color(0xffF4F9FF).withValues(alpha: 0.0),
|
||||
const Color(0xffF4F9FF).withValues(alpha: 0.7),
|
||||
const Color(0xffF4F9FF).withValues(alpha: 0.8),
|
||||
const Color(0xffF4F9FF).withValues(alpha: 0.9),
|
||||
const Color(0xffF4F9FF),
|
||||
],
|
||||
begin: Alignment.topCenter,
|
||||
end: Alignment.bottomCenter,
|
||||
stops: const [0.0, 0.1, 0.15, 0.18, 0.22],
|
||||
),
|
||||
),
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.symmetric(
|
||||
horizontal: 20.0, vertical: 15.0),
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
// heading (title, x button)
|
||||
Padding(
|
||||
padding: const EdgeInsets.only(left: 12.0),
|
||||
child: Row(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
children: [
|
||||
const Text(
|
||||
'reFilc+',
|
||||
style: TextStyle(
|
||||
fontSize: 33,
|
||||
color: Color(0xFF0a1c41),
|
||||
fontWeight: FontWeight.bold,
|
||||
),
|
||||
),
|
||||
IconButton(
|
||||
onPressed: () => Navigator.of(context).pop(),
|
||||
icon: const Icon(
|
||||
FeatherIcons.x,
|
||||
color: Colors.black,
|
||||
),
|
||||
)
|
||||
],
|
||||
),
|
||||
),
|
||||
Padding(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 12.0),
|
||||
child: Text.rich(
|
||||
TextSpan(
|
||||
text: 'even_more_cheaper'.i18n,
|
||||
style: const TextStyle(
|
||||
height: 1.2,
|
||||
fontSize: 22,
|
||||
color: Color(0xFF0A1C41),
|
||||
fontWeight: FontWeight.w600,
|
||||
),
|
||||
children: [
|
||||
WidgetSpan(
|
||||
child: Transform.translate(
|
||||
offset: const Offset(1.0, -5.5),
|
||||
child: Text(
|
||||
'1',
|
||||
style: TextStyle(
|
||||
fontSize: 14.4,
|
||||
color: const Color(0xFF0A1C41)
|
||||
.withValues(alpha: 0.5),
|
||||
fontWeight: FontWeight.w600,
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
// cards and description
|
||||
const SizedBox(
|
||||
height: 60,
|
||||
),
|
||||
Padding(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 12.0),
|
||||
child: Text.rich(
|
||||
TextSpan(
|
||||
children: [
|
||||
TextSpan(text: 'support_1'.i18n),
|
||||
WidgetSpan(
|
||||
child: Transform.translate(
|
||||
offset: const Offset(1.0, -3.6),
|
||||
child: Text(
|
||||
'2',
|
||||
style: TextStyle(
|
||||
color: const Color(0xFF011234)
|
||||
.withValues(alpha: 0.5),
|
||||
fontSize: 10.0,
|
||||
fontWeight: FontWeight.w500,
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
TextSpan(
|
||||
text: 'support_2'.i18n,
|
||||
),
|
||||
],
|
||||
style: TextStyle(
|
||||
color: const Color(0xFF011234)
|
||||
.withValues(alpha: 0.6),
|
||||
fontWeight: FontWeight.w500,
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
const SizedBox(
|
||||
height: 18,
|
||||
),
|
||||
PlusPlanCard(
|
||||
active: ActiveSponsorCard.estimateLevel(
|
||||
context.watch<PlusProvider>().scopes) ==
|
||||
PremiumFeatureLevel.cap,
|
||||
iconPath: 'assets/images/plus_tier_cap.png',
|
||||
title: 'reFilc+',
|
||||
description: 'tier_rfp'.i18n,
|
||||
color: const Color(0xFF7C3EFF),
|
||||
gradient: plusGradient,
|
||||
id: showLifetime ? 'refilcpluslifetime' : 'refilcplus',
|
||||
price: showLifetime ? 29.99 : 0.99,
|
||||
borderRadius: const BorderRadius.vertical(
|
||||
top: Radius.circular(16.0),
|
||||
bottom: Radius.circular(16.0)),
|
||||
features: [
|
||||
['✨', 'rfp_1'.i18n],
|
||||
['1️⃣', 'rfp_5'.i18n],
|
||||
// ['👥', 'rfp_2'.i18n],
|
||||
['👋', 'rfp_3'.i18n],
|
||||
['📓', 'rfp_4'.i18n],
|
||||
// ['🎓', 'rfp_6'.i18n],
|
||||
['📩', 'rfp_17'.i18n],
|
||||
['🪟', 'rfp_18'.i18n],
|
||||
['👕', 'rfp_14'.i18n],
|
||||
['👑', 'rfp_15'.i18n],
|
||||
['🔜', 'more_soon'.i18n],
|
||||
],
|
||||
docsAccepted: docsAccepted,
|
||||
),
|
||||
const SizedBox(
|
||||
height: 12.0,
|
||||
),
|
||||
PlusPlanCard(
|
||||
active: ActiveSponsorCard.estimateLevel(
|
||||
context.watch<PlusProvider>().scopes) ==
|
||||
PremiumFeatureLevel.ink,
|
||||
iconPath: 'assets/images/plus_tier_ink.png',
|
||||
title: 'reFilc+ Gold',
|
||||
description: 'tier_rfpgold'.i18n,
|
||||
color: const Color(0xFFFFBD3E),
|
||||
gradient: goldGradient,
|
||||
id: showLifetime
|
||||
? 'refilcplusgoldlifetime'
|
||||
: 'refilcplusgold',
|
||||
price: showLifetime ? 49.99 : 2.99,
|
||||
borderRadius: const BorderRadius.vertical(
|
||||
top: Radius.circular(16.0),
|
||||
bottom: Radius.circular(16.0)),
|
||||
features: [
|
||||
['🕑', 'rfp_7'.i18n],
|
||||
['🔤', 'rfp_8'.i18n],
|
||||
// ['👥', 'rfp_9'.i18n],
|
||||
// ['🎓', 'Összesített átlagszámoló'],
|
||||
['📱', 'rfp_10'.i18n],
|
||||
['🟦', 'rfp_11'.i18n],
|
||||
['📒', 'rfp_12'.i18n],
|
||||
['📅', 'rfp_13'.i18n],
|
||||
['👀', 'rfp_16'.i18n],
|
||||
const ['🖋️', 'cap_tier_benefits'],
|
||||
['🔜', 'more_soon'.i18n],
|
||||
],
|
||||
docsAccepted: docsAccepted,
|
||||
),
|
||||
// const SizedBox(
|
||||
// height: 8.0,
|
||||
// ),
|
||||
// PlusPlanCard(
|
||||
// active: ActiveSponsorCard.estimateLevel(
|
||||
// context.watch<PlusProvider>().scopes) ==
|
||||
// PremiumFeatureLevel.sponge,
|
||||
// iconPath: 'assets/images/plus_tier_sponge.png',
|
||||
// title: 'Szivacs',
|
||||
// description:
|
||||
// 'Férj hozzá még több funkcióhoz, használj még több profilt és tedd egyszerűbbé mindennapjaid.',
|
||||
// color: const Color(0xFFFFC700),
|
||||
// id: 'refilcplusgold',
|
||||
// price: 4.99,
|
||||
// borderRadius: const BorderRadius.vertical(
|
||||
// top: Radius.circular(8.0),
|
||||
// bottom: Radius.circular(16.0)),
|
||||
// features: const [
|
||||
// ['👥', 'Korlátlan fiók használata egyszerre'],
|
||||
// ['🖋️', 'ink_cap_tier_benefits'],
|
||||
// ],
|
||||
// ),
|
||||
// const SizedBox(
|
||||
// height: 18.0,
|
||||
// ),
|
||||
// const GithubLoginButton(),
|
||||
// lifetime plan toggle
|
||||
const SizedBox(
|
||||
height: 18.0,
|
||||
),
|
||||
Container(
|
||||
decoration: BoxDecoration(
|
||||
borderRadius: BorderRadius.circular(16.0),
|
||||
border: Border.all(
|
||||
color: Colors.black.withValues(alpha: 0.2),
|
||||
),
|
||||
),
|
||||
child: SwitchListTile(
|
||||
contentPadding:
|
||||
const EdgeInsets.only(left: 15.0, right: 10.0),
|
||||
value: showLifetime,
|
||||
onChanged: (value) {
|
||||
setState(() {
|
||||
showLifetime = !showLifetime;
|
||||
});
|
||||
},
|
||||
title: Text(
|
||||
'show_lifetime'.i18n,
|
||||
style: const TextStyle(
|
||||
color: Colors.black,
|
||||
fontWeight: FontWeight.w500,
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
// reactivate plus
|
||||
const SizedBox(
|
||||
height: 18.0,
|
||||
),
|
||||
Container(
|
||||
decoration: BoxDecoration(
|
||||
borderRadius: BorderRadius.circular(16.0),
|
||||
border: Border.all(
|
||||
color: Colors.black.withValues(alpha: 0.2),
|
||||
),
|
||||
),
|
||||
child: ListTile(
|
||||
contentPadding:
|
||||
const EdgeInsets.only(left: 15.0, right: 10.0),
|
||||
onTap: () async {
|
||||
// try clipboard re-activation
|
||||
final data = await Clipboard.getData("text/plain");
|
||||
if (data != null &&
|
||||
data.text != null &&
|
||||
data.text != "") {
|
||||
// activate using clipboard data
|
||||
final result = await context
|
||||
.read<PlusProvider>()
|
||||
.auth
|
||||
.finishAuth(data.text!);
|
||||
|
||||
if (!result && mounted) {
|
||||
ScaffoldMessenger.of(context)
|
||||
.showSnackBar(const SnackBar(
|
||||
content: Text(
|
||||
"Sikertelen aktiválás. Kérlek próbáld újra később!",
|
||||
style: TextStyle(
|
||||
color: Colors.white,
|
||||
fontWeight: FontWeight.bold),
|
||||
),
|
||||
backgroundColor: Colors.red,
|
||||
));
|
||||
} else {
|
||||
ScaffoldMessenger.of(context)
|
||||
.showSnackBar(const SnackBar(
|
||||
content: Text(
|
||||
"Sikeres aktiválás!",
|
||||
style: TextStyle(
|
||||
color: Colors.white,
|
||||
fontWeight: FontWeight.bold),
|
||||
),
|
||||
backgroundColor: Colors.green,
|
||||
));
|
||||
|
||||
Future.delayed(const Duration(seconds: 2),
|
||||
() => Navigator.of(context).pop());
|
||||
}
|
||||
}
|
||||
|
||||
// try re-activation using refresh
|
||||
final result = await context
|
||||
.read<PlusProvider>()
|
||||
.auth
|
||||
.refreshAuth(reactivate: true);
|
||||
|
||||
if (mounted) {
|
||||
if (result) {
|
||||
ScaffoldMessenger.of(context)
|
||||
.showSnackBar(const SnackBar(
|
||||
content: Text(
|
||||
"Sikeres aktiválás!",
|
||||
style: TextStyle(
|
||||
color: Colors.white,
|
||||
fontWeight: FontWeight.bold),
|
||||
),
|
||||
backgroundColor: Colors.green,
|
||||
));
|
||||
|
||||
Future.delayed(const Duration(seconds: 2),
|
||||
() => Navigator.of(context).pop());
|
||||
} else {
|
||||
ScaffoldMessenger.of(context)
|
||||
.showSnackBar(const SnackBar(
|
||||
content: Text(
|
||||
"Sikertelen aktiválás. Kérlek próbáld újra később!",
|
||||
style: TextStyle(
|
||||
color: Colors.white,
|
||||
fontWeight: FontWeight.bold),
|
||||
),
|
||||
backgroundColor: Colors.red,
|
||||
));
|
||||
}
|
||||
}
|
||||
},
|
||||
title: Text(
|
||||
'reactivate'.i18n,
|
||||
style: const TextStyle(
|
||||
color: Colors.black,
|
||||
fontWeight: FontWeight.w500,
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
// aszf warning
|
||||
// const SizedBox(
|
||||
// height: 18.0,
|
||||
// ),
|
||||
// Container(
|
||||
// decoration: BoxDecoration(
|
||||
// borderRadius: BorderRadius.circular(16.0),
|
||||
// border: Border.all(
|
||||
// color: Colors.black.withValues(alpha: 0.2),
|
||||
// ),
|
||||
// ),
|
||||
// child: CheckboxListTile(
|
||||
// side:
|
||||
// const BorderSide(color: Colors.black, width: 2.0),
|
||||
// contentPadding:
|
||||
// const EdgeInsets.only(left: 15.0, right: 10.0),
|
||||
// value: docsAccepted,
|
||||
// onChanged: (value) {
|
||||
// setState(() {
|
||||
// docsAccepted = !docsAccepted;
|
||||
// });
|
||||
// },
|
||||
// // title: Text(
|
||||
// // 'show_lifetime'.i18n,
|
||||
// // style: const TextStyle(
|
||||
// // color: Colors.black,
|
||||
// // fontWeight: FontWeight.w500,
|
||||
// // ),
|
||||
// // ),
|
||||
// subtitle: const Text(
|
||||
// 'Elfogadod a reFilc előfizetésekkel kapcsolatos Általános Szerződési Feltételeit (elérhető az alábbi link-en: filc.one/pay-terms), valamint Adatkezelési Tájékoztatónkat (elérhető az alábbi link-en: filc.one/pay-privacy)?',
|
||||
// textAlign: TextAlign.start,
|
||||
// style: TextStyle(color: Colors.black),
|
||||
// ),
|
||||
// ),
|
||||
// ),
|
||||
// CheckboxListTile(value: false, onChanged: onChanged)
|
||||
// Padding(
|
||||
// padding: const EdgeInsets.symmetric(horizontal: 12.0),
|
||||
// child: Text(
|
||||
// 'A szolgáltatási csomag kiválasztásával (megérintés) elfogadod a reFilc előfizetésekkel kapcsolatos Általános Szerződési Feltételeit (elérhető az alábbi link-en: filc.one/pay-terms), valamint Adatkezelési Tájékoztatónkat (elérhető az alábbi link-en: filc.one/pay-privacy).',
|
||||
// textAlign: TextAlign.justify,
|
||||
// style:
|
||||
// TextStyle(color: Colors.black.withValues(alpha: 0.9)),
|
||||
// ),
|
||||
// ),
|
||||
// faq section
|
||||
const SizedBox(
|
||||
height: 30.0,
|
||||
),
|
||||
Padding(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 12.0),
|
||||
child: Text(
|
||||
'faq'.i18n,
|
||||
style: TextStyle(
|
||||
color:
|
||||
const Color(0xFF011234).withValues(alpha: 0.6),
|
||||
fontWeight: FontWeight.w500,
|
||||
),
|
||||
),
|
||||
),
|
||||
const SizedBox(
|
||||
height: 18,
|
||||
),
|
||||
Card(
|
||||
margin: EdgeInsets.zero,
|
||||
shape: const RoundedRectangleBorder(
|
||||
borderRadius: BorderRadius.vertical(
|
||||
top: Radius.circular(16.0),
|
||||
bottom: Radius.circular(8.0),
|
||||
),
|
||||
),
|
||||
shadowColor: Colors.transparent,
|
||||
surfaceTintColor: const Color(0xffFFFFFF),
|
||||
color: Colors.white,
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.only(
|
||||
top: 18.0,
|
||||
bottom: 16.0,
|
||||
left: 22.0,
|
||||
right: 18.0,
|
||||
),
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Text(
|
||||
'money'.i18n,
|
||||
style: const TextStyle(
|
||||
fontSize: 16.6,
|
||||
fontWeight: FontWeight.w600,
|
||||
color: Colors.black,
|
||||
),
|
||||
),
|
||||
const SizedBox(
|
||||
height: 14.0,
|
||||
),
|
||||
Text.rich(
|
||||
TextSpan(
|
||||
style: TextStyle(
|
||||
color: const Color(0xFF011234)
|
||||
.withValues(alpha: 0.6),
|
||||
fontWeight: FontWeight.w500,
|
||||
),
|
||||
children: [
|
||||
TextSpan(
|
||||
text: 'm_1'.i18n,
|
||||
),
|
||||
WidgetSpan(
|
||||
child: Transform.translate(
|
||||
offset: const Offset(1.0, -3.6),
|
||||
child: Text(
|
||||
'3',
|
||||
style: TextStyle(
|
||||
color: const Color(0xFF011234)
|
||||
.withValues(alpha: 0.5),
|
||||
fontSize: 10.0,
|
||||
fontWeight: FontWeight.w500,
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
TextSpan(
|
||||
text: 'm_2'.i18n,
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
const SizedBox(
|
||||
height: 8.0,
|
||||
),
|
||||
Card(
|
||||
margin: EdgeInsets.zero,
|
||||
shape: const RoundedRectangleBorder(
|
||||
borderRadius: BorderRadius.vertical(
|
||||
top: Radius.circular(8.0),
|
||||
bottom: Radius.circular(16.0),
|
||||
),
|
||||
),
|
||||
shadowColor: Colors.transparent,
|
||||
surfaceTintColor: const Color(0xffFFFFFF),
|
||||
color: Colors.white,
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.only(
|
||||
top: 18.0,
|
||||
bottom: 16.0,
|
||||
left: 22.0,
|
||||
right: 18.0,
|
||||
),
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Text(
|
||||
'open'.i18n,
|
||||
style: const TextStyle(
|
||||
fontSize: 16.6,
|
||||
fontWeight: FontWeight.w600,
|
||||
color: Colors.black,
|
||||
),
|
||||
),
|
||||
const SizedBox(
|
||||
height: 14.0,
|
||||
),
|
||||
Text(
|
||||
'o_1'.i18n,
|
||||
style: TextStyle(
|
||||
color: const Color(0xFF011234)
|
||||
.withValues(alpha: 0.6),
|
||||
fontWeight: FontWeight.w500,
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
const SizedBox(
|
||||
height: 30.0,
|
||||
),
|
||||
Padding(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 12.0),
|
||||
child: Text(
|
||||
'desc'.i18n,
|
||||
style: TextStyle(
|
||||
color:
|
||||
const Color(0xFF011234).withValues(alpha: 0.6),
|
||||
fontWeight: FontWeight.w500,
|
||||
),
|
||||
),
|
||||
),
|
||||
const SizedBox(
|
||||
height: 18,
|
||||
),
|
||||
Card(
|
||||
margin: EdgeInsets.zero,
|
||||
shape: const RoundedRectangleBorder(
|
||||
borderRadius: BorderRadius.vertical(
|
||||
top: Radius.circular(8.0),
|
||||
bottom: Radius.circular(16.0),
|
||||
),
|
||||
),
|
||||
shadowColor: Colors.transparent,
|
||||
surfaceTintColor: const Color(0xffFFFFFF),
|
||||
color: Colors.white,
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.only(
|
||||
top: 18.0,
|
||||
bottom: 16.0,
|
||||
left: 22.0,
|
||||
right: 18.0,
|
||||
),
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Row(
|
||||
children: [
|
||||
Container(
|
||||
decoration: BoxDecoration(
|
||||
color: const Color(0xff011234),
|
||||
borderRadius: BorderRadius.circular(20.0),
|
||||
),
|
||||
padding: const EdgeInsets.symmetric(
|
||||
horizontal: 10.0,
|
||||
vertical: 2.5,
|
||||
),
|
||||
child: const Text(
|
||||
'1',
|
||||
style: TextStyle(
|
||||
color: Colors.white,
|
||||
fontWeight: FontWeight.w500,
|
||||
),
|
||||
),
|
||||
),
|
||||
const SizedBox(
|
||||
width: 14.0,
|
||||
),
|
||||
Expanded(
|
||||
child: Text(
|
||||
'cheaper'.i18n,
|
||||
maxLines: 5,
|
||||
style: const TextStyle(
|
||||
fontWeight: FontWeight.w500,
|
||||
fontSize: 14.4,
|
||||
height: 1.3,
|
||||
color: Colors.black,
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
const SizedBox(
|
||||
height: 14.0,
|
||||
),
|
||||
Row(
|
||||
children: [
|
||||
Container(
|
||||
decoration: BoxDecoration(
|
||||
color: const Color(0xff011234),
|
||||
borderRadius: BorderRadius.circular(20.0),
|
||||
),
|
||||
padding: const EdgeInsets.symmetric(
|
||||
horizontal: 8.8,
|
||||
vertical: 2.5,
|
||||
),
|
||||
child: const Text(
|
||||
'2',
|
||||
style: TextStyle(
|
||||
color: Colors.white,
|
||||
fontWeight: FontWeight.w500,
|
||||
),
|
||||
),
|
||||
),
|
||||
const SizedBox(
|
||||
width: 14.0,
|
||||
),
|
||||
Expanded(
|
||||
child: Text(
|
||||
'qwit'.i18n,
|
||||
maxLines: 5,
|
||||
style: const TextStyle(
|
||||
fontWeight: FontWeight.w500,
|
||||
fontSize: 14.4,
|
||||
height: 1.3,
|
||||
color: Colors.black,
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
const SizedBox(
|
||||
height: 14.0,
|
||||
),
|
||||
Row(
|
||||
children: [
|
||||
Container(
|
||||
decoration: BoxDecoration(
|
||||
color: const Color(0xff011234),
|
||||
borderRadius: BorderRadius.circular(20.0),
|
||||
),
|
||||
padding: const EdgeInsets.symmetric(
|
||||
horizontal: 8.6,
|
||||
vertical: 2.5,
|
||||
),
|
||||
child: const Text(
|
||||
'3',
|
||||
style: TextStyle(
|
||||
color: Colors.white,
|
||||
fontWeight: FontWeight.w500,
|
||||
),
|
||||
),
|
||||
),
|
||||
const SizedBox(
|
||||
width: 14.0,
|
||||
),
|
||||
Expanded(
|
||||
child: Text(
|
||||
'apple'.i18n,
|
||||
maxLines: 5,
|
||||
style: const TextStyle(
|
||||
fontWeight: FontWeight.w500,
|
||||
fontSize: 14.4,
|
||||
height: 1.3,
|
||||
color: Colors.black,
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
const SizedBox(
|
||||
height: 14.0,
|
||||
),
|
||||
Row(
|
||||
children: [
|
||||
Container(
|
||||
decoration: BoxDecoration(
|
||||
color: const Color(0xff011234),
|
||||
borderRadius: BorderRadius.circular(20.0),
|
||||
),
|
||||
padding: const EdgeInsets.symmetric(
|
||||
horizontal: 7.9,
|
||||
vertical: 2.5,
|
||||
),
|
||||
child: const Text(
|
||||
'4',
|
||||
style: TextStyle(
|
||||
color: Colors.white,
|
||||
fontWeight: FontWeight.w500,
|
||||
),
|
||||
),
|
||||
),
|
||||
const SizedBox(
|
||||
width: 14.0,
|
||||
),
|
||||
Expanded(
|
||||
child: Text(
|
||||
'eur'.i18n,
|
||||
maxLines: 5,
|
||||
style: const TextStyle(
|
||||
fontWeight: FontWeight.w500,
|
||||
fontSize: 14.4,
|
||||
height: 1.3,
|
||||
color: Colors.black,
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
const SizedBox(
|
||||
height: 14.0,
|
||||
),
|
||||
Row(
|
||||
children: [
|
||||
Container(
|
||||
decoration: BoxDecoration(
|
||||
color: const Color(0xff011234),
|
||||
borderRadius: BorderRadius.circular(20.0),
|
||||
),
|
||||
padding: const EdgeInsets.symmetric(
|
||||
horizontal: 7.9,
|
||||
vertical: 2.5,
|
||||
),
|
||||
child: const Text(
|
||||
'5',
|
||||
style: TextStyle(
|
||||
color: Colors.white,
|
||||
fontWeight: FontWeight.w500,
|
||||
),
|
||||
),
|
||||
),
|
||||
const SizedBox(
|
||||
width: 14.0,
|
||||
),
|
||||
Expanded(
|
||||
child: Text(
|
||||
'faq_dc'.i18n,
|
||||
maxLines: 5,
|
||||
style: const TextStyle(
|
||||
fontWeight: FontWeight.w500,
|
||||
fontSize: 14.4,
|
||||
height: 1.3,
|
||||
color: Colors.black,
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -1,206 +0,0 @@
|
||||
import 'package:i18n_extension/i18n_extension.dart';
|
||||
|
||||
extension SettingsLocalization on String {
|
||||
static final _t = Translations.byLocale("hu_hu") +
|
||||
{
|
||||
"en_en": {
|
||||
"even_more_cheaper": "More reFilc, cheaper\nthan anything else!",
|
||||
"support_1": "Support QwIT",
|
||||
"support_2": " and get useful features in return!",
|
||||
"tier_rfp": "More customisation, more accounts, easier notes.",
|
||||
"tier_rfpgold":
|
||||
"Get access to more features and make your day better and simpler.",
|
||||
"faq": "FAQ",
|
||||
"money": "What will you spend my money on?",
|
||||
"m_1":
|
||||
"We will spend the money from our supporters on the \$100 fee of the Apple",
|
||||
"m_2":
|
||||
" Developer Program, our servers, and the reFilc domains. The remaining money will be spent on other development stuff, and pizza parties.",
|
||||
"open": "Will reFilc stay open-source?",
|
||||
"o_1":
|
||||
"Yes, reFilc is, and always will be, open-source. Subscribers can ask for the source code of reFilc+ on our Discord server.",
|
||||
"desc": "Explanations",
|
||||
"cheaper":
|
||||
"The lowest tier of service is cheaper than most known subscriptions, but there may be exceptions.",
|
||||
"qwit":
|
||||
"\"QwIT\" is an abbreviation of \"QwIT Development\", the development team behind reFilc and other projects.",
|
||||
"apple": "\"Apple\" is a trademark of Apple Inc.",
|
||||
"eur":
|
||||
"Prices are displayed in euros, which means it's dependant on the exchange rate. 1 EUR ≈ 390 HUF",
|
||||
"active": "Active",
|
||||
// benefits
|
||||
"rfp_1": "Early access to updates",
|
||||
"rfp_2": "Use two accounts simaltaneously",
|
||||
"rfp_3": "Custom welcome message",
|
||||
"rfp_4": "Unlimited custom notes and tasks on the Notebook page",
|
||||
"rfp_5": "Custom grade rarities",
|
||||
"rfp_6": "Overall average calculator",
|
||||
"rfp_7": "Timetable notes",
|
||||
"rfp_8": "Custom font types",
|
||||
"rfp_9": "Unlimited accounts",
|
||||
"rfp_10": "Custom app icon (from v5.1)",
|
||||
"rfp_11": "Change Live Activity color",
|
||||
"rfp_12": "Better goal planner",
|
||||
"rfp_13": "Import your timetable into your calendar app",
|
||||
"rfp_14": "Discount in reFilc Shop (soon)",
|
||||
"rfp_15": "Subscriber role in our Discord community",
|
||||
"rfp_16": "Private leaks and informations about upcoming features",
|
||||
"rfp_17": "Grade exporting",
|
||||
"rfp_18": "Viewing exported grades",
|
||||
// docs and payment method popup
|
||||
"docs": "Documents",
|
||||
"docs_acceptance":
|
||||
"By pressing the \"Next\" button, you accept reFilc's Terms and Conditions for subscriptions (available at the following link: filc.one/pay-terms) and our Privacy Policy (available at the following link: filc.one/pay-privacy).",
|
||||
"next": "Next",
|
||||
"payment_method": "Payment Method",
|
||||
"select_payment_method":
|
||||
"Please select a preferred payment method! Credit card payments are handled by Stripe, which also supports Apple Pay, Google Pay and Revolut Pay.",
|
||||
"stripe": "Credit Card",
|
||||
"paypal": "PayPal",
|
||||
// other
|
||||
"and": " and ",
|
||||
"every": "Every ",
|
||||
"benefit": " benefit",
|
||||
"show_lifetime": "Show Lifetime Plans",
|
||||
"more_soon": "More coming soon...",
|
||||
"faq_dc":
|
||||
"To redeem your Discord-related benefits, contact us on Discord in DMs!",
|
||||
"reactivate": "Reactivate Existing Subscription",
|
||||
},
|
||||
"hu_hu": {
|
||||
"even_more_cheaper": "Még több reFilc, olcsóbban,\nmint bármi más!",
|
||||
"support_1": "Támogasd a QwIT",
|
||||
"support_2": " csapatát, és szerezz cserébe pár kényelmes jutalmat!",
|
||||
"tier_rfp":
|
||||
"Több személyre szabás, több fiók, egyszerű feladatfeljegyzés.",
|
||||
"tier_rfpgold":
|
||||
"Férj hozzá még több funkcióhoz és tedd egyszerűbbé mindennapjaid.",
|
||||
"faq": "Gyakori kérdések",
|
||||
"money": "Mire költitek a pénzt?",
|
||||
"m_1": "A támogatásokból kapott pénz elsősorban az Apple",
|
||||
"m_2":
|
||||
" Developer Program évi \$100-os díját, valamint az API mögött álló szerverek és a reFilc domain címek árát fedezi, a maradékot egyéb fejlesztésekre, fejlesztői fagyizásra fordítjuk.",
|
||||
"open": "Még mindig nyílt a forráskód?",
|
||||
"o_1":
|
||||
"Igen, a reFilc teljesen nyílt forráskódú, és ez így is fog maradni. A reFilc+ funkcióinak forráskódjához bármely támogatónk hozzáférhet, ha ezt Discord-on kérelmezi.",
|
||||
"desc": "Magyarázatok",
|
||||
"cheaper":
|
||||
"A szolgáltatás legalacsonyabb szintje olcsóbb a legtöbb ismert előfizetésnél, viszont előfordulhatnak kivételek.",
|
||||
"qwit":
|
||||
"A \"QwIT\" a \"QwIT Development\" rövid neve, ez a fejlesztői csapat neve, mely a reFilc és egyéb projektek mögött áll.",
|
||||
"apple": "Az \"Apple\" az Apple Inc. védjegye.",
|
||||
"eur":
|
||||
"Az árak euróban vannak feltüntetve, így az árfolyam befolyásolja, hogy mennyit kell fizetned a szolgáltatásért. 1 EUR ≈ 390 Ft",
|
||||
"active": "Aktív",
|
||||
// benefits
|
||||
"rfp_1": "Előzetes hozzáférés új verziókhoz",
|
||||
"rfp_2": "2 fiók használata egyszerre",
|
||||
"rfp_3": "Egyedi üdvözlő üzenet",
|
||||
"rfp_4": "Korlátlan saját jegyzet és feladat a füzet oldalon",
|
||||
"rfp_5": "Egyedi jegy ritkaságok",
|
||||
"rfp_6": "Összesített átlagszámoló",
|
||||
"rfp_7": "Órarend jegyzetek",
|
||||
"rfp_8": "Egyedi betütípusok",
|
||||
"rfp_9": "Korlátlan fiók használata egyszerre",
|
||||
"rfp_10": "Alkalmazás ikonjának megváltoztatása (v5.1-től)",
|
||||
"rfp_11": "Live Activity szín",
|
||||
"rfp_12": "Fejlettebb cél kitűzés",
|
||||
"rfp_13": "Naptár szinkronizálás",
|
||||
"rfp_14": "Kedvezmény a reFilc Shop-ban (hamarosan)",
|
||||
"rfp_15": "Előfizetői rang a Discord szerverünkön",
|
||||
"rfp_16": "Privát betekintések és információk közelgő újításokról",
|
||||
"rfp_17": "Jegy exportálás",
|
||||
"rfp_18": "Exportált jegyek megtekintése",
|
||||
// docs and payment method popup
|
||||
"docs": "Dokumentumok",
|
||||
"docs_acceptance":
|
||||
"A \"Tovább\" gombra kattintva elfogadod a reFilc előfizetésekkel kapcsolatos Általános Szerződési Feltételeit (elérhető az alábbi link-en: filc.one/pay-terms), valamint Adatkezelési Tájékoztatónkat (elérhető az alábbi link-en: filc.one/pay-privacy).",
|
||||
"next": "Tovább",
|
||||
"payment_method": "Fizetési mód",
|
||||
"select_payment_method":
|
||||
"Kérlek válassz egy fizetési módot! A bankkártyás fizetést a Stripe biztosítja, mely támogat Apple Pay-t, Google Pay-t és Revolut Pay-t is.",
|
||||
"stripe": "Bankkártya",
|
||||
"paypal": "PayPal",
|
||||
// other
|
||||
"and": " és ",
|
||||
"every": "Minden ",
|
||||
"benefit": " előny",
|
||||
"show_lifetime": "Örökre szóló csomagok",
|
||||
"more_soon": "Hamarosan mégtöbb finomság...",
|
||||
"faq_dc":
|
||||
"A Discord-al kapcsolatos előnyök beváltásához írj nekünk Discord-on privát üzenetet!",
|
||||
"reactivate": "Meglévő előfizetés újraaktiválása",
|
||||
},
|
||||
"de_de": {
|
||||
"even_more_cheaper": "Mehr reFilc, günstiger\nals alles andere!",
|
||||
"support_1": "Unterstütze QwIT",
|
||||
"support_2": " und du kriegst mehr nützliche Features!",
|
||||
"tier_rfp":
|
||||
"Mehr Personalisierung, mehr Profile, einfachere Notizen.",
|
||||
"tier_rfpgold":
|
||||
"Hol dir mehr Features und mach damit dein Alltag einfacher.",
|
||||
"faq": "Häufig gestellte Fragen (FAQ)",
|
||||
"money": "Was tun wir mit deinem Geld?",
|
||||
"m_1":
|
||||
"Wir verwenden das gesammelte Geld von unseren Sponsoren ausschließlich auf die \$100 Gebühr von dem Apple",
|
||||
"m_2":
|
||||
" Developer Program, unsere Server und die reFilc Domänen. Das restliche Geld wird auf andere Entwicklungsbezogene Dinge und auch Pizza Parties bezweckt.",
|
||||
"open": "Wird reFilc Open-Source bleiben?",
|
||||
"o_1":
|
||||
"Ja, reFilc ist und bleibt weiterhin ein Open-Source Projekt. Abonnenten des reFilc+ Abos können auch natürlich den Quellcode dieser Version in unserem Discord Server finden.",
|
||||
"desc": "Erklärung/Aufklärung",
|
||||
"cheaper":
|
||||
"Das günstigste Abonnement ist das beliebteste, es gibt natürlich aber auch ausnahmen.",
|
||||
"qwit":
|
||||
"\"QwIT\" ist ein Teil of \"QwIT Development\", die Entwickler hinter des Programms reFilc.",
|
||||
"apple": "\"Apple\" ist eine geschützte Marke von Apple Inc.",
|
||||
"eur":
|
||||
"Der Preis wird in Euro angegeben im Bezug zum aktuellen Wechselkurs. 1 EUR ≈ 390 HUF",
|
||||
"active": "Aktiv",
|
||||
// benefits
|
||||
"rfp_1": "Frühzeitiger Zugriff auf Updates",
|
||||
"rfp_2": "Verwendung von zwei Konten gleichzeitig",
|
||||
"rfp_3": "Individuelle Begrüßungsnachricht",
|
||||
"rfp_4":
|
||||
"Unbegrenzte eigene Notizen und Aufgaben auf der Notizbuchseite",
|
||||
"rfp_5": "Individuelle Notenraritäten",
|
||||
"rfp_6": "Gesamtdurchschnittsberechner",
|
||||
"rfp_7": "Stundenplan-Notizen",
|
||||
"rfp_8": "Individuelle Schriftarten",
|
||||
"rfp_9": "Unbegrenzte Konten",
|
||||
"rfp_10": "Anpassung des App-Symbols (ab v5.1)",
|
||||
"rfp_11": "Änderung der Live-Aktivitätsfarbe",
|
||||
"rfp_12": "Verbesserter Zielplaner",
|
||||
"rfp_13": "Importieren Sie Ihren Stundenplan in Ihre Kalender-App",
|
||||
"rfp_14": "Rabatt im reFilc Shop (bald)",
|
||||
"rfp_15": "Abonnentenrolle in unserer Discord-Community",
|
||||
"rfp_16": "Private Leaks und Informationen über kommende Funktionen",
|
||||
"rfp_17": "Notenexport",
|
||||
"rfp_18": "Anzeigen exportierter Noten",
|
||||
// docs and payment method popup
|
||||
"docs": "Dokumente",
|
||||
"docs_acceptance":
|
||||
"Durch Drücken der Schaltfläche \"Weiter\" akzeptieren Sie die Allgemeinen Geschäftsbedingungen von reFilc für Abonnements (verfügbar unter folgendem Link: filc.one/pay-terms) und unsere Datenschutzrichtlinie (verfügbar unter folgendem Link: filc.one/pay-privacy).",
|
||||
"next": "Weiter",
|
||||
"payment_method": "Zahlungsmethode",
|
||||
"select_payment_method":
|
||||
"Bitte wählen Sie eine bevorzugte Zahlungsmethode aus! Kreditkartenzahlungen werden von Stripe abgewickelt, der auch Apple Pay, Google Pay und Revolut Pay unterstützt.",
|
||||
"stripe": "Kreditkarte",
|
||||
"paypal": "PayPal",
|
||||
// other
|
||||
"and": " und ",
|
||||
"every": "Jeder ",
|
||||
"benefit": " Vorteil",
|
||||
"show_lifetime": "Für immer Pakete",
|
||||
"more_soon": "Mehr folgt bald...",
|
||||
"faq_dc":
|
||||
"Um Ihre Vorteile einzulösen, schreiben Sie uns eine private Nachricht auf Discord!",
|
||||
"reactivate": "Bestehendes Abonnement reaktivieren",
|
||||
},
|
||||
};
|
||||
|
||||
String get i18n => localize(this, _t);
|
||||
String fill(List<Object> params) => localizeFill(this, params);
|
||||
String plural(int value) => localizePlural(value, this, _t);
|
||||
String version(Object modifier) => localizeVersion(modifier, this, _t);
|
||||
}
|
||||
@@ -1,126 +0,0 @@
|
||||
import 'dart:ui';
|
||||
|
||||
import 'package:refilc/icons/filc_icons.dart';
|
||||
import 'package:refilc_mobile_ui/plus/plus_screen.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:animations/animations.dart';
|
||||
|
||||
class PremiumButton extends StatefulWidget {
|
||||
const PremiumButton({super.key});
|
||||
|
||||
@override
|
||||
State<PremiumButton> createState() => _PremiumButtonState();
|
||||
}
|
||||
|
||||
class _PremiumButtonState extends State<PremiumButton>
|
||||
with TickerProviderStateMixin {
|
||||
late final AnimationController _animation;
|
||||
bool _heldDown = false;
|
||||
|
||||
@override
|
||||
void initState() {
|
||||
super.initState();
|
||||
_animation =
|
||||
AnimationController(vsync: this, duration: const Duration(seconds: 3));
|
||||
_animation.repeat();
|
||||
}
|
||||
|
||||
@override
|
||||
void dispose() {
|
||||
_animation.dispose();
|
||||
super.dispose();
|
||||
}
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return OpenContainer(
|
||||
openColor: Theme.of(context).scaffoldBackgroundColor,
|
||||
closedColor: Theme.of(context).scaffoldBackgroundColor,
|
||||
clipBehavior: Clip.none,
|
||||
transitionType: ContainerTransitionType.fadeThrough,
|
||||
openElevation: 0,
|
||||
closedElevation: 0,
|
||||
closedShape:
|
||||
RoundedRectangleBorder(borderRadius: BorderRadius.circular(14.0)),
|
||||
openBuilder: (context, _) => const PlusScreen(),
|
||||
closedBuilder: (context, action) => GestureDetector(
|
||||
onTapDown: (_) => setState(() => _heldDown = true),
|
||||
onTapUp: (_) => setState(() => _heldDown = false),
|
||||
onTapCancel: () => setState(() => _heldDown = false),
|
||||
onTap: action,
|
||||
child: Stack(
|
||||
alignment: Alignment.center,
|
||||
children: [
|
||||
// RGB background animation
|
||||
AnimatedBuilder(
|
||||
animation: _animation,
|
||||
builder: (context, child) {
|
||||
return Padding(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 18.0),
|
||||
child: ClipRRect(
|
||||
borderRadius: BorderRadius.circular(14.0),
|
||||
child: ImageFiltered(
|
||||
imageFilter:
|
||||
ImageFilter.blur(sigmaX: 10.0, sigmaY: 10.0),
|
||||
child: Container(
|
||||
height: 70,
|
||||
decoration: BoxDecoration(
|
||||
gradient: SweepGradient(
|
||||
colors: const [
|
||||
Colors.blue,
|
||||
Colors.orange,
|
||||
Colors.purple,
|
||||
Colors.blue,
|
||||
],
|
||||
transform: GradientRotation(
|
||||
_animation.value * 6.283185)),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
}),
|
||||
|
||||
// Button background & text
|
||||
BackdropFilter(
|
||||
filter: ImageFilter.blur(sigmaX: 6.0, sigmaY: 6.0),
|
||||
child: AnimatedScale(
|
||||
duration: const Duration(milliseconds: 250),
|
||||
curve: Curves.easeOutBack,
|
||||
scale: _heldDown ? 1.03 : 1,
|
||||
child: Container(
|
||||
margin: const EdgeInsets.symmetric(horizontal: 24.0),
|
||||
width: double.infinity,
|
||||
height: 60,
|
||||
decoration: BoxDecoration(
|
||||
borderRadius: BorderRadius.circular(14.0),
|
||||
gradient: const LinearGradient(colors: [
|
||||
Color(0xff124F3D),
|
||||
Color(0xff1EA18F),
|
||||
]),
|
||||
),
|
||||
child: const Row(
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: [
|
||||
Icon(FilcIcons.premium, color: Colors.white),
|
||||
SizedBox(width: 12.0),
|
||||
Text(
|
||||
"reFilc+",
|
||||
style: TextStyle(
|
||||
color: Colors.white,
|
||||
fontWeight: FontWeight.bold,
|
||||
fontSize: 20.0,
|
||||
),
|
||||
textAlign: TextAlign.center,
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -1,13 +0,0 @@
|
||||
import 'package:flutter/widgets.dart';
|
||||
|
||||
class GradientStyles {
|
||||
static const tinta = LinearGradient(
|
||||
colors: [Color(0xffB816E0), Color(0xff17D1BB)],
|
||||
);
|
||||
static final tintaPaint = Paint()..shader = tinta.createShader(const Rect.fromLTWH(0, 0, 200, 70));
|
||||
|
||||
static const kupak = LinearGradient(
|
||||
colors: [Color(0xffF0BD0C), Color(0xff0CD070)],
|
||||
);
|
||||
static final kupakPaint = Paint()..shader = kupak.createShader(const Rect.fromLTWH(0, 0, 200, 70));
|
||||
}
|
||||
@@ -1,144 +0,0 @@
|
||||
import 'package:refilc/icons/filc_icons.dart';
|
||||
import 'package:refilc/models/supporter.dart';
|
||||
import 'package:refilc/theme/colors/colors.dart';
|
||||
import 'package:refilc_mobile_ui/plus/components/supporter_group_card.dart';
|
||||
import 'package:refilc_mobile_ui/plus/styles/gradients.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class SupportersScreen extends StatelessWidget {
|
||||
const SupportersScreen({super.key, required this.supporters});
|
||||
|
||||
final Future<Supporters?> supporters;
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return FutureBuilder<Supporters?>(
|
||||
future: supporters,
|
||||
builder: (context, snapshot) {
|
||||
final highlightedSupporters = snapshot.data?.github
|
||||
.where((e) =>
|
||||
e.type == DonationType.monthly &&
|
||||
e.price >= 5 &&
|
||||
e.comment != "")
|
||||
.toList() ??
|
||||
[];
|
||||
final tintaSupporters = snapshot.data?.github
|
||||
.where((e) =>
|
||||
e.type == DonationType.monthly &&
|
||||
e.price >= 5 &&
|
||||
e.comment == "")
|
||||
.toList() ??
|
||||
[];
|
||||
final kupakSupporters = snapshot.data?.github
|
||||
.where((e) => e.type == DonationType.monthly && e.price == 2)
|
||||
.toList() ??
|
||||
[];
|
||||
final onetimeSupporters = snapshot.data?.github
|
||||
.where((e) => e.type == DonationType.once && e.price >= 5)
|
||||
.toList() ??
|
||||
[];
|
||||
final patreonSupporters = snapshot.data?.patreon ?? [];
|
||||
|
||||
return Scaffold(
|
||||
body: CustomScrollView(
|
||||
slivers: [
|
||||
SliverAppBar.large(
|
||||
surfaceTintColor: Theme.of(context).scaffoldBackgroundColor,
|
||||
title: const Text(
|
||||
"Támogatók",
|
||||
style: TextStyle(fontWeight: FontWeight.w700),
|
||||
),
|
||||
),
|
||||
if (snapshot.hasData)
|
||||
SliverPadding(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 16.0)
|
||||
.add(const EdgeInsets.only(bottom: 24.0)),
|
||||
sliver: SliverToBoxAdapter(
|
||||
child: Text(
|
||||
snapshot.data!.description,
|
||||
style: TextStyle(
|
||||
fontWeight: FontWeight.w500,
|
||||
fontSize: 20.0,
|
||||
color: AppColors.of(context)
|
||||
.text
|
||||
.withValues(alpha: .7)),
|
||||
),
|
||||
),
|
||||
),
|
||||
if (!snapshot.hasData)
|
||||
const SliverPadding(
|
||||
padding: EdgeInsets.all(12.0),
|
||||
sliver: SliverToBoxAdapter(
|
||||
child: Center(child: CircularProgressIndicator()),
|
||||
),
|
||||
),
|
||||
if (highlightedSupporters.isNotEmpty)
|
||||
SliverPadding(
|
||||
padding: const EdgeInsets.all(12.0),
|
||||
sliver: SliverToBoxAdapter(
|
||||
child: SupporterGroupCard(
|
||||
title: const Text("Kiemelt támogatók"),
|
||||
expanded: true,
|
||||
supporters: highlightedSupporters,
|
||||
),
|
||||
),
|
||||
),
|
||||
if (tintaSupporters.isNotEmpty)
|
||||
SliverPadding(
|
||||
padding: const EdgeInsets.all(12.0),
|
||||
sliver: SliverToBoxAdapter(
|
||||
child: SupporterGroupCard(
|
||||
icon: const Icon(FilcIcons.tinta),
|
||||
title: Text(
|
||||
"Tinta",
|
||||
style: TextStyle(
|
||||
foreground: GradientStyles.tintaPaint,
|
||||
),
|
||||
),
|
||||
glow: Colors.purple,
|
||||
supporters: tintaSupporters,
|
||||
),
|
||||
),
|
||||
),
|
||||
if (kupakSupporters.isNotEmpty)
|
||||
SliverPadding(
|
||||
padding: const EdgeInsets.all(12.0),
|
||||
sliver: SliverToBoxAdapter(
|
||||
child: SupporterGroupCard(
|
||||
icon: const Icon(FilcIcons.kupak),
|
||||
title: Text(
|
||||
"Kupak",
|
||||
style:
|
||||
TextStyle(foreground: GradientStyles.kupakPaint),
|
||||
),
|
||||
glow: Colors.lightGreen,
|
||||
supporters: kupakSupporters,
|
||||
),
|
||||
),
|
||||
),
|
||||
if (onetimeSupporters.isNotEmpty)
|
||||
SliverPadding(
|
||||
padding: const EdgeInsets.all(12.0),
|
||||
sliver: SliverToBoxAdapter(
|
||||
child: SupporterGroupCard(
|
||||
title: const Text("Egyszeri támogatók"),
|
||||
supporters: onetimeSupporters,
|
||||
),
|
||||
),
|
||||
),
|
||||
if (patreonSupporters.isNotEmpty)
|
||||
SliverPadding(
|
||||
padding: const EdgeInsets.all(12.0),
|
||||
sliver: SliverToBoxAdapter(
|
||||
child: SupporterGroupCard(
|
||||
title: const Text("Régebbi támogatóink"),
|
||||
supporters: patreonSupporters,
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
);
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -51,10 +51,10 @@ class LoginScreenState extends State<LoginScreen> {
|
||||
super.initState();
|
||||
showBack = widget.back;
|
||||
|
||||
SystemChrome.setSystemUIOverlayStyle(const SystemUiOverlayStyle(
|
||||
SystemChrome.setSystemUIOverlayStyle(SystemUiOverlayStyle(
|
||||
statusBarColor: Colors.transparent,
|
||||
statusBarIconBrightness: Brightness.light,
|
||||
systemNavigationBarColor: Colors.white,
|
||||
statusBarIconBrightness: Brightness.dark,
|
||||
systemNavigationBarColor: AppColors.of(context).loginBackground,
|
||||
systemNavigationBarIconBrightness: Brightness.dark,
|
||||
));
|
||||
|
||||
@@ -90,12 +90,12 @@ class LoginScreenState extends State<LoginScreen> {
|
||||
|
||||
return Scaffold(
|
||||
body: Container(
|
||||
decoration: const BoxDecoration(color: Color(0xFFDAE4F7)),
|
||||
decoration: BoxDecoration(color: AppColors.of(context).loginBackground),
|
||||
child: SingleChildScrollView(
|
||||
physics: const ClampingScrollPhysics(),
|
||||
controller: _scrollController,
|
||||
child: Container(
|
||||
decoration: const BoxDecoration(color: Color(0xFFDAE4F7)),
|
||||
decoration: BoxDecoration(color: AppColors.of(context).loginBackground),
|
||||
width: MediaQuery.of(context).size.width,
|
||||
height: MediaQuery.of(context).size.height,
|
||||
child: SafeArea(
|
||||
@@ -111,10 +111,10 @@ class LoginScreenState extends State<LoginScreen> {
|
||||
width: 30.0,
|
||||
),
|
||||
const SizedBox(width: 8),
|
||||
const Text(
|
||||
'reFilc',
|
||||
Text(
|
||||
'Firka',
|
||||
style: TextStyle(
|
||||
color: Color(0xFF050B15),
|
||||
color: AppColors.of(context).loginPrimary,
|
||||
fontSize: 18.0,
|
||||
fontWeight: FontWeight.bold,
|
||||
fontFamily: 'Montserrat'),
|
||||
@@ -162,8 +162,8 @@ class LoginScreenState extends State<LoginScreen> {
|
||||
children: [
|
||||
Text(
|
||||
"welcome_title_$i".i18n,
|
||||
style: const TextStyle(
|
||||
color: Color(0xFF050B15),
|
||||
style: TextStyle(
|
||||
color: AppColors.of(context).loginPrimary,
|
||||
fontSize: 19,
|
||||
fontFamily: 'Montserrat',
|
||||
fontWeight: FontWeight.w700,
|
||||
@@ -176,8 +176,8 @@ class LoginScreenState extends State<LoginScreen> {
|
||||
right: 20),
|
||||
child: Text(
|
||||
"welcome_text_$i".i18n,
|
||||
style: const TextStyle(
|
||||
color: Color(0xFF050B15),
|
||||
style: TextStyle(
|
||||
color: AppColors.of(context).loginSecondary,
|
||||
fontFamily: 'FigTree',
|
||||
fontWeight:
|
||||
FontWeight.w500,
|
||||
@@ -204,9 +204,9 @@ class LoginScreenState extends State<LoginScreen> {
|
||||
Container(
|
||||
height: 280,
|
||||
width: double.infinity,
|
||||
decoration: const BoxDecoration(
|
||||
decoration: BoxDecoration(
|
||||
gradient: LinearGradient(
|
||||
colors: [Color(0x00DAE4F7), Color(0xFFDAE4F7)],
|
||||
colors: [AppColors.of(context).loginBackground.withAlpha(0), AppColors.of(context).loginBackground],
|
||||
stops: [0, 0.12],
|
||||
begin: Alignment.topCenter,
|
||||
end: Alignment.bottomCenter,
|
||||
@@ -247,8 +247,8 @@ class LoginScreenState extends State<LoginScreen> {
|
||||
MediaQuery.of(context)
|
||||
.viewInsets
|
||||
.bottom,
|
||||
decoration: const BoxDecoration(
|
||||
color: Color(0xFFDAE4F7),
|
||||
decoration: BoxDecoration(
|
||||
color: AppColors.of(context).loginBackground,
|
||||
borderRadius: BorderRadius.only(
|
||||
topRight:
|
||||
Radius.circular(24.0),
|
||||
@@ -268,9 +268,9 @@ class LoginScreenState extends State<LoginScreen> {
|
||||
vertical: 18),
|
||||
child: Container(
|
||||
decoration:
|
||||
const BoxDecoration(
|
||||
BoxDecoration(
|
||||
color:
|
||||
Color(0xFFB9C8E5),
|
||||
AppColors.of(context).loginPrimary,
|
||||
borderRadius:
|
||||
BorderRadius.only(
|
||||
topRight:
|
||||
@@ -333,9 +333,10 @@ class LoginScreenState extends State<LoginScreen> {
|
||||
},
|
||||
child: Text(
|
||||
"login_w_kreta_acc".i18n,
|
||||
style: const TextStyle(
|
||||
style: TextStyle(
|
||||
fontFamily: 'Montserrat',
|
||||
fontSize: 16,
|
||||
color: AppColors.of(context).loginPrimary,
|
||||
fontWeight: FontWeight.w700),
|
||||
)),
|
||||
),
|
||||
|
||||
@@ -1,170 +0,0 @@
|
||||
// ignore_for_file: use_build_context_synchronously
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:webview_flutter/webview_flutter.dart';
|
||||
|
||||
class QwIDLoginWidget extends StatefulWidget {
|
||||
const QwIDLoginWidget({super.key, required this.onLogin});
|
||||
|
||||
// final String selectedSchool;
|
||||
final void Function(String code) onLogin;
|
||||
|
||||
@override
|
||||
State<QwIDLoginWidget> createState() => _QwIDLoginWidgetState();
|
||||
}
|
||||
|
||||
class _QwIDLoginWidgetState extends State<QwIDLoginWidget>
|
||||
with TickerProviderStateMixin {
|
||||
late final WebViewController controller;
|
||||
late AnimationController _animationController;
|
||||
var loadingPercentage = 0;
|
||||
var currentUrl = '';
|
||||
bool _hasFadedIn = false;
|
||||
|
||||
@override
|
||||
void initState() {
|
||||
super.initState();
|
||||
|
||||
_animationController = AnimationController(
|
||||
vsync: this, // Use the TickerProviderStateMixin
|
||||
duration: const Duration(milliseconds: 350),
|
||||
);
|
||||
|
||||
controller = WebViewController()
|
||||
..setJavaScriptMode(JavaScriptMode.unrestricted)
|
||||
..setNavigationDelegate(NavigationDelegate(
|
||||
onNavigationRequest: (n) async {
|
||||
if (n.url.startsWith('refilc://oauth2-callback/qwid')) {
|
||||
setState(() {
|
||||
loadingPercentage = 0;
|
||||
currentUrl = n.url;
|
||||
});
|
||||
|
||||
// final String instituteCode = widget.selectedSchool;
|
||||
// if (!n.url.startsWith(
|
||||
// 'https://mobil.e-kreta.hu/ellenorzo-student/prod/oauthredirect?code=')) {
|
||||
// return;
|
||||
// }
|
||||
|
||||
String longLivedToken = n.url
|
||||
.replaceAll('refilc://oauth2-callback/qwid?access_token=', '');
|
||||
|
||||
widget.onLogin(longLivedToken);
|
||||
// Future.delayed(const Duration(milliseconds: 500), () {
|
||||
// Navigator.of(context).pop();
|
||||
// });
|
||||
// Navigator.of(context).pop();
|
||||
|
||||
return NavigationDecision.prevent;
|
||||
} else {
|
||||
return NavigationDecision.navigate;
|
||||
}
|
||||
},
|
||||
onPageStarted: (url) async {
|
||||
// setState(() {
|
||||
// loadingPercentage = 0;
|
||||
// currentUrl = url;
|
||||
// });
|
||||
|
||||
// // final String instituteCode = widget.selectedSchool;
|
||||
// if (!url.startsWith(
|
||||
// 'https://mobil.e-kreta.hu/ellenorzo-student/prod/oauthredirect?code=')) {
|
||||
// return;
|
||||
// }
|
||||
|
||||
// List<String> requiredThings = url
|
||||
// .replaceAll(
|
||||
// 'https://mobil.e-kreta.hu/ellenorzo-student/prod/oauthredirect?code=',
|
||||
// '')
|
||||
// .replaceAll(
|
||||
// '&scope=openid%20email%20offline_access%20kreta-ellenorzo-webapi.public%20kreta-eugyintezes-webapi.public%20kreta-fileservice-webapi.public%20kreta-mobile-global-webapi.public%20kreta-dkt-webapi.public%20kreta-ier-webapi.public&state=refilc_student_mobile&session_state=',
|
||||
// ':')
|
||||
// .split(':');
|
||||
|
||||
// String code = requiredThings[0];
|
||||
// // String sessionState = requiredThings[1];
|
||||
|
||||
// widget.onLogin(code);
|
||||
// // Future.delayed(const Duration(milliseconds: 500), () {
|
||||
// // Navigator.of(context).pop();
|
||||
// // });
|
||||
// // Navigator.of(context).pop();
|
||||
},
|
||||
onProgress: (progress) {
|
||||
setState(() {
|
||||
loadingPercentage = progress;
|
||||
});
|
||||
},
|
||||
onPageFinished: (url) {
|
||||
setState(() {
|
||||
loadingPercentage = 100;
|
||||
});
|
||||
},
|
||||
))
|
||||
..loadRequest(
|
||||
Uri.parse(
|
||||
'https://qwid.qwit.dev/oauth2/authorize?client_id=99aa103a-0bd7-43e0-8421-3bb0b2f6adb1&scope=*&redirect_uri=https://api.refilc.hu/v4/oauth2/callback/app/qwid&response_type=code'), // &institute_code=${widget.selectedSchool}
|
||||
);
|
||||
}
|
||||
|
||||
// Future<void> loadLoginUrl() async {
|
||||
// String nonceStr = await Provider.of<KretaClient>(context, listen: false)
|
||||
// .getAPI(KretaAPI.nonce, json: false);
|
||||
|
||||
// Nonce nonce = getNonce(nonceStr, );
|
||||
// }
|
||||
|
||||
@override
|
||||
void dispose() {
|
||||
// Step 3: Dispose of the animation controller
|
||||
_animationController.dispose();
|
||||
super.dispose();
|
||||
}
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
// Trigger the fade-in animation only once when loading reaches 100%
|
||||
if (loadingPercentage == 100 && !_hasFadedIn) {
|
||||
_animationController.forward(); // Play the animation
|
||||
_hasFadedIn =
|
||||
true; // Set the flag to true, so the animation is not replayed
|
||||
}
|
||||
|
||||
return Stack(
|
||||
children: [
|
||||
// Webview that will be displayed only when the loading is 100%
|
||||
if (loadingPercentage == 100)
|
||||
FadeTransition(
|
||||
opacity: Tween<double>(begin: 0, end: 1).animate(
|
||||
CurvedAnimation(
|
||||
parent: _animationController,
|
||||
curve: Curves.easeIn,
|
||||
),
|
||||
),
|
||||
child: WebViewWidget(
|
||||
controller: controller,
|
||||
),
|
||||
),
|
||||
|
||||
// Show the CircularProgressIndicator while loading is not 100%
|
||||
if (loadingPercentage < 100)
|
||||
Center(
|
||||
child: TweenAnimationBuilder(
|
||||
tween: Tween<double>(begin: 0, end: loadingPercentage / 100.0),
|
||||
duration: const Duration(milliseconds: 300),
|
||||
builder: (context, double value, child) {
|
||||
return Column(
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: [
|
||||
CircularProgressIndicator(
|
||||
value: value, // Smoothly animates the progress
|
||||
),
|
||||
],
|
||||
);
|
||||
},
|
||||
),
|
||||
),
|
||||
],
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -1,86 +0,0 @@
|
||||
import 'package:refilc/helpers/subject.dart';
|
||||
import 'package:refilc/theme/colors/colors.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class SubjectIconGallery extends StatelessWidget {
|
||||
const SubjectIconGallery({super.key});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Scaffold(
|
||||
appBar: AppBar(
|
||||
surfaceTintColor: Theme.of(context).scaffoldBackgroundColor,
|
||||
leading: BackButton(color: AppColors.of(context).text),
|
||||
title: Text(
|
||||
"Subject Icon Gallery",
|
||||
style: TextStyle(color: AppColors.of(context).text),
|
||||
),
|
||||
),
|
||||
body: ListView(
|
||||
children: const [
|
||||
SubjectIconItem("Matematika"),
|
||||
SubjectIconItem("Magyar Nyelv"),
|
||||
SubjectIconItem("Nyelvtan"),
|
||||
SubjectIconItem("Irodalom"),
|
||||
SubjectIconItem("Történelem"),
|
||||
SubjectIconItem("Földrajz"),
|
||||
SubjectIconItem("Rajz"),
|
||||
SubjectIconItem("Vizuális kultúra"),
|
||||
SubjectIconItem("Fizika"),
|
||||
SubjectIconItem("Ének"),
|
||||
SubjectIconItem("Testnevelés"),
|
||||
SubjectIconItem("Edzéselmélet"),
|
||||
SubjectIconItem("Kémia"),
|
||||
SubjectIconItem("Biológia"),
|
||||
SubjectIconItem("Természetismeret"),
|
||||
SubjectIconItem("Erkölcstan"),
|
||||
SubjectIconItem("Pénzügy"),
|
||||
SubjectIconItem("Informatika"),
|
||||
SubjectIconItem("Digitális kultúra"),
|
||||
SubjectIconItem("Programozás"),
|
||||
SubjectIconItem("Hálózat"),
|
||||
SubjectIconItem("Színház technika"),
|
||||
SubjectIconItem("Média"),
|
||||
SubjectIconItem("Elektronika"),
|
||||
SubjectIconItem("Gépészet"),
|
||||
SubjectIconItem("Technika"),
|
||||
SubjectIconItem("Tánc"),
|
||||
SubjectIconItem("Filozófia"),
|
||||
SubjectIconItem("Osztályfőnöki"),
|
||||
SubjectIconItem("Közösségi nevelés"),
|
||||
SubjectIconItem("Gazdaság"),
|
||||
SubjectIconItem("Szorgalom"),
|
||||
SubjectIconItem("Magatartás"),
|
||||
SubjectIconItem("Angol nyelv"),
|
||||
SubjectIconItem("Linux"),
|
||||
SubjectIconItem("Adatbázis"),
|
||||
SubjectIconItem("Asztali alkalmazások"),
|
||||
SubjectIconItem("Projekt"),
|
||||
],
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
class SubjectIconItem extends StatelessWidget {
|
||||
const SubjectIconItem(this.name, {super.key});
|
||||
|
||||
final String name;
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return ListTile(
|
||||
leading: Icon(
|
||||
SubjectIcon.resolveVariant(subjectName: name, context: context),
|
||||
color: AppColors.of(context).text,
|
||||
),
|
||||
title: Text(
|
||||
name,
|
||||
style: TextStyle(
|
||||
color: AppColors.of(context).text,
|
||||
fontWeight: FontWeight.w500,
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -62,7 +62,6 @@ import 'package:provider/provider.dart';
|
||||
import 'package:shake_flutter/enums/shake_screen.dart';
|
||||
import 'package:shake_flutter/shake_flutter.dart';
|
||||
import 'package:url_launcher/url_launcher.dart';
|
||||
import 'debug/subject_icon_gallery.dart';
|
||||
import 'settings_screen.i18n.dart';
|
||||
import 'package:flutter/services.dart';
|
||||
import 'package:refilc_mobile_ui/screens/settings/user/nickname.dart';
|
||||
@@ -779,33 +778,6 @@ class SettingsScreenState extends State<SettingsScreen>
|
||||
),
|
||||
),
|
||||
|
||||
// // icon gallery (debug mode)
|
||||
if (kDebugMode)
|
||||
Padding(
|
||||
padding: const EdgeInsets.only(
|
||||
bottom: 16.0, left: 24.0, right: 24.0),
|
||||
child: Panel(
|
||||
title: const Text("Debug"),
|
||||
child: Column(
|
||||
children: [
|
||||
PanelButton(
|
||||
title: const Text("Subject Icon Gallery"),
|
||||
leading:
|
||||
const Icon(CupertinoIcons.rectangle_3_offgrid_fill),
|
||||
trailing: const Icon(Icons.arrow_forward),
|
||||
onPressed: () {
|
||||
Navigator.of(context, rootNavigator: true).push(
|
||||
CupertinoPageRoute(
|
||||
builder: (context) =>
|
||||
const SubjectIconGallery()),
|
||||
);
|
||||
},
|
||||
)
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
// other secion
|
||||
SplittedPanel(
|
||||
title: Text("other".i18n),
|
||||
|
||||
@@ -127,10 +127,6 @@ extension SettingsLocalization on String {
|
||||
"feedback": "Feedback",
|
||||
"other": "Other",
|
||||
"stickermap": "Sticker Map",
|
||||
"qr_scanner": "QR Scanner",
|
||||
"camera_perm_error":
|
||||
"Camera permission is required to scan QR codes.",
|
||||
"invalid_qr_code": "Invalid QR code!",
|
||||
"success": "Success!",
|
||||
"versiontext": "v%s, modified by the Firka team",
|
||||
"packagetext": "reFilc, modified by the Firka team",
|
||||
@@ -259,10 +255,6 @@ extension SettingsLocalization on String {
|
||||
"feedback": "Visszajelzés",
|
||||
"other": "Egyéb",
|
||||
"stickermap": "Matrica térkép",
|
||||
"qr_scanner": "QR Kódolvasó",
|
||||
"camera_perm_error":
|
||||
"A kamera engedély szükséges a QR kódok beolvasásához.",
|
||||
"invalid_qr_code": "Érvénytelen QR kód!",
|
||||
"success": "Siker!",
|
||||
"versiontext": "v%s, módosítva a Firka csapat által",
|
||||
"packagetext": "reFilc, módosítva a Firka csapat által",
|
||||
@@ -391,10 +383,6 @@ extension SettingsLocalization on String {
|
||||
"feedback": "Feedback",
|
||||
"other": "Sonstiges",
|
||||
"stickermap": "Sticker Map",
|
||||
"qr_scanner": "QR-Scanner",
|
||||
"camera_perm_error":
|
||||
"Kameraberechtigung ist erforderlich, um QR-Codes zu scannen.",
|
||||
"invalid_qr_code": "Ungültiger QR-Code!",
|
||||
"success": "Erfolg!",
|
||||
"versiontext": "v%s, geändert vom Firka",
|
||||
"packagetext": "reFilc, geändert vom Firka",
|
||||
|
||||
@@ -1,256 +0,0 @@
|
||||
// import 'package:refilc/models/settings.dart';
|
||||
import 'dart:convert';
|
||||
|
||||
import 'package:refilc/api/client.dart';
|
||||
import 'package:refilc/api/providers/user_provider.dart';
|
||||
import 'package:refilc/models/settings.dart';
|
||||
import 'package:refilc/theme/colors/colors.dart';
|
||||
import 'package:refilc_mobile_ui/common/panel/panel_button.dart';
|
||||
import 'package:refilc_mobile_ui/common/splitted_panel/splitted_panel.dart';
|
||||
import 'package:refilc_mobile_ui/screens/login/qwid_login.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_feather_icons/flutter_feather_icons.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
import 'package:refilc/models/cloud_sync_data.dart';
|
||||
// import 'package:provider/provider.dart';
|
||||
import 'submenu_screen.i18n.dart';
|
||||
|
||||
class MenuCloudSyncSettings extends StatelessWidget {
|
||||
const MenuCloudSyncSettings({
|
||||
super.key,
|
||||
this.borderRadius = const BorderRadius.vertical(
|
||||
top: Radius.circular(4.0), bottom: Radius.circular(4.0)),
|
||||
});
|
||||
|
||||
final BorderRadius borderRadius;
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return PanelButton(
|
||||
// onPressed: () => Navigator.of(context, rootNavigator: true).push(
|
||||
// CupertinoPageRoute(
|
||||
// builder: (context) => const CloudSyncSettingsScreen()),
|
||||
// ),
|
||||
title: Text(
|
||||
"cloud_sync".i18n,
|
||||
style:
|
||||
TextStyle(color: AppColors.of(context).text.withValues(alpha: 0.3)),
|
||||
),
|
||||
leading: Icon(
|
||||
FeatherIcons.uploadCloud,
|
||||
size: 22.0,
|
||||
color: AppColors.of(context).text.withValues(alpha: 0.25),
|
||||
),
|
||||
borderRadius: borderRadius,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
class CloudSyncSettingsScreen extends StatefulWidget {
|
||||
const CloudSyncSettingsScreen({super.key});
|
||||
|
||||
@override
|
||||
CloudSyncSettingsScreenState createState() => CloudSyncSettingsScreenState();
|
||||
}
|
||||
|
||||
class CloudSyncSettingsScreenState extends State<CloudSyncSettingsScreen> {
|
||||
late SettingsProvider settingsProvider;
|
||||
late UserProvider user;
|
||||
|
||||
String longLivedToken = '';
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
SettingsProvider settingsProvider = Provider.of<SettingsProvider>(context);
|
||||
// UserProvider user = Provider.of<UserProvider>(context);
|
||||
|
||||
return Scaffold(
|
||||
appBar: AppBar(
|
||||
surfaceTintColor: Theme.of(context).scaffoldBackgroundColor,
|
||||
leading: BackButton(color: AppColors.of(context).text),
|
||||
title: Text(
|
||||
"cloud_sync".i18n,
|
||||
style: TextStyle(color: AppColors.of(context).text),
|
||||
),
|
||||
),
|
||||
body: SingleChildScrollView(
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.symmetric(vertical: 16.0, horizontal: 24.0),
|
||||
child: Column(
|
||||
children: [
|
||||
SplittedPanel(
|
||||
padding: const EdgeInsets.only(top: 8.0),
|
||||
cardPadding: const EdgeInsets.all(4.0),
|
||||
isSeparated: true,
|
||||
children: [
|
||||
PanelButton(
|
||||
padding: const EdgeInsets.only(left: 14.0, right: 6.0),
|
||||
onPressed: () async {
|
||||
showModalBottomSheet(
|
||||
backgroundColor: Colors.transparent,
|
||||
context: context,
|
||||
isScrollControlled:
|
||||
true, // This ensures the modal accommodates input fields properly
|
||||
builder: (BuildContext context) {
|
||||
return Container(
|
||||
height: MediaQuery.of(context).size.height * 0.9 +
|
||||
MediaQuery.of(context).viewInsets.bottom,
|
||||
decoration: const BoxDecoration(
|
||||
color: Color(0xFFDAE4F7),
|
||||
borderRadius: BorderRadius.only(
|
||||
topRight: Radius.circular(24.0),
|
||||
topLeft: Radius.circular(24.0),
|
||||
),
|
||||
),
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.center,
|
||||
mainAxisAlignment: MainAxisAlignment.start,
|
||||
children: [
|
||||
Padding(
|
||||
padding:
|
||||
const EdgeInsets.symmetric(vertical: 18),
|
||||
child: Container(
|
||||
decoration: const BoxDecoration(
|
||||
color: Color(0xFFB9C8E5),
|
||||
borderRadius: BorderRadius.only(
|
||||
topRight: Radius.circular(2.0),
|
||||
topLeft: Radius.circular(2.0),
|
||||
),
|
||||
),
|
||||
width: 40,
|
||||
height: 4,
|
||||
),
|
||||
),
|
||||
Expanded(
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.only(
|
||||
right: 14, left: 14, bottom: 24),
|
||||
child: ClipRRect(
|
||||
borderRadius: BorderRadius.circular(16),
|
||||
child: Container(
|
||||
decoration: BoxDecoration(
|
||||
borderRadius:
|
||||
BorderRadius.circular(16),
|
||||
),
|
||||
child: QwIDLoginWidget(
|
||||
onLogin: (String token) {
|
||||
setState(() {
|
||||
longLivedToken = token;
|
||||
});
|
||||
Navigator.of(context).pop();
|
||||
},
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
)
|
||||
],
|
||||
),
|
||||
);
|
||||
},
|
||||
).then((value) {
|
||||
// After closing the modal bottom sheet, check if the code is set
|
||||
if (longLivedToken.isNotEmpty) {
|
||||
// Call your API after retrieving the code
|
||||
settingsProvider.update(
|
||||
cloudSyncToken: longLivedToken,
|
||||
store: true,
|
||||
);
|
||||
ScaffoldMessenger.of(context).showSnackBar(
|
||||
SnackBar(content: Text('login_successful'.i18n)));
|
||||
}
|
||||
});
|
||||
},
|
||||
trailingDivider: true,
|
||||
title: Text(
|
||||
"qwit_sign_in".i18n,
|
||||
style: TextStyle(
|
||||
color: AppColors.of(context).text.withValues(
|
||||
alpha:
|
||||
settingsProvider.gradeOpeningFun ? .95 : .25),
|
||||
),
|
||||
),
|
||||
borderRadius: const BorderRadius.vertical(
|
||||
top: Radius.circular(12.0),
|
||||
bottom: Radius.circular(12.0),
|
||||
),
|
||||
),
|
||||
SwitchListTile(
|
||||
value: settingsProvider.cloudSyncEnabled,
|
||||
onChanged: (value) {
|
||||
settingsProvider.update(
|
||||
cloudSyncEnabled: value,
|
||||
store: true,
|
||||
);
|
||||
},
|
||||
title: Text("cloud_sync_enabled".i18n),
|
||||
),
|
||||
PanelButton(
|
||||
padding: const EdgeInsets.only(left: 14.0, right: 6.0),
|
||||
onPressed: () async {
|
||||
if (settingsProvider.cloudSyncToken.isEmpty) {
|
||||
ScaffoldMessenger.of(context).showSnackBar(
|
||||
SnackBar(
|
||||
content: Text('sign_in_first'.i18n),
|
||||
),
|
||||
);
|
||||
return;
|
||||
} else {
|
||||
FilcAPI.cloudSync(
|
||||
{
|
||||
"settings": jsonEncode(settingsProvider.toMap()),
|
||||
// "device_ids": [
|
||||
// settingsProvider.xFilcId,
|
||||
// ],
|
||||
// "refilc_plus_id": settingsProvider.plusSessionId,
|
||||
},
|
||||
settingsProvider.cloudSyncToken,
|
||||
).then((response) {
|
||||
if (response == null) {
|
||||
ScaffoldMessenger.of(context).showSnackBar(
|
||||
SnackBar(
|
||||
content: Text('sync_failed'.i18n),
|
||||
),
|
||||
);
|
||||
return;
|
||||
}
|
||||
|
||||
CloudSyncData cloudSyncData = CloudSyncData.fromJson(
|
||||
response['data']['cloud_sync_data']);
|
||||
|
||||
settingsProvider.updateFromMap(
|
||||
map: cloudSyncData.settings,
|
||||
store: true,
|
||||
);
|
||||
|
||||
ScaffoldMessenger.of(context).showSnackBar(
|
||||
SnackBar(
|
||||
content: Text('sync_successful'.i18n),
|
||||
),
|
||||
);
|
||||
});
|
||||
}
|
||||
},
|
||||
trailingDivider: true,
|
||||
title: Text(
|
||||
"sync_now".i18n,
|
||||
style: TextStyle(
|
||||
color: AppColors.of(context).text.withValues(
|
||||
alpha:
|
||||
settingsProvider.gradeOpeningFun ? .95 : .25),
|
||||
),
|
||||
),
|
||||
borderRadius: const BorderRadius.vertical(
|
||||
top: Radius.circular(12.0),
|
||||
bottom: Radius.circular(12.0),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -1,172 +0,0 @@
|
||||
import 'dart:io';
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_feather_icons/flutter_feather_icons.dart';
|
||||
import 'package:qr_code_scanner_plus/qr_code_scanner_plus.dart';
|
||||
import 'package:refilc/theme/colors/colors.dart';
|
||||
import 'package:refilc_mobile_ui/common/custom_snack_bar.dart';
|
||||
import 'package:refilc_mobile_ui/screens/settings/settings_screen.i18n.dart';
|
||||
import 'package:url_launcher/url_launcher.dart';
|
||||
|
||||
class CodeScannerScreen extends StatefulWidget {
|
||||
const CodeScannerScreen({super.key});
|
||||
|
||||
@override
|
||||
State<StatefulWidget> createState() => _CodeScannerScreenState();
|
||||
}
|
||||
|
||||
class _CodeScannerScreenState extends State<CodeScannerScreen> {
|
||||
Barcode? result;
|
||||
QRViewController? controller;
|
||||
final GlobalKey qrKey = GlobalKey(debugLabel: 'QR');
|
||||
|
||||
@override
|
||||
void reassemble() {
|
||||
super.reassemble();
|
||||
if (Platform.isAndroid) {
|
||||
controller!.pauseCamera();
|
||||
}
|
||||
controller!.resumeCamera();
|
||||
}
|
||||
|
||||
// @override
|
||||
// void initState() {
|
||||
// super.initState();
|
||||
|
||||
// controller!.resumeCamera();
|
||||
// }
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Scaffold(
|
||||
appBar: AppBar(
|
||||
backgroundColor: Colors.transparent,
|
||||
title: Text('qr_scanner'.i18n),
|
||||
leading: const BackButton(),
|
||||
actions: [
|
||||
IconButton(
|
||||
icon: FutureBuilder(
|
||||
future: controller?.getFlashStatus(),
|
||||
builder: (context, snapshot) {
|
||||
return Icon(
|
||||
snapshot.data == true
|
||||
? FeatherIcons.zapOff
|
||||
: FeatherIcons.zap,
|
||||
);
|
||||
},
|
||||
),
|
||||
onPressed: () async {
|
||||
await controller?.toggleFlash();
|
||||
setState(() {});
|
||||
},
|
||||
),
|
||||
],
|
||||
),
|
||||
body: _buildQrView(context),
|
||||
);
|
||||
}
|
||||
|
||||
Widget _buildQrView(BuildContext context) {
|
||||
var scanArea = (MediaQuery.of(context).size.width < 400 ||
|
||||
MediaQuery.of(context).size.height < 400)
|
||||
? 250.0
|
||||
: 280.0;
|
||||
|
||||
return QRView(
|
||||
key: qrKey,
|
||||
onQRViewCreated: _onQRViewCreated,
|
||||
overlay: QrScannerOverlayShape(
|
||||
borderColor: Theme.of(context).primaryColor,
|
||||
borderRadius: 10,
|
||||
borderLength: 30,
|
||||
borderWidth: 10,
|
||||
cutOutSize: scanArea,
|
||||
),
|
||||
onPermissionSet: (ctrl, p) => _onPermissionSet(context, ctrl, p),
|
||||
);
|
||||
}
|
||||
|
||||
void _onQRViewCreated(QRViewController controller) {
|
||||
setState(() {
|
||||
this.controller = controller;
|
||||
});
|
||||
controller.scannedDataStream.listen((scanData) {
|
||||
// controller.pauseCamera();
|
||||
if (result?.code == scanData.code) return;
|
||||
|
||||
setState(() {
|
||||
result = scanData;
|
||||
});
|
||||
|
||||
if (scanData.code != null) {
|
||||
if (scanData.code!.startsWith('qw://')) {
|
||||
// String data = scanData.code!.replaceFirst('qw://', '');
|
||||
// check the qr id from api
|
||||
// TODO: this qr shit
|
||||
} else if (scanData.code!.startsWith('https://') ||
|
||||
scanData.code!.startsWith('http://')) {
|
||||
Uri uri =
|
||||
Uri.parse(scanData.code!.replaceFirst('http://', 'https://'));
|
||||
|
||||
// print(uri);
|
||||
|
||||
if (uri.host.contains('refilc.hu') ||
|
||||
uri.host.contains('refilcapp.hu') ||
|
||||
uri.host.contains('filc.one')) {
|
||||
ScaffoldMessenger.of(context).showSnackBar(CustomSnackBar(
|
||||
content: Text("success".i18n,
|
||||
style: const TextStyle(color: Colors.white)),
|
||||
backgroundColor: const Color(0xFF00A900),
|
||||
context: context,
|
||||
));
|
||||
|
||||
// launch refilc url
|
||||
Future.delayed(const Duration(seconds: 1), () {
|
||||
Navigator.of(context).pop();
|
||||
launchUrl(uri, mode: LaunchMode.inAppBrowserView);
|
||||
});
|
||||
} else {
|
||||
// show invalid code error
|
||||
// Navigator.of(context).pop();
|
||||
ScaffoldMessenger.of(context).showSnackBar(CustomSnackBar(
|
||||
content: Text("invalid_qr_code".i18n,
|
||||
style: const TextStyle(color: Colors.white)),
|
||||
backgroundColor: AppColors.of(context).red,
|
||||
context: context,
|
||||
));
|
||||
|
||||
controller.resumeCamera();
|
||||
}
|
||||
} else {
|
||||
// show invalid code error
|
||||
// Navigator.of(context).pop();
|
||||
ScaffoldMessenger.of(context).showSnackBar(CustomSnackBar(
|
||||
content: Text("invalid_qr_code".i18n,
|
||||
style: const TextStyle(color: Colors.white)),
|
||||
backgroundColor: AppColors.of(context).red,
|
||||
context: context,
|
||||
));
|
||||
|
||||
controller.resumeCamera();
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
void _onPermissionSet(BuildContext context, QRViewController ctrl, bool p) {
|
||||
if (!p) {
|
||||
ScaffoldMessenger.of(context).showSnackBar(CustomSnackBar(
|
||||
content: Text("camera_perm_error".i18n,
|
||||
style: const TextStyle(color: Colors.white)),
|
||||
backgroundColor: AppColors.of(context).red,
|
||||
context: context,
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
@override
|
||||
void dispose() {
|
||||
controller?.dispose();
|
||||
super.dispose();
|
||||
}
|
||||
}
|
||||
@@ -89,6 +89,8 @@ class ExtrasSettingsScreenState extends State<ExtrasSettingsScreen> {
|
||||
),
|
||||
),
|
||||
body: SingleChildScrollView(
|
||||
physics: const BouncingScrollPhysics(
|
||||
parent: AlwaysScrollableScrollPhysics()),
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.symmetric(vertical: 16.0, horizontal: 24.0),
|
||||
child: Column(
|
||||
|
||||
@@ -76,6 +76,8 @@ class GeneralSettingsScreenState extends State<GeneralSettingsScreen> {
|
||||
),
|
||||
),
|
||||
body: SingleChildScrollView(
|
||||
physics: const BouncingScrollPhysics(
|
||||
parent: AlwaysScrollableScrollPhysics()),
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.symmetric(vertical: 16.0, horizontal: 24.0),
|
||||
child: Column(
|
||||
|
||||
@@ -420,6 +420,8 @@ Widget build(BuildContext context) {
|
||||
),
|
||||
),
|
||||
body: SingleChildScrollView(
|
||||
physics: const BouncingScrollPhysics(
|
||||
parent: AlwaysScrollableScrollPhysics()),
|
||||
controller: _scrollController,
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.symmetric(vertical: 16.0, horizontal: 24.0),
|
||||
|
||||
@@ -303,6 +303,8 @@ class PersonalizeSettingsScreenState extends State<PersonalizeSettingsScreen>
|
||||
),
|
||||
),
|
||||
body: SingleChildScrollView(
|
||||
physics: const BouncingScrollPhysics(
|
||||
parent: AlwaysScrollableScrollPhysics()),
|
||||
child: Padding(
|
||||
padding:
|
||||
const EdgeInsets.symmetric(vertical: 16.0, horizontal: 24.0),
|
||||
|
||||
@@ -46,6 +46,7 @@ class ShareThemeDialog extends StatefulWidget {
|
||||
class ShareThemeDialogState extends State<ShareThemeDialog> {
|
||||
final _title = TextEditingController();
|
||||
bool isPublic = false;
|
||||
bool shareNick = false;
|
||||
|
||||
late ShareProvider shareProvider;
|
||||
|
||||
@@ -111,6 +112,19 @@ class ShareThemeDialogState extends State<ShareThemeDialog> {
|
||||
title: Text("is_public".i18n),
|
||||
contentPadding: const EdgeInsets.only(left: 15.0, right: 10.0),
|
||||
),
|
||||
SwitchListTile(
|
||||
shape: RoundedRectangleBorder(
|
||||
borderRadius: BorderRadius.circular(16.0),
|
||||
),
|
||||
value: shareNick,
|
||||
onChanged: (value) {
|
||||
setState(() {
|
||||
shareNick = value;
|
||||
});
|
||||
},
|
||||
title: Text("shareNickname".i18n),
|
||||
contentPadding: const EdgeInsets.only(left: 15.0, right: 10.0),
|
||||
),
|
||||
],
|
||||
),
|
||||
],
|
||||
@@ -160,6 +174,7 @@ class ShareThemeDialogState extends State<ShareThemeDialog> {
|
||||
gradeColors: gradeColors!,
|
||||
isPublic: isPublic,
|
||||
displayName: _title.text,
|
||||
shareNick: !shareNick
|
||||
);
|
||||
|
||||
if (themeStatus == 429) {
|
||||
|
||||
@@ -33,10 +33,10 @@ extension SettingsLocalization on String {
|
||||
"theme_share_failed": "An error occurred while sharing the theme.",
|
||||
"theme_share_ratelimit": "You can only share 1 theme per minute.",
|
||||
// cloud sync
|
||||
"cloud_sync": "Cloud Sync",
|
||||
"secret": "Secret Settings",
|
||||
"goodstudent": "Good student mode",
|
||||
"presentation": "Presentation Mode",
|
||||
"shareNickname": "Anonymous Share",
|
||||
"goodstudent_disclaimer":
|
||||
"reFilc can not be held liable for the usage of this feature.\n\n(if your mother beats you up because you showed her fake grades, you can only blame yourself for it)",
|
||||
},
|
||||
@@ -69,11 +69,10 @@ extension SettingsLocalization on String {
|
||||
"understand": "Értem",
|
||||
"theme_share_failed": "Hiba történt a téma megosztása közben.",
|
||||
"theme_share_ratelimit": "Csak 1 témát oszthatsz meg percenként.",
|
||||
// cloud sync
|
||||
"cloud_sync": "Felhő szinkronizálás",
|
||||
"secret": "Titkos Beállítások",
|
||||
"goodstudent": "Jó tanuló mód",
|
||||
"presentation": "Bemutató mód",
|
||||
"shareNickname": "Anoním megosztás",
|
||||
"goodstudent_disclaimer":
|
||||
"A reFilc minden felelősséget elhárít a funkció használatával kapcsolatban.\n\n(Értsd: ha az anyád megver, mert megtévesztő ábrákat mutattál neki, azért csakis magadat hibáztathatod.)",
|
||||
},
|
||||
@@ -107,11 +106,10 @@ extension SettingsLocalization on String {
|
||||
"theme_share_failed":
|
||||
"Beim Teilen des Themas ist ein Fehler aufgetreten.",
|
||||
"theme_share_ratelimit": "Sie können nur 1 Thema pro Minute teilen.",
|
||||
// cloud sync
|
||||
"cloud_sync": "Cloud-Synchronisierung",
|
||||
"secret": "Geheime Einstellungen",
|
||||
"presentation": "Präsentationsmodus",
|
||||
"goodstudent": "Guter Student Modus",
|
||||
"shareNickname": "Anonymes Teilen",
|
||||
"goodstudent_disclaimer":
|
||||
"reFilc kann nicht für die Nutzung dieser Funktion haftbar gemacht werden.\n\n(Wenn deine Mutter dich verprügelt, weil du ihr falsche Noten gezeigt hast, kannst du dir nur die Schuld dafür geben)",
|
||||
},
|
||||
|
||||
@@ -33,8 +33,6 @@ dependencies:
|
||||
confetti: ^0.8.0
|
||||
# live_activities: ^1.9.1+1
|
||||
animated_flip_counter: ^0.3.4
|
||||
lottie: ^3.3.1
|
||||
rive: ^0.12.4
|
||||
animated_background: ^2.0.0
|
||||
home_widget: ^0.7.0+1
|
||||
dropdown_button2: ^2.3.9
|
||||
@@ -68,7 +66,6 @@ dependencies:
|
||||
webview_flutter: ^4.10.0
|
||||
file_picker: ^8.3.7
|
||||
shake_flutter: ^17.1.0
|
||||
qr_code_scanner_plus: ^2.0.10+1
|
||||
wakelock_plus: ^1.2.10
|
||||
|
||||
dependency_overrides:
|
||||
|
||||
@@ -47,10 +47,6 @@ class AppIconHelper {
|
||||
// isNewIcon: iconName != 'refilc_default' ? true : false,
|
||||
// iconName: iconName != 'refilc_default' ? iconName : '',
|
||||
// iconNames: [
|
||||
// 'refilc_default',
|
||||
// 'refilc_overcomplicated',
|
||||
// 'refilc_concept',
|
||||
// 'refilc_pride',
|
||||
// ],
|
||||
// );
|
||||
// } else {
|
||||
|
||||
@@ -171,14 +171,7 @@ class _GoalStateScreenState extends State<GoalStateScreen> {
|
||||
padding: EdgeInsets.zero,
|
||||
children: [
|
||||
Container(
|
||||
decoration: const BoxDecoration(
|
||||
// image: DecorationImage(
|
||||
// image:
|
||||
// AssetImage('assets/images/subject_covers/math_light.png'),
|
||||
// fit: BoxFit.fitWidth,
|
||||
// alignment: Alignment.topCenter,
|
||||
// ),
|
||||
),
|
||||
decoration: const BoxDecoration(),
|
||||
child: Container(
|
||||
decoration: BoxDecoration(
|
||||
gradient: LinearGradient(
|
||||
|
||||
@@ -58,10 +58,6 @@ class _ActivationDashboardState extends State<ActivationDashboard> {
|
||||
"assets/icons/ic_rounded.png",
|
||||
height: 64.0,
|
||||
),
|
||||
// child: SvgPicture.asset(
|
||||
// "assets/images/github.svg",
|
||||
// height: 64.0,
|
||||
// ),
|
||||
),
|
||||
const SizedBox(height: 32.0),
|
||||
const Text(
|
||||
|
||||
@@ -1,9 +1,7 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
import 'package:refilc_mobile_ui/plus/plus_screen.dart';
|
||||
import 'package:refilc_plus/models/premium_scopes.dart';
|
||||
import 'package:refilc_plus/providers/plus_provider.dart';
|
||||
import 'plus_things.i18n.dart';
|
||||
import 'package:refilc_mobile_ui/screens/settings/settings_helper.dart';
|
||||
|
||||
class PlusSettingsInline extends StatelessWidget {
|
||||
@@ -25,66 +23,14 @@ class PlusSettingsInline extends StatelessWidget {
|
||||
if (plusTier == 'none') {
|
||||
Navigator.of(context, rootNavigator: true)
|
||||
.push(MaterialPageRoute(builder: (context) {
|
||||
return const PlusScreen();
|
||||
// return empty container
|
||||
return Container();
|
||||
}));
|
||||
} else {
|
||||
SettingsHelper.plusOptions(context);
|
||||
}
|
||||
},
|
||||
child: Container(
|
||||
width: double.infinity,
|
||||
decoration: BoxDecoration(
|
||||
image: DecorationImage(
|
||||
image: plusTier == 'gold'
|
||||
? const AssetImage('assets/images/btn_plus_gold.png')
|
||||
: const AssetImage('assets/images/btn_plus_standard.png'),
|
||||
fit: BoxFit.fitWidth,
|
||||
),
|
||||
borderRadius: BorderRadius.circular(12.0),
|
||||
),
|
||||
padding: const EdgeInsets.all(16.0),
|
||||
child: Row(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
children: [
|
||||
Row(
|
||||
mainAxisAlignment: MainAxisAlignment.start,
|
||||
children: [
|
||||
const SizedBox(
|
||||
width: 2.0,
|
||||
),
|
||||
Image.asset(
|
||||
plusTier == 'gold'
|
||||
? 'assets/images/plus_tier_ink.png'
|
||||
: 'assets/images/plus_tier_cap.png',
|
||||
width: 23.0,
|
||||
height: 23.0,
|
||||
),
|
||||
const SizedBox(
|
||||
width: 14.0,
|
||||
),
|
||||
Text(
|
||||
'reFilc+',
|
||||
style: TextStyle(
|
||||
color: plusTier == 'gold'
|
||||
? const Color(0xFF341C01)
|
||||
: const Color(0xFF150D4E),
|
||||
fontSize: 18.0,
|
||||
fontWeight: FontWeight.w600,
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
Text(
|
||||
plusTier == 'none' ? '0.99 €' : 'subscriber'.i18n,
|
||||
style: const TextStyle(
|
||||
color: Color(0xFF150D4E),
|
||||
fontSize: 15.0,
|
||||
fontWeight: FontWeight.w500,
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
child: Container(),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import 'package:flutter_svg/svg.dart';
|
||||
import 'package:refilc_mobile_ui/common/bottom_sheet_menu/rounded_bottom_sheet.dart';
|
||||
import 'package:refilc_mobile_ui/plus/plus_screen.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'plus_things.i18n.dart';
|
||||
|
||||
@@ -346,7 +345,7 @@ class PlusLockedFeaturePopup extends StatelessWidget {
|
||||
height: 38.0,
|
||||
),
|
||||
Image.asset(
|
||||
'assets/images/plus_${isGold ? 'gold' : 'standard'}.png',
|
||||
'assets/images/pixel.png',
|
||||
width: 66,
|
||||
height: 66,
|
||||
),
|
||||
@@ -445,7 +444,7 @@ class PlusLockedFeaturePopup extends StatelessWidget {
|
||||
onTap: () {
|
||||
Navigator.of(context, rootNavigator: true)
|
||||
.push(MaterialPageRoute(builder: (context) {
|
||||
return const PlusScreen();
|
||||
return Container();
|
||||
}));
|
||||
},
|
||||
child: Container(
|
||||
@@ -453,7 +452,7 @@ class PlusLockedFeaturePopup extends StatelessWidget {
|
||||
decoration: BoxDecoration(
|
||||
image: DecorationImage(
|
||||
image: AssetImage(
|
||||
'assets/images/btn_plus_${isGold ? 'gold' : 'standard'}.png'),
|
||||
'assets/images/pixel.png'),
|
||||
),
|
||||
borderRadius: BorderRadius.circular(12.0),
|
||||
),
|
||||
|
||||
@@ -75,86 +75,21 @@ class _ModifyAppIconState extends State<ModifyAppIcon> {
|
||||
Panel(
|
||||
title: Text("basic".i18n),
|
||||
child: Column(
|
||||
children: [
|
||||
AppIconItem(
|
||||
iconName: 'refilc_default',
|
||||
iconPath: 'assets/launch_icons/refilc_default.png',
|
||||
displayName: 'reFilc Default',
|
||||
description: 'Az alapértelmezett ikon.',
|
||||
selected: settings.appIcon == 'refilc_default',
|
||||
selectCallback: () async {
|
||||
await AppIconHelper.setAppIcon('refilc_default');
|
||||
settings.update(appIcon: 'refilc_default');
|
||||
},
|
||||
),
|
||||
],
|
||||
children: [],
|
||||
),
|
||||
),
|
||||
// const SizedBox(height: 16.0),
|
||||
// Panel(
|
||||
// title: Text("seasonal".i18n),
|
||||
// child: Column(
|
||||
// children: [
|
||||
// // AppIconItem(
|
||||
// // iconName: 'refilc_default',
|
||||
// // iconPath: 'assets/launch_icons/refilc_default.png',
|
||||
// // displayName: 'reFilc Default',
|
||||
// // description: 'Az alapértelmezett ikon.',
|
||||
// // selected: true,
|
||||
// // selectCallback: () {},
|
||||
// // ),
|
||||
// ],
|
||||
// ),
|
||||
// ),
|
||||
const SizedBox(height: 16.0),
|
||||
Panel(
|
||||
title: Text("special".i18n),
|
||||
child: Column(
|
||||
children: [
|
||||
AppIconItem(
|
||||
iconName: 'refilc_overcomplicated',
|
||||
iconPath:
|
||||
'assets/launch_icons/refilc_overcomplicated.png',
|
||||
displayName: 'Overcomplicated',
|
||||
// description: 'Egy túlkomplikált ikon.',
|
||||
selected: settings.appIcon == 'refilc_overcomplicated',
|
||||
selectCallback: () async {
|
||||
await AppIconHelper.setAppIcon(
|
||||
'refilc_overcomplicated');
|
||||
settings.update(appIcon: 'refilc_overcomplicated');
|
||||
},
|
||||
),
|
||||
AppIconItem(
|
||||
iconName: 'refilc_concept',
|
||||
iconPath: 'assets/launch_icons/refilc_concept.png',
|
||||
displayName: 'Modern Concept',
|
||||
// description: 'Egy modernebb, letisztultabb ikon.',
|
||||
selected: settings.appIcon == 'refilc_concept',
|
||||
selectCallback: () async {
|
||||
await AppIconHelper.setAppIcon('refilc_concept');
|
||||
settings.update(appIcon: 'refilc_concept');
|
||||
},
|
||||
),
|
||||
],
|
||||
children: [],
|
||||
),
|
||||
),
|
||||
const SizedBox(height: 16.0),
|
||||
Panel(
|
||||
title: Text("other".i18n),
|
||||
child: Column(
|
||||
children: [
|
||||
AppIconItem(
|
||||
iconName: 'refilc_pride',
|
||||
iconPath: 'assets/launch_icons/refilc_pride.png',
|
||||
displayName: 'Pride',
|
||||
// description: '',
|
||||
selected: settings.appIcon == 'refilc_pride',
|
||||
selectCallback: () async {
|
||||
await AppIconHelper.setAppIcon('refilc_pride');
|
||||
settings.update(appIcon: 'refilc_pride');
|
||||
},
|
||||
),
|
||||
],
|
||||
children: [],
|
||||
),
|
||||
),
|
||||
],
|
||||
|
||||
@@ -251,11 +251,6 @@ class CalendarSyncScreenState extends State<GradeExportingScreen>
|
||||
AppColors.of(context).text.withOpacity(.95),
|
||||
),
|
||||
),
|
||||
// leading: Image.asset(
|
||||
// 'assets/images/ext_logo/google.png',
|
||||
// width: 24.0,
|
||||
// height: 24.0,
|
||||
// ),
|
||||
borderRadius: const BorderRadius.vertical(
|
||||
top: Radius.circular(12),
|
||||
bottom: Radius.circular(12),
|
||||
|
||||
@@ -26,7 +26,6 @@ dependencies:
|
||||
dropdown_button2: ^2.3.9
|
||||
home_widget: ^0.7.0+1
|
||||
image_picker: ^1.0.7
|
||||
image_crop: ^0.4.1
|
||||
animations: ^2.0.11
|
||||
flutter_svg: ^2.0.10+1
|
||||
flutter_dynamic_icon: ^2.1.0
|
||||
|
||||