chore: style tweaks
This commit is contained in:
parent
55f3f6a713
commit
2d28eb7b41
|
@ -47,12 +47,7 @@ class _LoginScreenState extends State<LoginScreen> {
|
|||
),
|
||||
]);
|
||||
},
|
||||
child: Container(
|
||||
padding: CommonStyle.padding,
|
||||
decoration: BoxDecoration(
|
||||
border: Border(
|
||||
bottom: BorderSide(color: AntTheme.of(context).colorBorder)),
|
||||
),
|
||||
child: AntListItem(
|
||||
child: Row(
|
||||
children: <Widget>[
|
||||
Avatar(url: account.avatarUrl, size: AvatarSize.large),
|
||||
|
@ -88,12 +83,7 @@ class _LoginScreenState extends State<LoginScreen> {
|
|||
{IconData? brand, required String text, Function? onTap}) {
|
||||
return LinkWidget(
|
||||
onTap: onTap,
|
||||
child: Container(
|
||||
padding: const EdgeInsets.symmetric(vertical: 20),
|
||||
decoration: BoxDecoration(
|
||||
border: Border(
|
||||
bottom: BorderSide(color: AntTheme.of(context).colorBorder)),
|
||||
),
|
||||
child: AntListItem(
|
||||
child: Row(
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: <Widget>[
|
||||
|
@ -138,8 +128,9 @@ class _LoginScreenState extends State<LoginScreen> {
|
|||
title: AppBarTitle(AppLocalizations.of(context)!.selectAccount),
|
||||
body: auth.loading
|
||||
? const Center(child: Loading())
|
||||
: Container(
|
||||
child: Column(
|
||||
: Column(
|
||||
children: [
|
||||
AntList(
|
||||
children: [
|
||||
...List.generate(auth.accounts!.length, _buildAccountItem),
|
||||
_buildAddItem(
|
||||
|
@ -177,7 +168,8 @@ class _LoginScreenState extends State<LoginScreen> {
|
|||
'user, repo, read:org, notifications',
|
||||
style: TextStyle(
|
||||
fontSize: 16,
|
||||
color: AntTheme.of(context).colorPrimary),
|
||||
color:
|
||||
AntTheme.of(context).colorPrimary),
|
||||
)
|
||||
]),
|
||||
);
|
||||
|
@ -263,7 +255,8 @@ class _LoginScreenState extends State<LoginScreen> {
|
|||
TextSpan(
|
||||
text: 'this guide',
|
||||
style: TextStyle(
|
||||
color: AntTheme.of(context).colorPrimary),
|
||||
color:
|
||||
AntTheme.of(context).colorPrimary),
|
||||
recognizer: TapGestureRecognizer()
|
||||
..onTap = () {
|
||||
context.pushUrl(
|
||||
|
@ -376,6 +369,8 @@ class _LoginScreenState extends State<LoginScreen> {
|
|||
}
|
||||
},
|
||||
),
|
||||
],
|
||||
),
|
||||
Container(
|
||||
padding: CommonStyle.padding,
|
||||
child: Text(
|
||||
|
@ -388,7 +383,6 @@ class _LoginScreenState extends State<LoginScreen> {
|
|||
)
|
||||
],
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -39,7 +39,7 @@ class StorageKeys {
|
|||
}
|
||||
|
||||
class CommonStyle {
|
||||
static const padding = EdgeInsets.symmetric(horizontal: 16, vertical: 12);
|
||||
static const padding = EdgeInsets.all(12);
|
||||
static const border = BorderView();
|
||||
static const verticalGap = SizedBox(height: 18);
|
||||
static final monospace = Platform.isIOS ? 'Menlo' : 'monospace'; // FIXME:
|
||||
|
|
|
@ -42,8 +42,7 @@ class EventItem extends StatelessWidget {
|
|||
required List<InlineSpan> spans,
|
||||
Widget? card,
|
||||
}) {
|
||||
return Container(
|
||||
padding: CommonStyle.padding,
|
||||
return AntListItem(
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: <Widget>[
|
||||
|
|
Loading…
Reference in New Issue