import 'package:flutter/material.dart'; /// 标记点 class PointComponent extends StatelessWidget { final double size; const PointComponent({Key? key, required this.size}) : super(key: key); @override Widget build(BuildContext context) { return SizedBox( width: size, height: size, child: Center( child: Container( width: 10, height: 10, decoration: const BoxDecoration( color: Colors.green, borderRadius: BorderRadius.all(Radius.circular(10)), ), ), ), ); } }