Skip to content

zurche/simple-calculator

Repository files navigation

Screenshot_20251221_194853

simple-calculator

A simple android calculator created in collaboration with the UI design of Andrea Chiara De Santis and the power of the EvalEx library created by Udo Klimaschewski

Architecture overview

sequenceDiagram
    participant UI as Compose UI
    participant VM as CalculatorViewModel
    participant Engine as CalculatorEngine
    participant History as HistoryRepository

    UI->>VM: onAction(CalculatorAction)
    VM->>Engine: evaluate(...) / toggleLastOperandSign(...)
    Engine-->>VM: EvaluationResult / updated expression
    VM->>History: addHistory(...)
    VM-->>UI: uiState (StateFlow)
    VM-->>UI: invalidExpressionEvents (SharedFlow)
Loading

Third-party licenses

See NOTICE for third-party attribution and license details.