Skip to content

Instantly share code, notes, and snippets.

@Loong-T
Loong-T / html_span_widget.dart
Created March 13, 2020 09:02
A Widget to show effects of some simple html tags
import 'package:flutter/material.dart';
import 'package:html/dom.dart' as dom;
import 'package:html/parser.dart';
class HtmlSpanView extends StatefulWidget {
final String content;
const HtmlSpanView(this.content);
@override
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="cc_wan">#A98175</color> <!-- 绾 -->
<color name="cc_sandalwood">#B36D61</color> <!-- 檀 -->
<color name="cc_maroon">#60281E</color> <!-- 栗色 -->
<color name="cc_xuan">#622A1D</color> <!-- 玄 -->
<color name="cc_rouge">#9D2933</color> <!-- 胭脂 -->
<color name="cc_darkRed">#BE002F</color> <!-- 殷红 -->
<color name="cc_claret">#C32136</color> <!-- 枣红 -->
<color name="cc_chi">#C3272B</color> <!-- 赤 -->
@Loong-T
Loong-T / nc_colors.xml
Created July 17, 2017 03:26
A color resource file extracted from http://nipponcolors.com/
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="nc_nadeshiko">#DC9FB4</color> <!-- 撫子 -->
<color name="nc_kohbai">#E16B8C</color> <!-- 紅梅 -->
<color name="nc_suoh">#8E354A</color> <!-- 蘇芳 -->
<color name="nc_taikoh">#F8C3CD</color> <!-- 退紅 -->
<color name="nc_ikkonzome">#F4A7B9</color> <!-- 一斥染 -->
<color name="nc_kuwazome">#64363C</color> <!-- 桑染 -->
<color name="nc_momo">#F596AA</color> <!-- 桃 -->
<color name="nc_ichigo">#B5495B</color> <!-- 苺 -->