虚线
flutter本身无虚线组件,想要使用,需要单独封住,下面提供一个实现的,仅供参考
import 'package:flutter/material.dart';
// constants
import 'package:packet_app/constants/color.dart';
// 虚线
class DashLine extends StatelessWidget {
const DashLine({
Key? key,
this.width = 2.0,
this.height = 1.0,
this.color,
this.direction = Axis.horizontal,
<