| 12345678910111213141516171819202122232425262728293031323334353637 | import 'package:flutter_svg/flutter_svg.dart';import 'package:flutter/material.dart';/// For icon that needs to change color when it is on hovered////// Get the hover color from ThemeDataclass FlowySvg extends StatelessWidget {  const FlowySvg({super.key, this.size, required this.name});  final String name;  final Size? size;  @override  Widget build(BuildContext context) {    if (size != null) {      return SizedBox.fromSize(        size: size,        child: SvgPicture.asset('assets/images/$name.svg',            color: Theme.of(context).iconTheme.color),      );    } else {      return SvgPicture.asset('assets/images/$name.svg',          color: Theme.of(context).iconTheme.color);    }  }}Widget svgWidget(String name, {Size? size, Color? color}) {  if (size != null) {    return SizedBox.fromSize(      size: size,      child: SvgPicture.asset('assets/images/$name.svg', color: color),    );  } else {    return SvgPicture.asset('assets/images/$name.svg', color: color);  }}
 |