2019-01-27 17:37:44 +01:00
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:flutter/cupertino.dart';
|
2019-02-07 07:35:19 +01:00
|
|
|
import '../screens/user.dart';
|
2019-01-31 07:37:25 +01:00
|
|
|
import 'link.dart';
|
2019-01-27 17:37:44 +01:00
|
|
|
|
|
|
|
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-02-07 12:17:29 +01:00
|
|
|
screenBuilder: (_) => UserScreen(login),
|
2019-01-31 07:37:25 +01:00
|
|
|
child: Container(
|
2019-02-09 08:33:06 +01:00
|
|
|
// padding: EdgeInsets.all(2),
|
2019-01-31 07:37:25 +01:00
|
|
|
decoration: BoxDecoration(
|
|
|
|
borderRadius: BorderRadius.all(Radius.circular(4)),
|
2019-01-27 17:37:44 +01:00
|
|
|
),
|
2019-01-31 07:37:25 +01:00
|
|
|
child: Text(login, style: style),
|
2019-01-27 17:37:44 +01:00
|
|
|
),
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|