Skip to main content

pilot_ui 0.0.4 copy "pilot_ui: ^0.0.4" to clipboard
pilot_ui: ^0.0.4 copied to clipboard

A dynamic, theme-aware JSON UI rendering engine for Flutter with extensible parsers, action handlers, and ready-to-use smart dispatch & RTS action components.

0.0.4 #

  • Expandable RTS Action Card & UI Refinements:
    • Added smooth expandable/collapsible body animation to RtsActionCard using SizeTransition and CurvedAnimation.
    • Added initiallyExpanded parameter to RtsActionCard to control initial card expansion (defaults to false).
    • Modernized visual styling with multi-layered soft elevation shadows, refined borders, and compact badge typography.
    • Enhanced action reason handling to prefill from action payloads or direct data keys.
    • Updated DynamicActionButtons styling: increased height to 38px, adjusted padding, and updated Emerald & Indigo palettes.
    • Renamed manual action toggle to "Self" with an updated icon.
    • Updated unit tests to verify expandable interaction behaviors and initial expansion states.

0.0.3 #

  • Package Renaming & RTS Action Card Enhancements:
    • Renamed package to pilot_ui.
    • Enhanced RtsActionCard to merge top-level action_payload with individual action item payloads.
    • Added fallback context ID extraction (user_id, driver_id, attendance_id, id) from card data or ui_schema.
    • Improved action trigger status inference and reason handling.
    • Added unit tests verifying complete actionPayload merging and ID preservation.

0.0.2 #

  • RtsActionCard Refactoring & Enhancements:
    • Refactored RtsActionCard to accept a consolidated data map instead of individual parameters.
    • Added onButtonTap callback for handling action triggers.
    • Moved data parsing and property extraction to private getters within _RtsActionCardState.
    • Updated example app and unit tests to reflect the new component API.

0.0.1 #

  • Initial release of pilot_ui.
  • Dynamic JSON UI Engine:
    • Core PilotBuilder widget for compiling JSON definitions into interactive, responsive Flutter widget trees.
    • Extensible PilotRegistry system for registering custom widget parsers and action handlers.
    • State management and dynamic context evaluation through PilotStateContext and Evaluator.
    • AST caching and performance optimization for rapid expression parsing.
    • Theme resolution and responsive layout helpers (breakpoints, adaptive sizes).
  • Comprehensive Widget Parser Suite:
    • Layout: Container, Column, Row, Flex, Stack, ListView, Expanded, Wrap, SafeArea.
    • Display: Text, Icon, CachedImage, Card, Avatar, Badge, ProgressIndicator, GlassContainer.
    • Input & Interactive: TextField, Checkbox, ElevatedButton, TextButton.
    • Navigation & App Structure: AppBar, BottomNavigationBar, FloatingActionButton, PageView, TabView.
  • Built-in Action Handlers:
    • showDialog, showBottomSheet, setState, emitEvent.
  • Specialized Fleet & Logistics Components:
    • RtsActionCard: Feature-rich, interactive Return-to-Station (RTS) event cards with severity tags, AI diagnosis panels, expandable reasons, and confirmation bottom sheets.
    • DynamicActionButtons: Configurable action buttons with icon mapping and callback routing.
    • PilotComponents.registerAll() helper to quickly register pre-built specialized components.
1
likes
0
points
455
downloads

Publisher

unverified uploader

Weekly Downloads

A dynamic, theme-aware JSON UI rendering engine for Flutter with extensible parsers, action handlers, and ready-to-use smart dispatch & RTS action components.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

cached_network_image, flutter

More

Packages that depend on pilot_ui