-
Notifications
You must be signed in to change notification settings - Fork 109
Library Pages #339
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Library Pages #339
Changes from 1 commit
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
4381180
Library Pages
pinkeshmars 60e7541
Merge branch 'main' into feature/library-pages
PoojaB26 1db197a
Apply suggestions from code review
pinkeshmars 4300430
fix
pinkeshmars e09c569
All pages in library are availalbe to use
pinkeshmars 75f5736
revert all lib pages support
pinkeshmars 36d34ff
Merge branch 'main' into feature/library-pages
PoojaB26 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -249,6 +249,49 @@ You can easily upgrade to newer versions of the libraries as they become availab | |
 | ||
|
||
|
||
## Library Pages | ||
|
||
You can add and manage entire pages within a library, making it easy to reuse those pages across multiple projects. These pages function like any regular page in your app; they support navigation, parameters, state management, and transitions. | ||
|
||
Publishing pages with libraries offers a modular approach to development, making it ideal for large teams and complex, multi-feature apps. For example, instead of recreating common flows, like onboarding and payments flow, you can build them once in a library and use them wherever needed. | ||
pinkeshmars marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
:::tip[Possible Use Cases] | ||
- **Super Apps** like Gojek and Uber with distinct modules such as ride booking, shopping, and payments. Each module can be developed as a separate library and imported into a single main project. | ||
- **Enterprise Apps** with isolated user journeys for different roles, such as admin and customer. Each role-based flow can be built as its own library and integrated into the core app as needed. | ||
- **White-labeled Apps** that share common onboarding flows. The onboarding process can be built once as a library and reused across all branded versions of the app. | ||
pinkeshmars marked this conversation as resolved.
Show resolved
Hide resolved
|
||
::: | ||
|
||
The library author selects the pages to include in the library and publish it. When users import or update the library, they can override the default route names to avoid route name conflicts between the library and your project. Library pages then appear in the navigation actions just like any regular page. | ||
pinkeshmars marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
The library author selects the pages to include and publishes the library. When users import or update the library, they can override the default route names to avoid conflicts between the library and your project. Once imported, the library pages appear in navigation actions just like any other page in the project. | ||
PoojaB26 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
<div style={{ | ||
position: 'relative', | ||
paddingBottom: 'calc(56.67989417989418% + 41px)', // Keeps the aspect ratio and additional padding | ||
height: 0, | ||
width: '100%'}}> | ||
<iframe | ||
src="https://demo.arcade.software/fAgLrElyGNdf82NWGJte?embed&show_copy_link=true" | ||
title="" | ||
style={{ | ||
position: 'absolute', | ||
top: 0, | ||
left: 0, | ||
width: '100%', | ||
height: '100%', | ||
colorScheme: 'light' | ||
}} | ||
frameborder="0" | ||
loading="lazy" | ||
webkitAllowFullScreen | ||
mozAllowFullScreen | ||
allowFullScreen | ||
allow="clipboard-write"> | ||
</iframe> | ||
</div> | ||
<p></p> | ||
|
||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. can we show how it can also be used with navigation bar? |
||
|
||
## Library Values | ||
|
||
|
@@ -290,6 +333,7 @@ To create library values, navigate to **Settings and Integrations > App Settings | |
</div> | ||
<p></p> | ||
|
||
|
||
#### Use Library Values | ||
After setting Library Values, they function just like any other variable in FlutterFlow. You can bind them to components, actions, API calls, or any property that allows you to configure dynamic values across your library project. You can access Library Values via the ****Set from Variable**** menu. | ||
|
||
|
@@ -333,6 +377,7 @@ To set library values, navigate to **Settings and Integrations > Project Setup > | |
For different [**development environments**](../../testing-deployment-publishing/development-environments/development-environments.md) (e.g., development vs. production), you can bind Library Values to [**environment values**](../../testing-deployment-publishing/development-environments/development-environments.md#environment-values). For instance, you could have two different Library Values for an API key, such as `DEV_OPENAI_API_KEY` and `PROD_OPENAI_API_KEY`, and bind them to the development and production environments to track API usage separately. | ||
::: | ||
|
||
|
||
## Libraries with Firebase | ||
You can create collections and enable various Firebase features in library projects without connecting a separate Firebase project. | ||
|
||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.