mirror of
https://github.com/pd4d10/git-touch.git
synced 2026-03-11 17:49:27 -05:00
feat: user screen style tweaks
This commit is contained in:
@@ -211,17 +211,17 @@ class _UserScreenState extends State<UserScreen> {
|
||||
child: Row(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: <Widget>[
|
||||
Avatar(url: payload['avatarUrl'], size: 28),
|
||||
Padding(padding: EdgeInsets.only(left: 10)),
|
||||
Avatar(url: payload['avatarUrl'], size: 24),
|
||||
SizedBox(width: 10),
|
||||
Expanded(
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: <Widget>[
|
||||
Text(
|
||||
payload['name'] ?? widget.login,
|
||||
style: TextStyle(height: 1.2, fontSize: 16),
|
||||
style: TextStyle(fontSize: 16),
|
||||
),
|
||||
Padding(padding: EdgeInsets.only(top: 10)),
|
||||
SizedBox(height: 8),
|
||||
_buildInfo(payload),
|
||||
],
|
||||
),
|
||||
|
||||
@@ -12,15 +12,13 @@ class EntryItem extends StatelessWidget {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Expanded(
|
||||
flex: 1,
|
||||
child: Link(
|
||||
child: Container(
|
||||
padding: EdgeInsets.symmetric(vertical: 10),
|
||||
padding: EdgeInsets.symmetric(vertical: 12),
|
||||
child: Column(
|
||||
children: <Widget>[
|
||||
Text(count == null ? '' : count.toString(),
|
||||
style: TextStyle(fontSize: 18)),
|
||||
Text(text, style: TextStyle(fontSize: 13))
|
||||
Text(count.toString(), style: TextStyle(fontSize: 20)),
|
||||
Text(text, style: TextStyle(fontSize: 12))
|
||||
],
|
||||
),
|
||||
),
|
||||
|
||||
@@ -82,9 +82,9 @@ class EventItem extends StatelessWidget {
|
||||
children: <Widget>[
|
||||
Row(
|
||||
children: <Widget>[
|
||||
SizedBox(width: 18),
|
||||
SizedBox(width: 20),
|
||||
Icon(iconData, color: PrimerColors.gray400, size: 13),
|
||||
SizedBox(width: 8),
|
||||
SizedBox(width: 6),
|
||||
Text(timeago.format(event.createdAt),
|
||||
style: TextStyle(fontSize: 13, color: PrimerColors.gray400))
|
||||
],
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter/cupertino.dart';
|
||||
import 'package:primer/primer.dart';
|
||||
import '../utils/utils.dart';
|
||||
import '../screens/repo.dart';
|
||||
import 'link.dart';
|
||||
@@ -35,22 +36,26 @@ class RepoItem extends StatelessWidget {
|
||||
Text(
|
||||
(showOwner ? (payload['owner']['login'] + '/') : '') +
|
||||
payload['name'],
|
||||
style: TextStyle(fontWeight: FontWeight.w600, fontSize: 15),
|
||||
style: TextStyle(fontWeight: FontWeight.w600, fontSize: 16),
|
||||
),
|
||||
SizedBox(height: 6),
|
||||
Text(payload['description'] ?? 'No description provided yet'),
|
||||
Text(
|
||||
payload['description'] ?? 'No description provided yet',
|
||||
style: TextStyle(color: PrimerColors.gray600, fontSize: 14),
|
||||
),
|
||||
SizedBox(height: 6),
|
||||
DefaultTextStyle(
|
||||
style: TextStyle(color: Color(0xff586069), fontSize: 12),
|
||||
style: TextStyle(color: PrimerColors.gray600, fontSize: 13),
|
||||
child: Row(
|
||||
children: <Widget>[
|
||||
Icon(Octicons.star, size: 14, color: Colors.black54),
|
||||
Icon(Octicons.star,
|
||||
size: 14, color: PrimerColors.gray600),
|
||||
Text(payload['stargazers']['totalCount'].toString()),
|
||||
Padding(padding: EdgeInsets.only(left: 16)),
|
||||
SizedBox(width: 16),
|
||||
Icon(Octicons.repo_forked,
|
||||
size: 14, color: Colors.black54),
|
||||
size: 14, color: PrimerColors.gray600),
|
||||
Text(payload['forks']['totalCount'].toString()),
|
||||
Padding(padding: EdgeInsets.only(left: 16)),
|
||||
SizedBox(width: 16),
|
||||
payload['primaryLanguage'] == null
|
||||
? Container()
|
||||
: Row(children: <Widget>[
|
||||
|
||||
Reference in New Issue
Block a user