Skip to content

Commit

Permalink
Icon Changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Codel1417 committed May 20, 2024
1 parent 6aa291e commit 7da7fce
Show file tree
Hide file tree
Showing 63 changed files with 97 additions and 15 deletions.
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ Small or large, feel free to leave suggestions for new features, or changes to e
> [!IMPORTANT]
> These commands must be run before building or running.
>
>
> ```shell
> # Install and enable required tools
> dart pub global activate build_runner
Expand All @@ -88,19 +88,19 @@ Small or large, feel free to leave suggestions for new features, or changes to e
> [!NOTE]
> To generate base EN localalization file, run
>
>
> ```shell
> dart pub global activate intl_translation
> dart run intl_translation:extract_to_arb --locale=en --output-file='./lib/l10n/messages_en.arb' ./lib/Frontend/intn_defs.dart
> ```
>
>
> To build localization files, run
>
>
> ```shell
> dart pub global activate intl_translation
> dart run intl_translation:generate_from_arb --output-dir=lib/l10n --no-use-deferred-loading lib/Frontend/intn_defs.dart lib/l10n/*.arb
> ```
>
>
> To build generated `.g` files, run
>
> ```shell
Expand Down Expand Up @@ -143,7 +143,7 @@ flutter build ipa --debug --no-codesign
> 3. Click on IOS Simulator
> 4. Click the small `-` icon near the bottom of the settings window
> 5. Click Delete
>
>
> If CocoaPods returns a version error, delete [`ios/Podfile.lock`](ios/Podfile.lock)
##### For Android
Expand All @@ -164,13 +164,13 @@ App packages can be found in [`build/app/output`](build/app/outputs/)
Place the new icon in [Assets](assets/) then update `image_path` in the `icons_launcher` section in [pubspec.yml](pubspec.yml)
```shell
dart pub global activate icons_launcher # downloads the utiltiy
dart pub global activate icons_launcher # downloads the utility
dart pub global run icons_launcher:create
```
#### Updating splash screen
Make any changeshen to the 'flutter_native_splash' section in [pubspec.yml](pubspec.yml)
Make any changes to the 'flutter_native_splash' section in [pubspec.yml](pubspec.yml)
```shell
dart run flutter_native_splash:create
Expand All @@ -195,7 +195,7 @@ To enter the in-app Developer Mode, follow these instructions
To Turn off Developer Mode
1. go to More -> Settings -> Developper Mode
1. go to More -> Settings -> Developer Mode
2. Turn off `showDebugging`
</details>
Expand Down
1 change: 1 addition & 0 deletions android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
android:name="${applicationName}"
android:enableOnBackInvokedCallback="false"
android:icon="@mipmap/ic_launcher"
android:roundIcon="@mipmap/ic_launcher_rounded"
android:label="Tail Company">
>
<activity
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added android/app/src/main/res/drawable-hdpi/splash.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added android/app/src/main/res/drawable-mdpi/splash.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,7 @@
<item>
<bitmap android:gravity="fill" android:src="@drawable/background"/>
</item>
<item>
<bitmap android:gravity="center" android:src="@drawable/splash"/>
</item>
</layer-list>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions android/app/src/main/res/drawable-night/launch_background.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,7 @@
<item>
<bitmap android:gravity="fill" android:src="@drawable/background"/>
</item>
<item>
<bitmap android:gravity="center" android:src="@drawable/splash"/>
</item>
</layer-list>
3 changes: 3 additions & 0 deletions android/app/src/main/res/drawable-v21/launch_background.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,7 @@
<item>
<bitmap android:gravity="fill" android:src="@drawable/background"/>
</item>
<item>
<bitmap android:gravity="center" android:src="@drawable/splash"/>
</item>
</layer-list>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions android/app/src/main/res/drawable/launch_background.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,7 @@
<item>
<bitmap android:gravity="fill" android:src="@drawable/background"/>
</item>
<item>
<bitmap android:gravity="center" android:src="@drawable/splash"/>
</item>
</layer-list>
6 changes: 6 additions & 0 deletions android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@color/ic_launcher_background"/>
<foreground android:drawable="@mipmap/ic_launcher_foreground"/>
<monochrome android:drawable="@mipmap/ic_launcher_monochrome"/>
</adaptive-icon>
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@color/ic_launcher_background"/>
<foreground android:drawable="@mipmap/ic_launcher_round"/>
<monochrome android:drawable="@mipmap/ic_launcher_monochrome"/>
</adaptive-icon>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions android/app/src/main/res/values-night-v31/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
<item name="android:windowFullscreen">false</item>
<item name="android:windowDrawsSystemBarBackgrounds">false</item>
<item name="android:windowLayoutInDisplayCutoutMode">shortEdges</item>
<item name="android:windowSplashScreenBackground">#212121</item>
<item name="android:windowSplashScreenAnimatedIcon">@drawable/android12splash</item>
</style>
<!-- Theme applied to the Android Window as soon as the process has started.
This theme determines the color of the Android Window while your
Expand Down
2 changes: 2 additions & 0 deletions android/app/src/main/res/values-v31/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
<item name="android:windowFullscreen">false</item>
<item name="android:windowDrawsSystemBarBackgrounds">false</item>
<item name="android:windowLayoutInDisplayCutoutMode">shortEdges</item>
<item name="android:windowSplashScreenBackground">#ffffff</item>
<item name="android:windowSplashScreenAnimatedIcon">@drawable/android12splash</item>
</style>
<!-- Theme applied to the Android Window as soon as the process has started.
This theme determines the color of the Android Window while your
Expand Down
4 changes: 4 additions & 0 deletions android/app/src/main/res/values/colors.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="ic_launcher_background">#FFFFFFFF</color>
</resources>
Binary file added assets/TC_Logo_Transparent.png
Binary file added assets/TC_Logo_Transparent_NoText.png
Binary file added assets/TC_Logo_Transparent_NoText_Adaptive.png
Binary file added assets/TC_Logo_Transparent_NoText_small.png
Binary file added assets/TC_Logo_Transparent_dark.png
33 changes: 33 additions & 0 deletions ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,48 @@
"idiom" : "universal",
"scale" : "1x"
},
{
"appearances" : [
{
"appearance" : "luminosity",
"value" : "dark"
}
],
"filename" : "LaunchImageDark.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "[email protected]",
"idiom" : "universal",
"scale" : "2x"
},
{
"appearances" : [
{
"appearance" : "luminosity",
"value" : "dark"
}
],
"filename" : "[email protected]",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "[email protected]",
"idiom" : "universal",
"scale" : "3x"
},
{
"appearances" : [
{
"appearance" : "luminosity",
"value" : "dark"
}
],
"filename" : "[email protected]",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
Expand Down
Binary file modified ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
Binary file modified ios/Runner/Assets.xcassets/LaunchImage.imageset/[email protected]
Binary file modified ios/Runner/Assets.xcassets/LaunchImage.imageset/[email protected]
2 changes: 1 addition & 1 deletion ios/Runner/Base.lproj/LaunchScreen.storyboard
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
</scene>
</scenes>
<resources>
<image name="LaunchImage" width="168" height="185"/>
<image name="LaunchImage" width="2000" height="2000"/>
<image name="LaunchBackground" width="1" height="1"/>
</resources>
</document>
6 changes: 3 additions & 3 deletions lib/Backend/Bluetooth/bluetooth_manager_plus.dart
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,9 @@ Future<void> initFlutterBluePlus(InitFlutterBluePlusRef ref) async {
channelImportance: NotificationChannelImportance.LOW,
priority: NotificationPriority.LOW,
iconData: const NotificationIconData(
resType: ResourceType.mipmap,
resPrefix: ResourcePrefix.ic,
name: 'launcher',
resType: ResourceType.drawable,
resPrefix: ResourcePrefix.img,
name: 'tc_logo_transparent_notext_small',
),
buttons: [],
),
Expand Down
8 changes: 6 additions & 2 deletions lib/Frontend/pages/intro.dart
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,11 @@ class OnBoardingPageState extends ConsumerState<OnBoardingPage> {
}

Widget _buildImage(String assetName, [double width = 350]) {
return Image.asset('assets/$assetName', width: width);
return Image.asset(
'assets/$assetName',
width: width,
cacheWidth: width.toInt(),
);
}

@override
Expand Down Expand Up @@ -76,7 +80,7 @@ class OnBoardingPageState extends ConsumerState<OnBoardingPage> {
child: SafeArea(
child: Padding(
padding: const EdgeInsets.only(top: 16, right: 16),
child: _buildImage('TC_Logo.jpg', 60),
child: _buildImage('TC_Logo_Transparent_NoText.png', 60),
),
),
),
Expand Down
12 changes: 12 additions & 0 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,10 @@ icons_launcher:
platforms:
android:
enable: true
adaptive_background_color: "#ffffff"
adaptive_foreground_image: "assets/TC_Logo_Transparent.png"
adaptive_round_image: "assets/TC_Logo_Transparent.png"
adaptive_monochrome_image: "assets/TC_Logo_Transparent_NoText_Adaptive.png"
ios:
enable: true

Expand All @@ -156,8 +160,16 @@ flutter_native_splash:
# of your splash screen to a solid color. Use background_image to set the background of your
# splash screen to a png image. This is useful for gradients. The image will be stretch to the
# size of the app. Only one parameter can be used, color and background_image cannot both be set.
fullscreen: false
color: "#ffffff"
color_dark: "#212121"
image: "assets/TC_Logo_Transparent.png"
image_dark: "assets/TC_Logo_Transparent_dark.png"
android_12:
color: "#ffffff"
color_dark: "#212121"
image: "assets/TC_Logo_Transparent.png"
image_dark: "assets/TC_Logo_Transparent_dark.png"
dependency_overrides:
device_info_plus: any # PDFx uses an older version, but v10 and newer is required for IOS publishing
meta: any

0 comments on commit 7da7fce

Please sign in to comment.