How yusufdawoud/unit-converter works
Unitconvertor is a cross-platform Flutter unit-conversion app. The main workflow is selecting a category and units, entering a value, calculating and displaying the result, then optionally saving or reopening it through favorites and history. The README documents additional number-base, BMI, and discount/tax utilities. Dart relationships below follow the README; native host relationships are limited to those shown in the supplied excerpts or source index. Most Dart implementation files were not sampled.
Main entry points: converter_controller.dart Converter state · home_screen.dart Home and navigation · converter_screen.dart Converter screen · main.dart App entry
Components 29
App and navigation
- App entry
unitconvertor/lib/main.dart - Home and navigation
unitconvertor/lib/screens/home_screen.dart - Converter screen
unitconvertor/lib/screens/converter_screen.dart - Base converter
unitconvertor/lib/screens/base_converter_screen.dart - Utility calculators
unitconvertor/lib/screens/utilities_screen.dart - History and favorites
unitconvertor/lib/screens/history_favorites_screen.dart - Theme configuration
unitconvertor/lib/theme/app_theme.dart - Category card
unitconvertor/lib/widgets/category_card.dart - Numeric keypad
unitconvertor/lib/widgets/numeric_keypad.dart - Result breakdown
unitconvertor/lib/widgets/result_breakdown_list.dart - Unit picker
unitconvertor/lib/widgets/unit_picker_sheet.dart
Conversion domain
- Converter state
unitconvertor/lib/state/converter_controller.dart - Conversion catalog
unitconvertor/lib/data/converter_catalog.dart - Category model
unitconvertor/lib/models/conversion_category.dart - Unit model
unitconvertor/lib/models/conversion_unit.dart - Conversion engine
unitconvertor/lib/services/conversion_engine.dart
Saved data
- Local storage
unitconvertor/lib/services/storage_service.dart - Favorite pair
unitconvertor/lib/models/favorite_pair.dart - History record
unitconvertor/lib/models/conversion_history_item.dart
Platform hosts
- Windows runner
unitconvertor/windows/runner/main.cpp - Windows Flutter host
unitconvertor/windows/runner/flutter_window.h - Windows window host
unitconvertor/windows/runner/win32_window.cpp - Linux runner
unitconvertor/linux/runner/main.cc - Linux application host
unitconvertor/linux/runner/my_application.cc - Linux plugin registry
unitconvertor/linux/flutter/generated_plugin_registrant.h - macOS plugin registry
unitconvertor/macos/Flutter/GeneratedPluginRegistrant.swift - iOS app delegate
unitconvertor/ios/Runner/AppDelegate.swift - Windows plugin registry
unitconvertor/windows/flutter/generated_plugin_registrant.h
Other components
- App user
Connections 28
- App user → App entry: launches
- App entry → Converter state: creates and loads
- App entry → Home and navigation: starts
- App entry → Theme configuration: configures
- Home and navigation → Converter state: reads and updates
- Home and navigation → Converter screen: navigates to
- Home and navigation → Base converter: opens
- Home and navigation → Utility calculators: opens
- Home and navigation → History and favorites: opens
- Home and navigation → Category card: lists categories with
- Converter screen → Converter state: updates state
- Converter screen → Numeric keypad: uses
- Converter screen → Result breakdown: shows equivalents with
- Converter screen → Unit picker: opens
- Converter screen → Converter state: saves conversions through
- Converter state → Conversion catalog: uses available categories
- Converter state → Conversion engine: requests calculations
- Converter state → Local storage: loads and saves
- Converter state → Favorite pair: manages
- Converter state → History record: manages
- Result breakdown → Conversion engine: calculates equivalents
- History and favorites → Converter state: reopens and removes entries
- Base converter → Conversion engine: converts number bases
- Windows runner → Windows Flutter host: creates
unitconvertor/windows/runner/main.cpp - Windows Flutter host → Windows window host: extends
unitconvertor/windows/runner/flutter_window.h - Linux runner → Linux application host: creates and runs
unitconvertor/linux/runner/main.cc - Linux application host → Linux plugin registry: references registry
unitconvertor/linux/runner/my_application.cc - iOS app delegate → macOS plugin registry: registers plugins
unitconvertor/ios/Runner/AppDelegate.swift