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

Integrate Widgetbook with Fluent UI in Flutter Project #51

Open
esmaeil-ahmadipour opened this issue Jan 2, 2025 · 2 comments · May be fixed by #52
Open

Integrate Widgetbook with Fluent UI in Flutter Project #51

esmaeil-ahmadipour opened this issue Jan 2, 2025 · 2 comments · May be fixed by #52
Assignees
Labels
feature Add/Create new feature hold On hold, awaiting further action

Comments

@esmaeil-ahmadipour
Copy link
Collaborator

Overview

Feature Description

Integrate and configure Widgetbook in the project using the Fluent UI Micro Framework in Flutter. The objective is to:

  1. Create a simple Fluent UI widget, such as a Button.
  2. Set up Widgetbook and ensure it runs successfully in the project.
  3. Enable theme switching (e.g., light and dark modes) and variable adjustments using the Knob section within Widgetbook.
Click to expand the scenario

Scenario: Configuring and Running Widgetbook

A developer sets up Widgetbook in the project for efficient UI/UX testing. Steps include:

  1. Install and configure Widgetbook.
  2. Create a simple widget, such as a Fluent UI Button.
  3. Test the widget in Widgetbook with theme-switching functionality.
  4. Adjust variables like button text and color using the Knob section.

The developer ensures the widget runs perfectly in Widgetbook, enabling better collaboration and faster UI iteration.

Design Reference

Related Issues

(No related issues currently.)

@PouriaMoradi021
Copy link

PouriaMoradi021 commented Jan 2, 2025

📊 Current Status:

Progress: 100%

  • ✔️ Completed Tasks:

    • Task 1: Install and configure Widgetbook in the Flutter project.
    • Task 2: Create a simple Fluent UI widget, such as a Button.
    • Task 3: Set up Widgetbook and ensure it runs successfully in the project.
    • Task 4: Enable theme switching (light and dark modes) in Widgetbook.
    • Task 5: Adjust variables like button text and color using the Knob section within Widgetbook.

🚧 Challenges/Blockers:

  • The requested item in this issue, namely the implementation of Widgetbook in the project, was done and this item was added to the project source code, but in order for the Widgetbook output to be accessible to anyone outside the Flutter team and to be accessible, for example, under the domain and with a link, this item was implemented in a separate repository.

The continuation of this implementation is on hold until the issue is resolved.

🛤️ Next Steps:

  • Estimated time for completion: 1D

❓ Questions/Requests:

  • Not identified

@esmaeil-ahmadipour

PouriaMoradi021 added a commit that referenced this issue Jan 2, 2025
- add a sample code for `gender selection` to widget book
- add `widgetbook_main`
- add `widgetbook_main_directories`
- update pubspec.yaml
- add `AppTheme`
- update `home_page` screen
- update `tool_bar_logo_widget_test`
@esmaeil-ahmadipour esmaeil-ahmadipour linked a pull request Jan 3, 2025 that will close this issue
@esmaeil-ahmadipour esmaeil-ahmadipour added the hold On hold, awaiting further action label Jan 3, 2025
@esmaeil-ahmadipour
Copy link
Collaborator Author

This issue is blocked by issue #3 of WidgetBook. Once the tasks in issue #3 of WidgetBook are completed, this issue will require code refactoring to align with the new dependencies(pactus-gui-widgetbook).

Note: we use pactus-gui-widgetbook as one UI package .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Add/Create new feature hold On hold, awaiting further action
Projects
None yet
2 participants