NetCalc Pro
Fully offline Flutter scientific calculator featuring real-time expression evaluation, unit conversion, programmer mode, matrix and statistics screens, history, favorites, and privacy-first local storage.
- Offline Execution
- 100%
- External Trackers
- 0
- Calc & Unit Modes
- Multi
- Single Codebase
- Dart
1. Problem
Many mobile scientific calculators require ads, tracking, or internet connections, and break on edge cases like large factorials, programmer bitwise shifts on web, or rapid screen transitions.
2. My Role
Mobile & Flutter Developer — architected multi-screen navigation (scientific, programmer, matrix, statistics, unit conversion), expression sanitization, local history/favorites persistence, dark mode, and mounted-state lifecycle guards.
3. System Architecture
Flutter provides a single Dart codebase with smooth 60fps rendering across Android, iOS, and Web while keeping all computation and user history 100% on-device with zero network dependencies.
[ Scientific / Programmer / Matrix / Unit Screens ]
|
v Sanitized expression input
[ Expression Evaluation Engine ]
| |
v v
[ Real-Time Display ] [ Local History & Favorites ]4. Key Engineering Trade-Offs
On-Device Evaluation with Explicit Sanitization
Built custom input sanitization and bounded factorial handling instead of relying on unchecked evaluation so malformed expressions never crash the UI.
Cross-Target Programmer Mode Compatibility
Adjusted bitwise and shift operations in ProgrammerScreen so results stay consistent between native Dart integers and JavaScript web compilation.
5. Quality & Reliability
- Privacy-First Local Persistence
- Expression Input Sanitization
- Mounted Widget Lifecycle Guards
- Consistent Dark & Light Theme Tokens
- Structured Error Handling Dialogs
6. Lessons & Next Steps
- Defensive mounted checks around asynchronous local storage reads prevent subtle state exceptions during fast navigation.
- Next step: add automated widget and golden tests for every keypad mode and publish signed release builds.