mirror of
https://github.com/git-touch/git-touch
synced 2025-01-01 02:28:20 +01:00
fix: user name color
This commit is contained in:
parent
798bb42509
commit
46ecf2ff4a
@ -1,7 +1,7 @@
|
|||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
import 'package:git_touch/models/theme.dart';
|
||||||
import 'package:git_touch/widgets/link.dart';
|
import 'package:git_touch/widgets/link.dart';
|
||||||
|
import 'package:provider/provider.dart';
|
||||||
final style = TextStyle(fontWeight: FontWeight.w600);
|
|
||||||
|
|
||||||
class UserName extends StatelessWidget {
|
class UserName extends StatelessWidget {
|
||||||
final String login;
|
final String login;
|
||||||
@ -10,6 +10,7 @@ class UserName extends StatelessWidget {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
|
final theme = Provider.of<ThemeModel>(context);
|
||||||
return Link(
|
return Link(
|
||||||
url: '/$login',
|
url: '/$login',
|
||||||
child: Container(
|
child: Container(
|
||||||
@ -17,7 +18,13 @@ class UserName extends StatelessWidget {
|
|||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
borderRadius: BorderRadius.all(Radius.circular(4)),
|
borderRadius: BorderRadius.all(Radius.circular(4)),
|
||||||
),
|
),
|
||||||
child: Text(login, style: style),
|
child: Text(
|
||||||
|
login,
|
||||||
|
style: TextStyle(
|
||||||
|
fontWeight: FontWeight.w600,
|
||||||
|
color: theme.paletteOf(context).primary,
|
||||||
|
),
|
||||||
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user