gnssview/lib/sky/sky_plot_page.dart
2024-12-02 10:57:26 +08:00

44 lines
1.2 KiB
Dart

// import 'package:flutter/material.dart';
// import 'draw_sky_plot.dart';
// import 'skyPlotView.dart';
// class SkyPlotPage extends StatelessWidget {
// final SkyController controller;
// const SkyPlotPage({super.key, required this.controller});
// @override
// Widget build(BuildContext context) {
// return Container(
// decoration: const BoxDecoration(color: Colors.white),
// child: CustomPaint(
// painter: DrawSky(controller, context),
// ),
// );
// }
// }
// class DrawSky extends CustomPainter {
// final BuildContext context;
// final SkyController controller;
// DrawSky(
// this.controller,
// this.context,
// );
// @override
// void paint(Canvas canvas, Size size) {
// // bool isPortrait = MediaQuery.of(context).orientation == Orientation.portrait;
// canvas.translate(0, -15);
// DrawSkyPlot skyPlot = DrawSkyPlot(
// {'ctx': canvas, 'width': size.width, 'height': size.height},
// controller);
// skyPlot.drawSkyPlotCircle();
// if (controller.chartData != null) {
// skyPlot.getCircles(controller.chartData!);
// }
// }
// @override
// bool shouldRepaint(covariant CustomPainter oldDelegate) => true;
// }