Major design changes based on user requirements: 1. Background Style Changes: - Remove solid color background and shadows - Use semi-transparent background (alpha: 0.12) for subtle visual feedback - Maintain circular shape for both states 2. Icon Improvements: - Increase icon size to 55% of button size for better visibility - Use color-coded icons: blue for idle, red for recording - Remove white icon color, use theme-based colors instead 3. Loading Indicator Enhancement: - Show CircularProgressIndicator during both processing and listening states - Position indicator as overlay using Stack layout - Maintain white color for progress indicator for contrast 4. Color Logic Simplification: - Consolidate color logic into single iconColor variable - Remove complex state-based color transitions - Use consistent color scheme: blue (#2196F3) idle, red (#FF5252) recording - Darker disabled color (#212121) for better contrast 5. Layout Structure Update: - Replace Transform.scale animation wrapper with direct Container - Use Stack for layering icon and progress indicator - Positioned widgets for precise control over element placement This creates a more modern, minimalist design with better visual hierarchy and improved accessibility through higher contrast ratios. |
||
|---|---|---|
| .. | ||
| src | ||
| yx_asr.dart | ||