1
0
mirror of https://github.com/git-touch/git-touch synced 2025-02-08 23:58:46 +01:00
Shreyas Thirumalai 1ac27f4853
feat(gitee): issues, issue, pullRequests screens (#144)
* feat: gitee pulls, issue screens

* add action button - issue screen

* remove unnecessary comment

* feat: gitee create issue in repo

* feat: commenting in issue screen

* fix: prepend '#' to subtitle props
2021-01-06 12:52:58 +08:00

33 lines
815 B
Dart

import 'package:flutter/material.dart';
import 'package:git_touch/models/theme.dart';
import 'package:git_touch/widgets/link.dart';
import 'package:provider/provider.dart';
class UserName extends StatelessWidget {
final String login;
final String prefix;
UserName(this.login, this.prefix);
@override
Widget build(BuildContext context) {
final theme = Provider.of<ThemeModel>(context);
return Link(
url: '/$prefix/$login',
child: Container(
// padding: EdgeInsets.all(2),
decoration: BoxDecoration(
borderRadius: BorderRadius.all(Radius.circular(4)),
),
child: Text(
login,
style: TextStyle(
fontWeight: FontWeight.w600,
color: theme.palette.primary,
),
),
),
);
}
}