Skip to content

Commit

Permalink
fix(github): actor link
Browse files Browse the repository at this point in the history
  • Loading branch information
pd4d10 committed Nov 8, 2020
1 parent 53897f6 commit ee03b52
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 0 additions & 4 deletions lib/utils/utils.dart
Expand Up @@ -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);
Expand Down
5 changes: 4 additions & 1 deletion lib/widgets/timeline_item.dart
@@ -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';
Expand All @@ -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;
Expand Down

0 comments on commit ee03b52

Please sign in to comment.