mirror of
https://github.com/pd4d10/git-touch.git
synced 2026-05-01 03:47:36 -05:00
refactor: ferry
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import 'package:flutter/cupertino.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:git_touch/graphql/github.data.gql.dart';
|
||||
import 'package:git_touch/models/auth.dart';
|
||||
import 'package:git_touch/models/theme.dart';
|
||||
import 'package:git_touch/widgets/action_button.dart';
|
||||
@@ -141,6 +142,18 @@ class CommentItem extends StatelessWidget {
|
||||
final List<Widget> widgets;
|
||||
final List<ActionItem> commentActionItemList;
|
||||
|
||||
CommentItem.gql(GCommentParts p)
|
||||
: avatar = Avatar(
|
||||
url: p.author.avatarUrl, // TODO: deleted user
|
||||
linkUrl: '/github/' + p.author.login,
|
||||
),
|
||||
login = p.author.login,
|
||||
createdAt = p.createdAt,
|
||||
body = p.body,
|
||||
widgets = [], // [GhEmojiAction(payload)], // TODO:
|
||||
prefix = 'github',
|
||||
commentActionItemList = []; // TODO
|
||||
|
||||
CommentItem.gh(Map<String, dynamic> payload)
|
||||
: avatar = Avatar(
|
||||
url: payload['author']['avatarUrl'], // TODO: deleted user
|
||||
|
||||
Reference in New Issue
Block a user