12345678910111213141516171819202122232425262728293031323334353637383940 |
- import 'package:flutter/cupertino.dart';
- import 'package:flutter/material.dart';
- /// 标记点
- class MarkComponent extends StatelessWidget {
- final double size;
- const MarkComponent({Key? key, required this.size}) : super(key: key);
- @override
- Widget build(BuildContext context) {
- return SizedBox(
- width: size,
- height: size,
- child: Center(
- child: Container(
- width: 22,
- height: 22,
- decoration: BoxDecoration(
- borderRadius: const BorderRadius.all(Radius.circular(30)),
- border: Border.all(
- width: 1.0,
- color: const Color.fromRGBO(255, 255, 255, .8),
- ),
- ),
- child: Center(
- child: Container(
- width: 15,
- height: 15,
- decoration: const BoxDecoration(
- color: Color.fromRGBO(255, 255, 255, .8),
- borderRadius: BorderRadius.all(Radius.circular(15)),
- ),
- ),
- ),
- ),
- ),
- );
- }
- }
|