Sketch to Flutter code in seconds. 100% on-device AI powered by Arm.
Entry for the Arm AI Developer Challenge 2025
DevSketch Mobile is an iOS application that transforms UI mockups and wireframes into working Flutter code - entirely on your device. No cloud, no waiting, just instant code generation powered by Arm AI.
Building mobile UIs is time-consuming. Designers sketch, developers translate. The iteration cycle is slow.
- 📸 Capture - Photo or upload any UI mockup
- 🤖 Detect - AI identifies UI elements (buttons, text fields, labels, etc.)
- 💻 Generate - Instant Flutter code generation
- 📤 Export - Complete Flutter project ready to deploy
- Speed: Prototype in seconds, not hours
- Privacy: 100% on-device processing (no cloud)
- Efficiency: Powered by Arm Neural Engine optimization
- Impact: Accelerates mobile development workflow for every developer
- Real-time UI Detection: Identifies buttons, text fields, labels, images, and containers
- Flutter Code Generation: Template-based, working code ready to customize
- On-Device Processing: All AI inference runs locally on Arm architecture
- Instant Preview: View generated code with syntax highlighting
- Export Options: Full Flutter project structure ready to build
- Platform: iOS 16+ (SwiftUI)
- AI Framework: Core ML (optimized for Arm Neural Engine)
- Vision Model: YOLOv8-Nano (custom trained on UI mockups)
- Code Generation: Template-based Swift engine
- Target Framework: Flutter
- Architecture: Arm-optimized throughout the stack
- iOS 16.0 or later
- iPhone with A12 Bionic or newer (Arm-based)
- Xcode 14.0 or later
- ~50MB storage
git clone https://github.com/Kevthetech143/arm-devsketch-mobile.git
cd arm-devsketch-mobilecd ios
open DevSketch.xcodeproj- In Xcode, select the DevSketch target
- Go to Signing & Capabilities tab
- Select your Team (Apple Developer account required)
- Xcode will automatically manage signing
Note: A free Apple Developer account works for testing on your own device.
- Connect your iPhone via USB (or use Simulator for testing)
- Select your device from the device dropdown in Xcode's toolbar
- For best results, use a physical device with A12 chip or newer
- Press ⌘R or click the Play button
- Wait for the build to complete (~30 seconds)
- The app will launch on your device
- Tap "Demo Mode" to test with a sample sketch
- Tap "Run AI Detection" to see the ML model in action
- View detected elements with bounding boxes
- Tap "Generate Flutter Code" to see the output
- Use "Copy Code" or "Export Flutter Project"
| Issue | Solution |
|---|---|
| "Signing requires a development team" | Select your team in Signing & Capabilities |
| Model fails to load | Ensure ios/Models/ui_detector.mlpackage exists |
| App crashes on launch | Clean build folder (⌘⇧K) and rebuild |
| Camera not working | Camera requires physical device, use Demo Mode in Simulator |
[Demo video coming soon]
arm-devsketch-mobile/
├── ios/ # iOS app (SwiftUI)
│ ├── DevSketch/ # Main app target
│ ├── Models/ # Core ML models
│ ├── Views/ # SwiftUI views
│ ├── Services/ # Camera, ML inference
│ └── Utils/ # Helpers
├── flutter_templates/ # Flutter widget templates
├── assets/ # Example sketches
├── docs/ # Documentation
└── demo/ # Demo materials
MIT License - See LICENSE file for details
This is a hackathon submission. Contributions welcome after the competition period.
Built for the Arm AI Developer Challenge 2025
Questions? Open an issue or reach out via Devpost.
Built with ❤️ on Arm