Custom Widgets
Overview
When to Use Custom Widgets
Use Custom Widgets When You Need:
Use Digia UI Directly For:
Decision Matrix
Component Type
Use Digia UI
Use Custom Widget
Reason
Implementation Pattern
1. Props Class
2. Widget Class
3. Widget Implementation
4. Registration
5. App Initialization
Method 1: Using DigiaUIAppBuilder (Recommended)
Method 2: Using DigiaUIApp with Manual Registration
Usage in Digia Studio
Advanced Patterns
Stateful Widgets
Integration with Analytics
Accessing Native Services
Best Practices
1. Keep Widgets Focused
2. Handle Props Safely
3. Use Proper Naming
4. Test Thoroughly
5. Document Your Widgets
Common Patterns
Payment Integration
Map Integration
File Picker
Troubleshooting
Widget Not Appearing in Digia Studio
Props Not Working
Events Not Firing
Example: Complete Custom Widget
Last updated