-
Notifications
You must be signed in to change notification settings - Fork 0
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
Add Button Components with different state and modes #13
Comments
📊 Progress Update on Issue: Button Component ImplementationProgress: 50%✔️ Completed Tasks:
🚧 Challenges/Blockers:
🛤️ Next Steps:
❓ Questions/Requests:
|
📑 Button VariantsAfter reviewing the Figma design, I have extracted all the button variants that are ready to be implemented. Below are the details of each button variant. Click on each button type to view its corresponding image. 🔹 Variant 1: AdaptivePrimaryButton
🔹 Variant 2: AdaptiveSecondaryButton
🔹 Variant 3: AdaptivePrimaryRoundedButton
🔹 Variant 4: AdaptiveSecondaryRoundedButton
🔹 Variant 5: AdaptiveIconButton
🔹 Variant 6: AdaptiveIconTextButton
🚧 Issues/Challenges
🔄 Feedback Request@esmaeil-ahmadipour and @phoenixit99 @Ja7ad |
Thank you for your review! Please check the Fluent UI Flutter documentation for these issues and share your insights. Your feedback is important for identifying any gaps that may have been overlooked. |
The necessary review has been completed on the 1- The design does not currently specify the button states for To prevent any delays in the development process, these items were temporarily addressed by using a SizedBox for different button states. For the hover and press states, the button color was simply made darker than its original version. Additionally, the accent colors that can be selected in the Figma design within the application settings were added to the project. However, dark mode was not accounted for in the provided color values. As a result, I manually defined darker shades for these colors in the dark mode. |
Overview
Feature Description
We are implementing a new button component in the components repository. This button will support multi-theme and multi-language capabilities, ensuring seamless adaptability across different themes and languages in the Pactus GUI project. Additionally, the button will handle various API states such as
Loading
,Loaded
,Error
, andDefault
.Click to expand the scenario
Scenario: Button Interaction with API States
Imagine a user interacts with a button that triggers an API request. Initially, the button displays its default state. When the user clicks it, the button switches to a loading state.
Design Reference
Attachments
Design Reference: Figma Design Link
Example Image:
Responsive Design:
Ensure the button is fully responsive and adapts to different screen sizes and orientations using Flutter's responsive layout techniques. The button should scale and adjust to various screen sizes smoothly.
API Integration
The button will need to handle responses from the API, including:
Implementation Steps
intl
orl10n
) to display messages in various languages.Loading
,Loaded
,Error
,Initial
).The text was updated successfully, but these errors were encountered: