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:
parent
718226860e
commit
411a4b981e
@ -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(() {
|
||||
|
@ -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));
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user