feat: rewrite all models in Flutter #36

Merged
Morris merged 1 commits from feat/contour-map-rewrite into main 2026-11-21 09:29:33 +08:00
Owner

Summary

Replace C# Avalonia models with pure Flutter implementations.

Changes

1. Contour Map (等高线地形图)

  • Five terrain types: plain, hill, mountain, plateau, basin
  • Animation playback/pause controls
  • Top/3D view toggle
  • Hypsometric coloring

2. Earth Geography (地球地理)

  • Five climate zones display
  • Seven continents outlines
  • Layer toggle controls
  • Tropic/circle annotations

3. Earth Rotation (地球自转)

  • Rotation animation
  • Day/night hemispheres
  • Terminator line annotation
  • Axial tilt (23.5°) display
  • Subsolar point tracking

4. Earth Revolution (地球公转)

  • Orbital animation
  • Four seasons positioning
  • Subsolar point migration
  • Fixed axial direction demo

5. Scale Calculator (比例尺计算器)

  • Three solve modes
  • Visual ruler display
  • Real-time calculation
  • Common scale presets

Implementation

  • Use Flutter CustomPaint for 2D/3D rendering
  • AnimationController for smooth animations
  • Follow GC-UI theme and i18n system
  • Implement GcModel interface for unified management
  • Provide registry.dart for model registration

Files

  • GC-UI/frontend/lib/models/base.dart - Model interface
  • GC-UI/frontend/lib/models/contour_flutter.dart - Contour map
  • GC-UI/frontend/lib/models/geography_flutter.dart - Earth geography
  • GC-UI/frontend/lib/models/rotation_flutter.dart - Earth rotation
  • GC-UI/frontend/lib/models/revolution_flutter.dart - Earth revolution
  • GC-UI/frontend/lib/models/scale_flutter.dart - Scale calculator
  • GC-UI/frontend/lib/models/registry.dart - Model registry
## Summary Replace C# Avalonia models with pure Flutter implementations. ## Changes ### 1. Contour Map (等高线地形图) - Five terrain types: plain, hill, mountain, plateau, basin - Animation playback/pause controls - Top/3D view toggle - Hypsometric coloring ### 2. Earth Geography (地球地理) - Five climate zones display - Seven continents outlines - Layer toggle controls - Tropic/circle annotations ### 3. Earth Rotation (地球自转) - Rotation animation - Day/night hemispheres - Terminator line annotation - Axial tilt (23.5°) display - Subsolar point tracking ### 4. Earth Revolution (地球公转) - Orbital animation - Four seasons positioning - Subsolar point migration - Fixed axial direction demo ### 5. Scale Calculator (比例尺计算器) - Three solve modes - Visual ruler display - Real-time calculation - Common scale presets ## Implementation - Use Flutter CustomPaint for 2D/3D rendering - AnimationController for smooth animations - Follow GC-UI theme and i18n system - Implement GcModel interface for unified management - Provide registry.dart for model registration ## Files - `GC-UI/frontend/lib/models/base.dart` - Model interface - `GC-UI/frontend/lib/models/contour_flutter.dart` - Contour map - `GC-UI/frontend/lib/models/geography_flutter.dart` - Earth geography - `GC-UI/frontend/lib/models/rotation_flutter.dart` - Earth rotation - `GC-UI/frontend/lib/models/revolution_flutter.dart` - Earth revolution - `GC-UI/frontend/lib/models/scale_flutter.dart` - Scale calculator - `GC-UI/frontend/lib/models/registry.dart` - Model registry
Morris added 1 commit 2026-11-21 09:28:00 +08:00
feat: rewrite all models in Flutter
PR 审核 / 后端编译 (pull_request) Waiting to run
PR 审核 / 前端检查(Flutter) (pull_request) Waiting to run
PR 审核 / 安全扫描 (pull_request) Waiting to run
487250582c
Replace C# Avalonia models with pure Flutter implementations:

1. Contour Map (等高线地形图)
   - Five terrain types: plain, hill, mountain, plateau, basin
   - Animation playback/pause controls
   - Top/3D view toggle
   - Hypsometric coloring

2. Earth Geography (地球地理)
   - Five climate zones display
   - Seven continents outlines
   - Layer toggle controls
   - Tropic/circle annotations

3. Earth Rotation (地球自转)
   - Rotation animation
   - Day/night hemispheres
   - Terminator line annotation
   - Axial tilt (23.5°) display
   - Subsolar point tracking

4. Earth Revolution (地球公转)
   - Orbital animation
   - Four seasons positioning
   - Subsolar point migration
   - Fixed axial direction demo

5. Scale Calculator (比例尺计算器)
   - Three solve modes
   - Visual ruler display
   - Real-time calculation
   - Common scale presets

Implementation details:
- Use Flutter CustomPaint for 2D/3D rendering
- AnimationController for smooth animations
- Follow GC-UI theme and i18n system
- Implement GcModel interface for unified management
- Provide registry.dart for model registration
Morris merged commit 255cfa3d85 into main 2026-11-21 09:29:33 +08:00
Morris deleted branch feat/contour-map-rewrite 2026-11-21 09:29:36 +08:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Morris/GC#36