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
12 lines
282 B
Dart
12 lines
282 B
Dart
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);
|
|
}
|