新增网络可视化请求工具

This commit is contained in:
2026-07-22 09:24:48 +08:00
parent 4ff93edaab
commit d6e80df5bf
230 changed files with 92710 additions and 51 deletions
@@ -0,0 +1,31 @@
import 'package:flutter/material.dart';
import 'binding_ambiguate.dart';
const Size dotSize = Size(65.0, 65.0);
const double margin = 10.0;
const double bottomDistance = margin * 4;
const int kMaxTooltipLines = 10;
const double kScreenEdgeMargin = 10.0;
const double kTooltipPadding = 5.0;
const Color kTooltipBackgroundColor = Color.fromARGB(230, 60, 60, 60);
const Color kHighlightedRenderObjectFillColor =
Color.fromARGB(128, 128, 128, 255);
const Color kHighlightedRenderObjectBorderColor =
Color.fromARGB(128, 64, 64, 128);
const Color kTipTextColor = Color(0xFFFFFFFF);
final double ratio =
bindingAmbiguate(WidgetsBinding.instance)!.window.devicePixelRatio;
final Size windowSize =
bindingAmbiguate(WidgetsBinding.instance)!.window.physicalSize / ratio;