Skip to content
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

feat: Add Support for PageView Widget in Mirai Library #237

Closed
ArjunBhilare opened this issue Dec 20, 2023 · 1 comment · Fixed by #239
Closed

feat: Add Support for PageView Widget in Mirai Library #237

ArjunBhilare opened this issue Dec 20, 2023 · 1 comment · Fixed by #239
Assignees
Labels
Milestone

Comments

@ArjunBhilare
Copy link

Feature Request

Summary: Introduce support for the PageView widget in the Mirai SDUI library to enhance the dynamic UI capabilities with horizontally or vertically scrollable pages.

Details: The PageView widget is a crucial component in Flutter for creating swipeable views, which are commonly used in various app interfaces like onboarding screens, image carousels, and tabbed documents. Adding support for PageView in the Mirai library would significantly expand the range of UIs that can be dynamically generated from the server side.

Proposed Implementation

JSON Structure: Define a JSON schema to represent PageView properties such as scrollDirection, pageSnapping, controller, and children widgets.

Dynamic Page Creation: Allow dynamic creation of pages in the PageView based on JSON data, enabling real-time updates and modifications from the server.

Page Interaction: Support for onPageChanged to handle user interactions with page changes.

Custom Parser: Implement a custom parser in Mirai for PageView that can convert JSON definitions to the PageView widget in Flutter.

Use Cases

Onboarding Flows: Create dynamic onboarding experiences where pages can be modified or reordered without needing a client-side update.

Content Carousels: Allow dynamic content updates in carousels, useful for news apps, e-commerce platforms, etc.

Interactive Guides: Build step-by-step guides or tutorials that can be updated or personalized based on user data.

Impact

This feature would greatly enhance the flexibility of the Mirai library, making it more suitable for a wider range of applications that rely on dynamic content delivery and engaging user interfaces.

@divyanshub024 divyanshub024 added this to the v0.6 milestone Dec 20, 2023
@divyanshub024
Copy link
Contributor

Hey @ArjunBhilare, I feel this is quite important. Will try to add it in the coming release. Thank you for raising the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants