feat: rewrite all models in Flutter
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
This commit is contained in:
1 parent
5b628971a9
commit
487250582c
11 files changed
+1761
No files matched your search
@@ -0,0 +1,11 @@
|
||||
import 'dart:async';
|
||||
import 'dart:math' as math;
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
/// 模型通用接口,所有 Flutter 模型实现此接口。
|
||||
abstract class GcModel {
|
||||
String get id;
|
||||
String name();
|
||||
String description();
|
||||
Widget buildView(BuildContext context);
|
||||
}
|
||||
Reference in new issue
Block a user