Skip to content

Commit d18c520

Browse files
committed
Added app assets
1 parent e3c2136 commit d18c520

File tree

4 files changed

+95
-42
lines changed

4 files changed

+95
-42
lines changed
20.5 KB
Loading
105 KB
Loading
Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
---
2+
slug: app-assets
3+
title: App Assets
4+
tags: [assets, splash screen, launcher icon, adaptive icon]
5+
keywords: [assets, splash screen, launcher icon, adaptive icon]
6+
description: Learn how to configure app assets for your FlutterFlow app.
7+
sidebar_position: 1
8+
---
9+
10+
# App Assets
11+
12+
This allows you to upload the images to be used by the app. From here, you can upload the Initial splash image and the image for the app launcher icon.
13+
14+
## Splash
15+
16+
Splash screens are the first thing users see when your app starts up. They give the app time to get ready while showing you something fun or informative. This screen typically contains the image or logo of the app.
17+
18+
The steps to configure the splash screen are as follows:
19+
20+
1. Navigate to the **Setting and Integrations** from the Navigation Menu > **General** section > **App Assets**.
21+
22+
2. Under the **Splash** section, click on the **Upload Image** button and upload the image you would like to display on the splash screen.
23+
3. You can try any of the **Image Fit** options to determine how the uploaded image should display on the splash screen.
24+
4. To control the image dimension by yourself, you can set the **width** and **height** properties.
25+
- To set an **exact size,** select **PX** and enter the desired values.
26+
- To set the dimensions as a **% of the screen size**, select **%** and enter the desired value.
27+
5. The **Min Duration** property helps you set the time for which the splash screen will be visible, where (1000ms = 1 second).
28+
6. You can also set a **Background Color** to match the background of the image.
29+
7. In mobile apps, you might occasionally notice a blank white screen briefly appearing (as the Flutter engine loads) before the splash screen is displayed. To change the color of this screen, use the **Pre-loading** Color property.
30+
8. Typically, web apps don't use a splash screen, so If you prefer a more traditional web experience, you can choose to **Disable for Web**.
31+
32+
![splash-screen-configuration](../imgs/splash-screen-configuration.png)
33+
34+
## Launcher Icon
35+
36+
The launcher icon (also known as the app icon) represents your application. When you open the launcher app, it shows the app icons for all the installed apps. It acts as an entry point for your app. The image asset that you will upload here will be used as the app launcher icon.
37+
38+
To add the app launcher icon:
39+
40+
1. Click on the **Setting and Integrations** from the Navigation Menu (left side of your screen).
41+
2. Under the **General** section, select **App Assets**.
42+
3. Under the **Launcher Icon** section, click on the **Upload Image** button.
43+
4. By clicking on the **Unset** dropdown menu, you can also select from the already uploaded images to the Project Media/Assets.
44+
5. [Download the project](../../../testing-deployment-publishing/exporting-code/ff-cli.md) and run the following command in your terminal to generate the launcher icon:
45+
46+
`flutter pub run flutter_launcher_icons:main`
47+
48+
6. [Run your app](../../../testing-deployment-publishing/running-your-app/run-your-app.md) on a real device or emulator to see the app launcher icon.
49+
50+
51+
## Android Adaptive Icon
52+
53+
[Adaptive icons](https://developer.android.com/develop/ui/views/launch/icon_design_adaptive) are a design specification that allows app icons to adapt to different device environments without losing consistency in appearance. Unlike traditional launcher icons, which are static and can appear out of place or poorly scaled on different devices, adaptive icons consist of two layers:
54+
55+
1. **Foreground layer**: This layer usually contains the logo or main visual element of the icon.
56+
2. **Background layer**: This provides a fill (color or background image) behind the foreground, which can be manipulated by the device’s software.
57+
58+
Here are the steps to add adaptive icons:
59+
60+
1. [Create an adaptive icon](https://developer.android.com/develop/ui/views/launch/icon_design_adaptive#design-adaptive-icons). You can either use this [online tool](https://icon.kitchen/) or use these [resources](#create-adaptive-icon) to create one.
61+
2. Return to FlutterFlow and navigate to **Setting and Integrations > General** > **App Assets > Android Adaptive Icon.**
62+
1. Upload the **Foreground Icon**. If you use the online tool, you'll find it inside the `IconKitchen-Output > android > res > mipmap-xxxhdpi > ic_launcher_foreground.png`.
63+
2. For **Background Type**, you can either set the **Color** or **Image**. It's recommended to use a color that aligns with your app's branding for a cohesive look.
64+
3. [Download the project](../../../testing-deployment-publishing/exporting-code/ff-cli.md) and run the following command in your terminal to generate the launcher icon:
65+
66+
`flutter pub run flutter_launcher_icons:main`
67+
68+
4. [Run your app](../../../testing-deployment-publishing/running-your-app/run-your-app.md) on a real device or emulator to see the app launcher icon.
69+
70+
![android-adaptive-icon](../imgs/android-adaptive-icon.png)
71+
72+
### Useful resources
73+
74+
See the following resources for more information on Android adaptive icons.
75+
76+
### Create Adaptive Icon
77+
78+
- [Create app icons in Android Studio](https://developer.android.com/studio/write/create-app-icons#create-adaptive)
79+
- [Figma template](https://material.uplabs.com/posts/adaptive-icon-sticker-sheet) (requires login)
80+
- [Affinity Designer template](https://cyrilmottier.com/2017/07/06/adaptive-icon-template/)
81+
- [Bjango templates](https://github.com/bjango/Bjango-Templates) include adaptive icons
82+
- [Adobe XD template](https://github.com/faizmalkani/adaptive-icon-template-xd)
83+
84+
### Adaptive Icon Fundamentals
85+
86+
- [Understanding Android Adaptive Icons](https://medium.com/google-design/understanding-android-adaptive-icons-cee8a9de93e2)
87+
- [Designing Adaptive Icons](https://medium.com/google-design/designing-adaptive-icons-515af294c783)
88+
- [Implementing Adaptive Icons](https://medium.com/google-developers/implementing-adaptive-icons-1e4d1795470e)

docs/resources/projects/settings/app-details.md

Lines changed: 7 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ title: App Details
44
tags: [Project, Downlod, Asset, Settings]
55
keywords: [Project Name, Package Name, Asset, Download Settings]
66
description: Learn how to configure app settings for your FlutterFlow app.
7+
sidebar_position: 0
78
---
89

910
# App Details
@@ -65,54 +66,22 @@ If you want the improved folder organization for your project, **Enable Updated
6566

6667
---
6768

68-
## Asset Download
69+
## Download Settings
6970

70-
Enable the **Download Unused Project** **Assets** option to download all assets, including those that are not currently used in the project. This is useful when you need to access and use the assets in custom code or other parts of your project.
71+
- **Run "dart fix"**: Enabling this will run the `dart fix` command when downloading the code. This makes the generated code cleaner and potentially more performant.
72+
- **Download Unused Project Assets**: Enable this option to download all assets, including those that are not currently used in the project. This is useful when you need to access and use the assets in custom code or other parts of your project.
7173

7274
---
7375

7476
## Routing & Deep Linking
7577

76-
From here, you can specify the navigation transition style and deep link URL for your app.
78+
From here, you can configure the global settings for navigation and deep link in your app [here](../../../ff-concepts/navigation-routing/deep-dynamic-linking.md).
7779

78-
### Routing
7980

80-
To override the default transition, turn on the **Override Default Transition** toggle. This will reveal the dropdown menu for choosing the **Transition Type** and the field for specifying the **Transition Duration**.
81-
82-
:::info
83-
Though this overrides the default navigation transition style of the entire app, you can still use a different transition style between specific screens by selecting it while defining [**Navigate To**](../../../ff-concepts/navigation-routing/page-navigation.md#navigate-to-action).
84-
:::
85-
86-
<div style={{
87-
position: 'relative',
88-
paddingBottom: 'calc(35.67989417989418% + 41px)', // Keeps the aspect ratio and additional padding
89-
height: 0,
90-
width: '100%'}}>
91-
<iframe
92-
src="https://demo.arcade.software/pwFCEHARwziKxFKNqNHQ?embed&show_copy_link=true"
93-
title=""
94-
style={{
95-
position: 'absolute',
96-
top: 0,
97-
left: 0,
98-
width: '100%',
99-
height: '100%',
100-
colorScheme: 'light'
101-
}}
102-
frameborder="0"
103-
loading="lazy"
104-
webkitAllowFullScreen
105-
mozAllowFullScreen
106-
allowFullScreen
107-
allow="clipboard-write">
108-
</iframe>
109-
</div>
110-
<p></p>
11181
If you prefer watching a video tutorial, here is the guide for you:
112-
11382
<div style={{
11483
position: 'relative',
115-
paddingBottom: 'calc(35.67989417989418% + 41px)', // Keeps the aspect ratio and additional padding
84+
paddingBottom: 'calc(56.67989417989418% + 41px)', // Keeps the aspect ratio and additional padding
11685
height: 0,
11786
width: '100%'}}>
11887
<iframe
@@ -134,8 +103,4 @@ If you prefer watching a video tutorial, here is the guide for you:
134103
allow="clipboard-write">
135104
</iframe>
136105
</div>
137-
<p></p>
138-
139-
### Deep Linking
140-
141-
Learn about adding deep link in your app [here](../../../ff-concepts/navigation-routing/deep-dynamic-linking.md).
106+
<p></p>

0 commit comments

Comments
 (0)