$ show TolyFx/toly_ui
TolyUI is a modular Flutter UI component library with a companion showcase application. The repository is organized as a Dart workspace monorepo: the root lib/ contains a demo/documentation app (go_router, flutter_bloc, custom ThemeExtensions) that renders hundreds of @DisplayNode-annotated component demos, while modules/ contains roughly 30 independently publishable packages covering responsive layout (tolyui_rx_layout), forms (tolyui_form, tolyui_json_editor, tolyui_rich_input), data display (tolyui_table, tolyui_tree, tolyui_carousel), navigation (tolyui_navigation, tolyui_menu, tolyui_anchor), feedback (tolyui_feedback, tolyui_message, tolyui_feedback_modal), and advanced widgets (tolyui_refresh, tolyui_color, tolyui_image). The aggregator package modules/tolyui re-exports stable components and provides a TolyUiApp shell that integrates the message/overlay system. In production, the library is consumed by Flutter developers as pub.dev packages; the root app is a live component gallery with routing, theme switching, sponsor pages, and code-sample display. Demo metadata is generated from @DisplayNode annotations into .g.dart maps and assets/code_res/*.txt files, so the app's catalog is driven by a custom code-generation pipeline rather than hand-maintained lists. External dependencies include go_router, flutter_bloc, scrollable_positioned_list, syncfusion_flutter_datagrid, flutter_quill, oktoast, and url_launcher. Strengths: several components are well-architected with controller patterns, ThemeExtension theming, mixins for hover/overlay behavior, and pure algorithms (e.g., tooltip placement/overflow). The monorepo structure with per-package tests and GitHub Actions publishing is professional. Weaknesses: many packages are pre-1.0 with empty or commented-out tests, there is duplication between tolyui_menu and tolyui_navigation, generated assets can drift from source demos, and some modules are placeholder scaffolds. Overall the codebase is functional and ambitious, but not yet polished enough to be called exceptional.
The LLM identified 5 files worth highlighting for reuse:
Computes tooltip/popover placement and overflow correction across 12 directions. It is a self-contained geometric algorithm that can be extracted into any Flutter overlay or popup project without internal dependencies.
Defines the Rx breakpoint enum and responsive context helpers used by Row$/Cell grid widgets. The pattern of mapping screen width to a discrete breakpoint and exposing it via BuildContext is reusable across Flutter apps needing responsive layouts.
Abstract SheetDataProvider with local and remote implementations that stream table snapshots to the UI. This decouples table data loading from rendering and can be lifted into any data-grid or spreadsheet-style widget.
Manages queued toast/notification overlay entries with automatic position shifting and task status tracking. The queue-and-overlay pattern is reusable for any global feedback system in Flutter.
Abstracts clipboard read/write for rich-text paste operations, allowing platform-specific implementations to be swapped. This service interface is a clean example of dependency inversion that can be extracted for any editor needing clipboard portability.