Tweak button & dialog paddings (#90)

This commit is contained in:
Tommy Chow 2022-06-27 06:34:31 -04:00
parent 6df6184960
commit c8ee38b321
5 changed files with 7 additions and 7 deletions

View file

@ -181,7 +181,7 @@ class ProfileCard extends StatelessWidget {
trailing: Button(
onPressed: () => _showLogoutDialog(context),
icon: const Icon(Icons.logout_outlined),
padding: const EdgeInsets.symmetric(horizontal: 15.0),
padding: const EdgeInsets.symmetric(horizontal: 15.0, vertical: 10.0),
fill: true,
color: Colors.red,
child: const Text('Log Out'),
@ -200,7 +200,7 @@ class ProfileCard extends StatelessWidget {
color: Theme.of(context).colorScheme.secondary,
onPressed: () => _showLoginDialog(context),
fill: true,
padding: const EdgeInsets.symmetric(horizontal: 15.0),
padding: const EdgeInsets.symmetric(horizontal: 15.0, vertical: 10.0),
icon: const Icon(Icons.login),
child: const Text('Log In'),
),

View file

@ -107,6 +107,7 @@ class _OtherSettingsState extends State<OtherSettings> {
),
...[
Button(
padding: const EdgeInsets.symmetric(horizontal: 15.0, vertical: 10.0),
icon: const Icon(Icons.delete_sweep),
child: const Text('Clear Image Cache'),
onPressed: () async {
@ -122,6 +123,7 @@ class _OtherSettingsState extends State<OtherSettings> {
},
),
Button(
padding: const EdgeInsets.symmetric(horizontal: 15.0, vertical: 10.0),
onPressed: () => _showConfirmDialog(context),
icon: const Icon(Icons.restore),
child: const Text('Reset All Settings'),

View file

@ -64,6 +64,7 @@ class BlockButton extends StatelessWidget {
final isBlocked = authStore.user.blockedUsers.where((blockedUser) => blockedUser.userId == targetUserId).isNotEmpty;
return Button(
padding: const EdgeInsets.symmetric(horizontal: 15.0, vertical: 10.0),
icon: const Icon(Icons.block),
color: Colors.red,
fill: true,

View file

@ -16,13 +16,9 @@ class FrostyDialog extends StatelessWidget {
@override
Widget build(BuildContext context) {
return AlertDialog(
titlePadding: const EdgeInsets.all(30.0),
titlePadding: const EdgeInsets.fromLTRB(30.0, 30.0, 30.0, 20.0),
contentPadding: const EdgeInsets.fromLTRB(30.0, 0.0, 30.0, 30.0),
shape: RoundedRectangleBorder(
side: BorderSide(
color: Colors.deepPurpleAccent.withOpacity(0.3),
width: 3.0,
),
borderRadius: BorderRadius.circular(20.0),
),
title: Text(

View file

@ -32,6 +32,7 @@ class ReportButton extends StatelessWidget {
},
),
),
padding: const EdgeInsets.symmetric(horizontal: 15.0, vertical: 10.0),
color: Colors.red,
fill: true,
child: Text('Report $displayName'),