1
0
mirror of https://github.com/git-touch/git-touch synced 2025-01-31 16:14:49 +01:00

fix(gh): org repos language color

This commit is contained in:
Rongjian Zhang 2020-02-26 21:16:45 +08:00
parent b3f56adbe9
commit c2be166a05

View File

@ -3,10 +3,11 @@ import 'package:flutter/cupertino.dart';
import 'package:git_touch/models/bitbucket.dart'; import 'package:git_touch/models/bitbucket.dart';
import 'package:git_touch/models/gitlab.dart'; import 'package:git_touch/models/gitlab.dart';
import 'package:git_touch/models/theme.dart'; import 'package:git_touch/models/theme.dart';
import 'package:git_touch/utils/utils.dart';
import 'package:git_touch/widgets/avatar.dart'; import 'package:git_touch/widgets/avatar.dart';
import 'package:git_touch/widgets/link.dart';
import 'package:provider/provider.dart'; import 'package:provider/provider.dart';
import '../utils/utils.dart'; import 'package:github/src/const/language_color.dart';
import 'link.dart';
import 'package:timeago/timeago.dart' as timeago; import 'package:timeago/timeago.dart' as timeago;
class RepositoryItem extends StatelessWidget { class RepositoryItem extends StatelessWidget {
@ -190,7 +191,8 @@ class RepositoryItem extends StatelessWidget {
width: 12, width: 12,
height: 12, height: 12,
decoration: BoxDecoration( decoration: BoxDecoration(
color: convertColor(primaryLanguageColor), color: convertColor(primaryLanguageColor ??
languagesColor[primaryLanguageName]),
shape: BoxShape.circle, shape: BoxShape.circle,
), ),
), ),