1
0
mirror of https://github.com/git-touch/git-touch synced 2024-12-20 20:13:55 +01:00
git-touch-android-ios-app/lib/widgets/user_name.dart

25 lines
556 B
Dart
Raw Normal View History

import 'package:flutter/material.dart';
2019-12-12 13:29:56 +01:00
import 'package:git_touch/widgets/link.dart';
final style = TextStyle(fontWeight: FontWeight.w600);
class UserName extends StatelessWidget {
final String login;
UserName(this.login);
@override
Widget build(BuildContext context) {
2019-01-31 07:37:25 +01:00
return Link(
2019-12-12 13:29:56 +01:00
url: '/$login',
2019-01-31 07:37:25 +01:00
child: Container(
// padding: EdgeInsets.all(2),
2019-01-31 07:37:25 +01:00
decoration: BoxDecoration(
borderRadius: BorderRadius.all(Radius.circular(4)),
),
2019-01-31 07:37:25 +01:00
child: Text(login, style: style),
),
);
}
}