mirror of
https://github.com/git-touch/git-touch
synced 2024-12-18 19:22:54 +01:00
fix: cupertino button padding
This commit is contained in:
parent
e3b050b5a2
commit
b1181ffc6f
@ -159,15 +159,15 @@ class RepositoryScreen extends StatelessWidget {
|
||||
}
|
||||
setState(() {});
|
||||
},
|
||||
borderRadius: BorderRadius.circular(10),
|
||||
padding: EdgeInsets.symmetric(horizontal: 10),
|
||||
child: Row(
|
||||
children: <Widget>[
|
||||
Icon(Octicons.star, size: 15),
|
||||
SizedBox(width: 2),
|
||||
Text(repo.viewerHasStarred ? 'Unstar' : 'Star',
|
||||
style: TextStyle(fontSize: 15)),
|
||||
],
|
||||
minSize: 0,
|
||||
color: theme.palette.primary,
|
||||
padding: EdgeInsets.symmetric(
|
||||
horizontal: 12,
|
||||
vertical: 4,
|
||||
),
|
||||
child: Text(
|
||||
repo.viewerHasStarred ? 'Unstar' : 'Star',
|
||||
style: TextStyle(fontSize: 17),
|
||||
),
|
||||
)
|
||||
],
|
||||
|
@ -367,7 +367,7 @@ class UserScreen extends StatelessWidget {
|
||||
GithubUserArguments(login: login, isViewer: isViewer)));
|
||||
return isViewer ? data.data.viewer : data.data.repositoryOwner;
|
||||
},
|
||||
title: AppBarTitle(isViewer ? 'Me' : 'User'), // TODO:
|
||||
title: AppBarTitle(isViewer ? 'Me' : login),
|
||||
actionBuilder: (payload, _) {
|
||||
switch (payload.resolveType) {
|
||||
case 'User':
|
||||
|
@ -65,8 +65,9 @@ class Link extends StatelessWidget {
|
||||
switch (theme.theme) {
|
||||
case AppThemeType.cupertino:
|
||||
return CupertinoButton(
|
||||
minSize: 0,
|
||||
child: child,
|
||||
padding: EdgeInsets.all(0),
|
||||
padding: EdgeInsets.zero,
|
||||
onPressed: () async {
|
||||
if (onTap != null) onTap();
|
||||
if (url != null) theme.push(context, url);
|
||||
|
Loading…
Reference in New Issue
Block a user