Welcome to the Widget Book for Pactus GUI! This project serves as a dedicated library of reusable widgets designed specifically for use within the Pactus GUI—a graphical interface built for interacting with the Pactus blockchain.
The Widget Book provides a centralized environment to:
- Explore: View and interact with widgets in isolation.
- Document: Maintain clear and consistent documentation for each widget, making it easier to understand their purpose, usage, and customization options.
- Test: Validate the appearance and behavior of widgets across different states, configurations, and themes.
- Collaborate: Facilitate a shared understanding within the development team by presenting widgets in a standardized format.
-
Enhanced Consistency:
- Ensures that the widgets used across Pactus GUI adhere to a uniform design language.
- Reduces inconsistencies in user interface elements.
-
Increased Reusability:
- Widgets developed in this library can be reused across multiple screens and features of Pactus GUI.
- Promotes modular and maintainable code.
-
Improved Collaboration:
- Simplifies communication between developers, designers, and stakeholders by offering a visual reference for components.
- Streamlines the feedback process.
-
Streamlined Development Process:
- Accelerates UI development by offering ready-to-use, thoroughly tested components.
- Enables parallel development by allowing developers to work on widgets independently from the main application.
- Component Showcase: View widgets with real data or mock data.
- Theme Support: Test widgets in light, dark, or custom themes to ensure compatibility.
- State Management: Validate widgets in various states (e.g., loading, error, success).
- Documentation Integration: Embedded markdown or inline documentation for each widget.
- Interactive Customization: Modify widget properties on the fly to observe real-time changes.
-
Clone the Repository:
git clone <repository-url>
-
Install Dependencies:
flutter pub get
-
Run the Widget Book:
flutter run
-
Navigate Through Widgets:
- Use the navigation panel to explore different widgets.
- Interact with customization options to tailor the widget behavior.
We welcome contributions from the entire Pactus GUI development team. To contribute:
- Follow the coding standards defined for Pactus GUI.
- Document your widgets thoroughly.
- Ensure your widgets are compatible with all supported themes and states.
- Write tests where applicable.
For detailed guidelines, refer to our CONTRIBUTING.md file.
- Automated Visual Regression Testing: To catch UI discrepancies early.
- Widget Performance Benchmarks: Measure and optimize widget rendering times.
- Improved Search Functionality: Quickly locate widgets by name or tag.