Skip to content

Commit 2920c19

Browse files
committed
Add Library Pages in NavBar
1 parent bf47a97 commit 2920c19

File tree

1 file changed

+35
-3
lines changed

1 file changed

+35
-3
lines changed

docs/resources/projects/libraries.md

Lines changed: 35 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -253,17 +253,17 @@ You can easily upgrade to newer versions of the libraries as they become availab
253253

254254
## Library Pages
255255

256-
You can also add and manage pages within a library, making it easy to reuse those pages across multiple projects. These pages function like any regular project page in your app; they support navigation, parameters, state management, and transitions.
256+
When you publish a library, all the pages included in the library become available for use in the consumer project. These pages function like any regular project page in your app; they support navigation, parameters, state management, and transitions.
257257

258-
Including 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 payment flows, you can build them in a library once and use them wherever needed.
258+
Library Pages 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 payment flows, you can build them in a library once and use them wherever needed.
259259

260260
:::tip[Possible Use Cases]
261261
- **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.
262262
- **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.
263263
- **White-labeled Apps** that share common onboarding flows can benefit from libraries. The onboarding process can be built once as a library and reused across all branded versions of the app.
264264
:::
265265

266-
The library author selects which pages to include and publishes the library. When users import or update the library, they can override the default route names to prevent conflicts between the library and their project. Library pages then appear in navigation actions just like any regular page.
266+
When users import or update the library, they can override the default route names to prevent conflicts between the library and their project. Library pages then appear in navigation actions just like any regular page.
267267

268268
<div style={{
269269
position: 'relative',
@@ -291,7 +291,39 @@ The library author selects which pages to include and publishes the library. Whe
291291
</div>
292292
<p></p>
293293

294+
### Library Pages in NavBar
294295

296+
Library pages can also be used in the NavBar, allowing users to add reusable flows into the app’s primary navigation structure. For example, in a Super App, you can import ride booking, food delivery, or payment pages from separate libraries and add them directly to the bottom navigation, giving users quick access to each module.
297+
298+
To display a library page on the NavBar, navigate to **Project Dependencies > FlutterFlow Libraries**, then click on **Pages** for the relevant library to open its resources. In the list of pages, locate the desired page and click **Nav Bar Settings**, then enable **Show on NavBar**. You can also customize additional settings, such as label and icon, as needed.
299+
300+
To confirm, go to the **Nav Bar & App Bar** section, where you’ll see the library page listed as part of the NavBar items.
301+
302+
<div style={{
303+
position: 'relative',
304+
paddingBottom: 'calc(56.67989417989418% + 41px)', // Keeps the aspect ratio and additional padding
305+
height: 0,
306+
width: '100%'}}>
307+
<iframe
308+
src="https://demo.arcade.software/BDac382RQTHTKFhtZcsc?embed&show_copy_link=true"
309+
title=""
310+
style={{
311+
position: 'absolute',
312+
top: 0,
313+
left: 0,
314+
width: '100%',
315+
height: '100%',
316+
colorScheme: 'light'
317+
}}
318+
frameborder="0"
319+
loading="lazy"
320+
webkitAllowFullScreen
321+
mozAllowFullScreen
322+
allowFullScreen
323+
allow="clipboard-write">
324+
</iframe>
325+
</div>
326+
<p></p>
295327

296328
## Library Values
297329

0 commit comments

Comments
 (0)