1
0
mirror of https://github.com/git-touch/git-touch synced 2024-12-13 17:08:49 +01:00

fix: language color at trending screen

This commit is contained in:
Rongjian Zhang 2019-03-12 19:00:31 +08:00
parent 718226860e
commit 411a4b981e
3 changed files with 5 additions and 1 deletions

View File

@ -57,6 +57,7 @@ class _RefreshScaffoldState<T> extends State<RefreshScaffold<T>> {
payload = await widget.onRefresh();
} catch (err) {
error = err.toString();
throw err;
} finally {
if (mounted) {
setState(() {

View File

@ -17,6 +17,9 @@ Color convertColor(String cssHex) {
if (cssHex.startsWith('#')) {
cssHex = cssHex.substring(1);
}
if (cssHex.length == 3) {
cssHex = cssHex.split('').map((char) => char + char).join('');
}
return Color(int.parse('ff' + cssHex, radix: 16));
}

View File

@ -27,7 +27,7 @@ dependencies:
nanoid: ^0.0.6
share: ^0.6.0
flutter_vector_icons: ^0.0.2
github_trending: ^0.1.0
github_trending: ^0.1.1
github_contributions: ^0.1.1
flutter_svg: ^0.12.0
launch_review: ^2.0.0