1
0
mirror of https://github.com/git-touch/git-touch synced 2024-12-15 01:45:05 +01:00

fix(github): actor link

This commit is contained in:
Rongjian Zhang 2020-11-08 19:54:18 +08:00
parent 53897f6fb3
commit ee03b52461
2 changed files with 4 additions and 5 deletions

View File

@ -79,10 +79,6 @@ TextSpan createLinkSpan(
);
}
TextSpan createUserSpan(BuildContext context, String login) {
return createLinkSpan(context, login, '/$login');
}
Tuple2<String, String> parseRepositoryFullName(String fullName) {
final ls = fullName.split('/');
assert(ls.length == 2);

View File

@ -1,5 +1,4 @@
import 'dart:core';
import 'dart:developer';
import 'package:flutter/material.dart';
import 'package:flutter/cupertino.dart';
import 'package:git_touch/models/theme.dart';
@ -8,6 +7,10 @@ import 'package:provider/provider.dart';
import '../utils/utils.dart';
import 'comment_item.dart';
TextSpan createUserSpan(BuildContext context, String login) {
return createLinkSpan(context, login, '/github/$login');
}
class TimelineEventItem extends StatelessWidget {
final String actor;
final IconData iconData;