How marufallammahim/rgb-remote works
RGB-LED-REMOTE is an Android Flutter app for controlling compatible RGB LED devices over infrared. A user selects a remote command or preset; Flutter sends a request through the MethodChannel to Kotlin, which validates and queues IR transmission to the phone emitter. Separate settings and Android home-screen/Device Controls integrations extend the app. The README documents the main workflow; source excerpts show the native queue and smart-control paths. Unexcerpted Dart implementations are represented by their tree paths, so internal Dart call relationships are omitted where not evidenced.
Main entry points: remote_ui.dart Remote controls · MainActivity.kt Native channel handler · IrTransmissionEngine.kt IR transmission queue · SmartControlsProviderService.kt Android Device Controls
Components 22
Flutter app
- Remote screen
lib/presentation/screens/remote_screen.dart - Remote controls
lib/presentation/screens/components/remote_ui.dart - Remote button
lib/presentation/widgets/remote_button.dart - IR presets
lib/resources/pronto_data.dart - Preset one
lib/resources/pronto_data_type1.dart - Preset two
lib/resources/pronto_data_type2.dart - IR platform bridge
lib/plugins/ir_sensor_plugin.dart
Settings and data
- Settings screen
lib/presentation/screens/settings_screen.dart - Settings service
lib/application/services/settings_service.dart - Settings repository
lib/data/repositories/settings_repository_impl.dart - Settings data source
lib/data/datasources/settings_data_source.dart - App settings
lib/domain/entities/app_settings.dart
Android IR runtime
- Native channel handler
android/app/src/main/kotlin/com/marufallammahim/rgbremote/MainActivity.kt - IR transmission queue
android/app/src/main/kotlin/com/marufallammahim/rgbremote/IrTransmissionEngine.kt - Sound and vibration
android/app/src/main/kotlin/com/marufallammahim/rgbremote/MainActivity.kt
Android smart controls
- Smart command storage
android/app/src/main/kotlin/com/marufallammahim/rgbremote/SmartControlPreferences.kt - Home-screen widgets
android/app/src/main/kotlin/com/marufallammahim/rgbremote/SmartHomeWidgetProviders.kt - Basic widget
android/app/src/main/kotlin/com/marufallammahim/rgbremote/SmartControlWidgetProvider.kt - Widget action receiver
android/app/src/main/kotlin/com/marufallammahim/rgbremote/SmartControlReceiver.kt - Android Device Controls
android/app/src/main/kotlin/com/marufallammahim/rgbremote/SmartControlsProviderService.kt
Other components
- App user
- Phone IR emitter
Connections 23
- App user → Remote screen: selects command
README.md - Remote screen → Remote controls: shows controls
- Remote controls → Remote button: offers buttons
- Remote controls → IR presets: selects preset
README.md - IR presets → Preset one: includes
- IR presets → Preset two: includes
- Remote controls → IR platform bridge: requests transmission
README.md - IR platform bridge → Native channel handler: calls MethodChannel
README.md - Native channel handler → IR transmission queue: queues transmission
android/app/src/main/kotlin/com/marufallammahim/rgbremote/MainActivity.kt - IR transmission queue → Phone IR emitter: transmits signal
android/app/src/main/kotlin/com/marufallammahim/rgbremote/IrTransmissionEngine.kt - Native channel handler → Sound and vibration: provides feedback
android/app/src/main/kotlin/com/marufallammahim/rgbremote/MainActivity.kt - App user → Settings screen: changes preferences
- Settings screen → Settings service: uses settings
- Settings service → Settings repository: delegates settings
- Settings repository → Settings data source: accesses data
- Settings repository → App settings: handles settings
- Home-screen widgets → Widget action receiver: dispatches actions
android/app/src/main/kotlin/com/marufallammahim/rgbremote/SmartHomeWidgetProviders.kt - Basic widget → Home-screen widgets: uses widget binder
- Widget action receiver → Smart command storage: reads command
android/app/src/main/kotlin/com/marufallammahim/rgbremote/SmartControlReceiver.kt - Widget action receiver → IR transmission queue: submits transmission
android/app/src/main/kotlin/com/marufallammahim/rgbremote/SmartControlReceiver.kt - Android Device Controls → Smart command storage: reads command
android/app/src/main/kotlin/com/marufallammahim/rgbremote/SmartControlsProviderService.kt - Android Device Controls → IR transmission queue: submits transmission
android/app/src/main/kotlin/com/marufallammahim/rgbremote/SmartControlsProviderService.kt - Android Device Controls → Native channel handler: opens app
android/app/src/main/kotlin/com/marufallammahim/rgbremote/SmartControlsProviderService.kt